Template:Footnote: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(→‎Example: bettrer text)
mNo edit summary
Line 1: Line 1:
{{#ifeq:{{{1}}}|main|<sup id="footnote_inline_{{{2}}}">''[[#footnote_note_{{{2}}}|{{{2}}}]]''</sup>}}{{#ifeq:{{{1}}}|note|<sup id="footnote_note_{{{2}}}">''[[#footnote_inline_{{{2}}}|{{{2}}}]]''</sup><small> - {{{3}}}<br/></small>}}<noinclude>
{{#ifeq:{{{1}}}|main|<sup id="footnote_inline_{{{2}}}">''[[#footnote_note_{{{2}}}|{{{2}}}]]''</sup>}}{{#ifeq:{{{1}}}|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 <nowiki><ref> and <references/></nowiki> tags. It can sometimes be preferable to ''actual'' ref tags since it allows multiple lists of footnotes in a single article, while the ref tags do not. In an article where only one list of footnotes is needed, ref tags are usually preferable.
This is a template that emulates the function of the <nowiki><ref> and <references/></nowiki> tags. It can sometimes be preferable to ''actual'' ref tags since it allows multiple lists of footnotes in a single article, while the ref tags do not. In an article where only one list of footnotes is needed, ref tags are usually preferable.


Line 5: Line 5:
<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. For example, {{footnote|main|&#91;1&#93;}} is escaped as ''<nowiki>{{footnote|main|&#&zwj;91;1&#&zwj;93;}}</nowiki>''. 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|&#91;1&#93;}} is escaped as ''<nowiki>{{footnote|main|&#&zwj;91;1&#&zwj;93;}}</nowiki>''. This should be used in the main text to provide a link to the footnote.
<pre>{{footnote|note|1|Example Footnote}}</pre>
<pre>{{footnote|note|1|Example Footnote}}</pre>
Will create this: <br/>
Will create this: <br/>

Revision as of 16:29, April 23, 2011

This is a template that emulates the function of the <ref> and <references/> tags. It can sometimes be preferable to actual ref tags since it allows multiple lists of footnotes in a single article, while the ref tags do not. In an article where only one list of footnotes is needed, ref tags are usually preferable.

Usage

{{footnote|main|1}}

Will create a footnote tag like this: 1 Note that the one can be virtually anything, although some characters may need to be escaped. For example, [1] is escaped as {{footnote|main|&#‍91;1&#‍93;}}. This should be used in the main text to provide a link to the footnote.

{{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

Super Mario Wiki logo
Super Mario Wiki logo§.

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 dayMario. 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!