Anonymous user
Help:Footnotes: Difference between revisions
→Footnotes: using a source more than once
m (1 revision imported) |
|||
Line 3:
{{For|help with citation templates|Help:Citation Style 1}}
{{Redirect|WP:FN|the fringe theories noticeboard|Wikipedia:Fringe theories/Noticeboard}}
{{Redirect|WP:NOTES|hatnotes|Wikipedia:
{{Wikipedia how to|H:FOOT|WP:FOOTNOTES|
This page explains how to create the '''Footnotes''' section for Wikipedia articles. In this context, the word "Footnotes" refers to the Wikipedia-specific manner of documenting an article's sources and providing tangential information, and should not be confused with the general concept of [[Note (typography)|footnotes]]. This how-to does not cover the formatting of citations within the Footnotes section, which is reviewed in [[Wikipedia:Citing sources|Citing sources]].
Line 10:
Footnotes are used most commonly to provide:
* [[Wikipedia:Citing sources|references (bibliographic citations) to reliable sources]],
* [[Help:explanatory notes|explanatory information]] or
* source information for tables and other elements.
Line 39:
==Footnotes: the basics==
{{See also|Help:Reftags}}
To create the footnote marker, determine the point in the page content where the marker is desired and enter the markup with the citation or note inside the {{tag|ref}} tags. For example:
Line 48 ⟶ 51:
}}
The content inside the {{tag|ref}} will show in the reference list. The ref tags can be added anywhere a citation or note is needed. There must be content inside the tags, else an error will show.
===Where to place ref tags===
{{markup
Line 69 ⟶ 73:
}}
===Formatting ref tags===
The content of the ref tags can be formatted using most
{{markup
Line 124 ⟶ 129:
{{markup
|<nowiki>This is page content.<ref name="manchester2002">
{{reflist}}</nowiki>
|This is page content.<ref name="manchester2002">
{{reflist}}
}}
Line 134 ⟶ 139:
Note that the footnote labels are incremented in the order they are used, and that they use the same label when reused, thus the labels can seem out of order:
{{markup
|<nowiki>This is starter content.<ref name="manchester2002">
{{reflist}}</nowiki>
|This is starter content.<ref name="manchester2002">
{{reflist}}
}}
Line 142 ⟶ 147:
When using both names and [[#Footnotes:_groups|groups]], the syntax is:
:{{tag|ref|params=group="<var>groupname</var>" name="<var>name</var>"|content=Content}}
Care should be taken when deleting references to avoid creating a cite error. See [[Wikipedia:Avoiding common mistakes#Deleting...|Avoiding common mistakes]].
==Reference lists: columns==
Line 236 ⟶ 241:
[[Help:Explanatory notes|Explanatory notes]] may need to be referenced. Because of limitations in the {{cite.php}} software, reference tags cannot be nested; that is, a set of {{tag|ref}} tags cannot be placed inside another pair of {{tag|ref}} tags. Attempting to do so will result in a cite error.
The
:{{tlx|refn|2=group=''group''|3=name=
:{{tlx|r|2=group=''group''|3=name=''name''|4=refn=''content''}} or
:{{tlx|r|2=g=''group''|3=n=''name''|4=r=''content''}} (shorter)
''name'' and ''group'' being optional parameters. The ''content'' may include {{tag|ref|o}} tags or another {{tl|r}} template.
The other templates listed below in [[#Footnotes: predefined groups|Predefined groups]] are variants of {{tl|refn}} that include a styled group and have a matching styled reference list template.
Examples:
===Using {{tl|refn}}===
{{markup
|<nowiki>The quick brown fox jumps over the lazy dog.{{refn|group=nb|A footnote.<ref>A reference for the footnote.</ref>}}
Line 262 ⟶ 271:
}}
===Using {{tl|r}}===
The use of the magic word <code>#tag:ref</code> is valid, but the sequence of parameters is invariant and nonintuitive. {{tl|refn}} and its variants use this markup internally.▼
{{markup
|<nowiki>The quick brown fox jumps over the lazy dog.{{r|g=nb|r=A footnote.{{r|r=A reference for the footnote.}}}}
==Notes==
{{reflist|group=nb}}
==References==
{{reflist}}
</nowiki>
|The quick brown fox jumps over the lazy dog.{{r|g=nb|r=A footnote.{{r|r=A reference for the footnote.}}}}
{{fake heading|sub=3|Notes}}
{{reflist|group=nb}}
{{fake heading|sub=3|References}}
{{reflist}}
}}
▲The use of the magic word <code>#tag:ref</code> is valid, but the sequence of parameters is invariant and nonintuitive. {{tl|r}} as well as {{tl|refn}} and its variants use this markup internally.
:<code>{{#tag:ref|<var>refcontent</var>|group=<var>groupname</var>|name=<var>name</var>}}</code>
Line 302 ⟶ 330:
Note that the footnote labels in the reference list show only the numbers and not the group name.
When using both names and
:{{tag|ref|params=group="<var>groupname</var>" name="<var>name</var>"|content=Content}}
Line 328 ⟶ 356:
! Group type !! Footnote marker template<br/>or markup !! Reference list<br/> template !! Sample labels
|-
|
|rowspan=
|rowspan=
|-
| {{tlx|r}} (for nested references)
|-
|-
| lower-alpha || {{tlx|efn}}<br />{{tlx|efn-la}} || {{tlx|notelist}}<br />{{tlx|notelist-la}} || a b c d e f g h i j
Line 347 ⟶ 377:
|}<section end=pregrouptable />
* {{tlx|efn}} supports {{para|name}} and {{para|group}}, which work the same as the parameters in {{tag|ref|o}} (see, for instance, the 3rd and 4th examples below). Do not enclose values in quotes.
* {{tlx|notelist}} supports the
In these examples, the footnote labels match between the footnote marker and the reference list:
|