Template:Footnote: Difference between revisions
m (Protected "Template:Footnote": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{# | {{#switch:{{{1}}} | ||
This is a template that emulates the function of the <nowiki><ref> and <references/></nowiki> tags. Although this template is commonly used on the wiki to create a list of notes, it is also possible to have multiple lists of footnotes in a single article by using [[mw:Help:Cite# | |main=<sup id="footnote_inline_{{{2}}}">''[[#footnote_note_{{{2}}}|{{{2}}}]]''</sup> | ||
|note=<sup id="footnote_note_{{{2}}}">''[[#footnote_inline_{{{2}}}|{{{2}}}]]''</sup>{{#if:{{{3|}}}|<small> - {{{3}}}<br></small>}} | |||
}}<noinclude> | |||
This is a template that emulates the function of the <code><nowiki><ref></nowiki></code> and <code><nowiki><references/></nowiki></code> tags. Although this template is commonly used on the wiki to create a list of notes, it is also possible to have multiple lists of footnotes in a single article by using [[mw:Help:Cite#Grouped references|grouped references]]. | |||
==Usage== | ==Usage== | ||
<pre>{{footnote|main|1}}</pre> | <pre>{{footnote|main|1}}</pre> | ||
Will create a footnote tag like this: {{footnote|main|1}} | Will create a footnote tag like this: {{footnote|main|1}} | ||
Note that the one can be virtually anything, although some characters may need to be escaped | |||
This should be used in the main text to provide a link to the footnote. Note that the one can be virtually anything, although some characters may need to be escaped (for example, {{footnote|main|[1]}} is escaped as <code><nowiki>{{footnote|main|&#‍91;1&#‍93;}}</nowiki></code>). | |||
<pre>{{footnote|note|1|Example Footnote}}</pre> | <pre>{{footnote|note|1|Example Footnote}}</pre> | ||
Will create this: | Will create this: | ||
{{footnote|note|1|Example Footnote}} | {{footnote|note|1|Example Footnote}} | ||
This should be used in a list of notes after the main text of an article or paragraph. | This should be used in a list of notes after the main text of an article or paragraph. | ||
==Example== | ==Example== | ||
===Super Mario Wiki=== | ===Super Mario Wiki=== | ||
[[File:Mariowiki.png|thumb|right|Super Mario Wiki logo{{footnote|main|§}} | [[File:Mariowiki.png|thumb|right|Super Mario Wiki logo{{footnote|main|§}}]] | ||
The Super Mario Wiki is a wiki about the Mario series and its related series, Wario, Yoshi, Donkey Kong, and Super Smash Bros{{footnote|main|(1)}} | |||
The Super Mario Wiki is a wiki about the Mario series and its related series, Wario, Yoshi, Donkey Kong, and Super Smash Bros.{{footnote|main|(1)}} It has many articles, such as Super Mario Bros., Super Mario World, New Super Mario Bros., Bowser, Extra Life, Goomba and much more.{{footnote|main|**}} In most of these games, such as New Super Mario Bros., the plumber Mario saves Princess Peach from Bowser, who is the main antagonist. There are over 15000 files uploaded, 90,000,000 page views, 7000 users and 16 administrators (though a few are inactive).{{footnote|main|A}} The wiki was created on August 12th, 2005 by Porplemontage, and is now a very vibrant wiki – sustaining over 1000 edits a day.{{footnote|main|Mario}} A person must create an account to edit or create new articles. | |||
===Notes=== | ===Notes=== | ||
Line 22: | Line 30: | ||
{{footnote|note|**|Example Text}} | {{footnote|note|**|Example Text}} | ||
{{footnote|note|A|Help!}} | {{footnote|note|A|Help!}} | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 15:29, March 14, 2024
This is a template that emulates the function of the <ref>
and <references/>
tags. Although this template is commonly used on the wiki to create a list of notes, it is also possible to have multiple lists of footnotes in a single article by using grouped references.
Usage
{{footnote|main|1}}
Will create a footnote tag like this: 1
This should be used in the main text to provide a link to the footnote. Note that the one can be virtually anything, although some characters may need to be escaped (for example, [1] is escaped as {{footnote|main|[1]}}
).
{{footnote|note|1|Example Footnote}}
Will create this:
1 - Example Footnote
This should be used in a list of notes after the main text of an article or paragraph.
Example
Super Mario Wiki
The Super Mario Wiki is a wiki about the Mario series and its related series, Wario, Yoshi, Donkey Kong, and Super Smash Bros.(1) It has many articles, such as Super Mario Bros., Super Mario World, New Super Mario Bros., Bowser, Extra Life, Goomba and much more.** In most of these games, such as New Super Mario Bros., the plumber Mario saves Princess Peach from Bowser, who is the main antagonist. There are over 15000 files uploaded, 90,000,000 page views, 7000 users and 16 administrators (though a few are inactive).A The wiki was created on August 12th, 2005 by Porplemontage, and is now a very vibrant wiki – sustaining over 1000 edits a day.Mario A person must create an account to edit or create new articles.
Notes
§ - This is an image.
(1) - Super Smash Bros. (series)
Mario - JP: マリオ
** - Example Text
A - Help!