Template talk:Footnote: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(New page: Should the example be replaced with something thats related to Mario? ~~~)
 
m (→‎Grouped ref tags: use a permanent link for the SMBW staff example)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Should the example be replaced with something thats related to Mario? {{User:Super-Yoshi/sig}}
Should the example be replaced with something thats related to Mario? {{User:Super-Yoshi/sig}}
:Oh... maybe. The example text [[MarioWiki:Manual of Style|here]] could work. {{User:Twentytwofiftyseven/sig|}} 15:14, 25 March 2009 (EDT)
== Grouped ref tags ==
The page says that the use of the Foonote template "''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.''" That statement is wrong. You '''can''' have multiple lists of ref tags, thanks to the <code>group</code> attribute. Typically, group-less ref tags are used for the actual references of the article, whereas ref tags with a named group (e.g., <code><nowiki><ref group="n">…</ref></nowiki></code>) are used for footnotes and are grouped together according to their group name:
<pre><nowiki>
===Notes===
<references group="n"/>
</nowiki></pre>
Grouped ref tags are already in use on the Wiki (see [[Mario Kart (series)#Notes]]) and are IMO neater than the Footnote template because they simply re-use the ubiquitous mechanism of ref tags, whereas the Footnote template relies on a completely different mechanism not used anywhere else.
Moveover, mutliple grouped ref tags can refer to the same footnote using the <code>name</code> attribute (just like any ref tag), which does not seem possible with the Footnote template (see [https://www.mariowiki.com/index.php?title=List_of_Super_Mario_Bros._Wonder_staff&oldid=4130605#Notes List of Super Mario Bros. Wonder staff] where a footnote is duplicated because the Footnote template does not allow two refs pointing to the same footnote, which could instead be achieved using ref tags with <code><nowiki><ref group="n" name="1.0.1"/></nowiki></code>).
In conclusion, I think we should change the text on the template page so that it states that grouped ref tags are preferable to the Footnote template when we need multiple lists of footnotes on the same page. {{User:Jdtendo/sig}} 13:06, February 18, 2024 (EST)

Latest revision as of 14:27, February 19, 2024

Should the example be replaced with something thats related to Mario? Super-YoshiMust...eat...sig...Talk? C???

Oh... maybe. The example text here could work. - 2257(Talk) 15:14, 25 March 2009 (EDT)

Grouped ref tags[edit]

The page says that the use of the Foonote template "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." That statement is wrong. You can have multiple lists of ref tags, thanks to the group attribute. Typically, group-less ref tags are used for the actual references of the article, whereas ref tags with a named group (e.g., <ref group="n">…</ref>) are used for footnotes and are grouped together according to their group name:

===Notes===
<references group="n"/>

Grouped ref tags are already in use on the Wiki (see Mario Kart (series)#Notes) and are IMO neater than the Footnote template because they simply re-use the ubiquitous mechanism of ref tags, whereas the Footnote template relies on a completely different mechanism not used anywhere else. Moveover, mutliple grouped ref tags can refer to the same footnote using the name attribute (just like any ref tag), which does not seem possible with the Footnote template (see List of Super Mario Bros. Wonder staff where a footnote is duplicated because the Footnote template does not allow two refs pointing to the same footnote, which could instead be achieved using ref tags with <ref group="n" name="1.0.1"/>).

In conclusion, I think we should change the text on the template page so that it states that grouped ref tags are preferable to the Footnote template when we need multiple lists of footnotes on the same page. Jdtendo(T|C) 13:06, February 18, 2024 (EST)