Template:List Note: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><templatestyles src="Template:Section Note/Styles.css"/><span class="zw-section-note zw-section-note-{{{type|alpha}}}">{{#if:{{{name|}}}|{{#tag:ref|{{{1|}}}|group={{{type|alpha}}}|name={{{name|}}}}}|{{#tag:ref|{{{1|}}}|group={{{type|alpha}}}}}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly><templatestyles src="Template:Section Note/Styles.css"/><span class="zw-section-note zw-section-note--{{{type|alpha}}}">{{#if:{{{name|}}}|{{#tag:ref|{{{1|}}}|group={{{type|alpha}}}|name={{{name|}}}}}|{{#tag:ref|{{{1|}}}|group={{{type|alpha}}}}}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 21:25, 6 December 2022


Purpose

This template can be used instead of Template:Note to create footnotes for a particular list or table in an article. These footnotes are placed directly after the list, rather than at the end of the entire article.

Usage

At the location where you wish to add a footnote, enter the following:

{{List Note|Footnote text}}

The following optional parameters are supported:

  • name — Assigns a name to the footnote, allowing it to be referenced multiple times.
  • type — One of: alpha (default), roman, or symbol. Determines the text used for note labels.

Place the following on the line immediately following the table:

Default If type parameter was used in the notes
{{List Notes}}
{{List Notes|type= <type>}}

Each type can only support up to a certain number of footnotes. The roman type can, of course, be expanded if needed.

Type Max Footnotes Labels
alpha 26 a b c d e f g h i j k l m n o p q r s t u v w x y z
roman 10 i ii iii iv v vi vii viii ix x
symbol 3 * † ‡

If the number of footnotes exceeds the number of available labels, an error occurs and the page is added to Category:Pages with reference errors.

Examples

Input
{{Data Table
|columns= Game, Initial Capacity, Maximum Capacity
|-
| {{MM}}
| '''99'''
| '''500'''{{List Note|In {{MM|-}}, {{Term|MM3D|Link}} can store up to 5,499 {{Plural|MM3D|Rupee|link}} in the {{Term|MM3D|Clock Town Bank|link}}.}}
|-
| {{OoS}}
| '''999'''{{List Note|name= Ore Chunks|In {{OoS|-}}, {{Term|OoS|Link}} can also hold a maximum of 999 {{Plural|OoS|Ore Chunk|link}}.}}
| '''999'''{{List Note|name= Ore Chunks}}
|-
| {{FSA}}
| '''9,999'''{{List Note|name= Force Gems|{{FSA|-}} has {{Plural|FSA|Force Gem|link}} as currency instead of {{Plural|Series|Rupee}}.}}
| '''9,999'''{{List Note|name= Force Gems}}
|-
| {{SS}}
| '''300'''
| '''9,900'''{{List Note|In {{SS|-}}, {{Term|SSHD|Link|link}} can store up to 9,000 {{Plural|SSHD|Rupee|link}} in the {{Term|SSHD|Tycoon Wallet|link}}, plus 300 in each of three {{Plural|SSHD|Extra Wallet|link}}.}}
}}
{{List Notes}}
Output
GameInitial CapacityMaximum Capacity
99
500Page Template:Section Note/Styles.css has no content.[a]
999Page Template:Section Note/Styles.css has no content.[b]
999Page Template:Section Note/Styles.css has no content.[b]
9,999Page Template:Section Note/Styles.css has no content.[c]
9,999Page Template:Section Note/Styles.css has no content.[c]
300
9,900Page Template:Section Note/Styles.css has no content.[d]
  1. In Majora's Mask, Link can store up to 5,499 Rupees in the Clock Town Bank.
  2. 2.0 2.1 In Oracle of Seasons, Link can also hold a maximum of 999 Ore Chunks.
  3. 3.0 3.1 Four Swords Adventures has Force Gems as currency instead of Rupees.
  4. In Skyward Sword, Link can store up to 9,000 Rupees in the Tycoon Wallet, plus 300 in each of three Extra Wallets.
Categories Added

The same note type can be used multiple times per page.
Input
{{Data Table
|columns= A, B, C
|-
| lorem{{List Note|type= symbol|note 1}}
| ipsum{{List Note|type= symbol|note 2}}
| dolor{{List Note|type= symbol|note 3}} 
}}
{{List Notes|type= symbol}}

...

{{Data Table
|columns= D, E, F
|-
| sit{{List Note|type= symbol|note 4}}
| amet{{List Note|type= symbol|note 5}}
| consectetur{{List Note|type= symbol|note 6}} 
}}
{{List Notes|type= symbol}}
Output
ABC
loremPage Template:Section Note/Styles.css has no content.[*]
ipsumPage Template:Section Note/Styles.css has no content.[†]
dolorPage Template:Section Note/Styles.css has no content.[‡]
  1. note 1
  2. note 2
  3. note 3

...

DEF
sitPage Template:Section Note/Styles.css has no content.[*]
ametPage Template:Section Note/Styles.css has no content.[†]
consecteturPage Template:Section Note/Styles.css has no content.[‡]
  1. note 4
  2. note 5
  3. note 6
Categories Added
The above documentation is transcluded from Template:List Note/Documentation. (edit | history)