Help:Footnotes
Footnotes: groups
Sometimes it is useful to group the footnotes into separate lists, for example to separate explanatory notes from references, or to list references for tables, image captions, infoboxes and navboxes. The sequence of footnote labels is independent in each group.
The syntax to define a footnote with a group is:
<ref group=groupname>Content</ref>
The footnote marker group name must be enclosed in quotes if the group name includes a space, else a cite error will occur, otherwise quotes are optional.
The syntax for the reference list with a group is:
{{reflist|group=groupname}}
The reference list group name does not need to be enclosed in quotes.
Example:
| Markup | Renders as |
|---|---|
This part of the text requires clarification,<ref group=note>Listed separately from the citation</ref> whereas the entire text is cited.<ref>Citation.</ref> And this needs even more clarification.<ref group=note>Another note</ref>
==Notes==
{{reflist|group=note}}
==References==
{{reflist}} |
|
Note that the footnote labels in the reference list show only the numbers and not the group name.
When using both names and groups, the syntax is:
<ref name=name group=groupname>Content</ref>
For the repeated note:
<ref name=name group=groupname />
Footnotes: predefined groups
There are several predefined groups that can have a reference list styled so that the label (a character within square brackets with all superscripted, e.g., [1]) of a note or citation (aka footnote, reference) matches and links to the note marker label located in the main text and the label in front of the note's text in the appropriate group's list. There can be more than one of these groups' lists in the Notes, References and other similarly purposed sections.
These predefined note and citation groups have templates that make the wikitext markup simpler. These templates also allow a standard reference to be inserted, so that an explanatory note can have a reference, or citations can be nested.
Note: If the note's text has a reference name that is used more than once, the labels will still match, but the clickable alpha characters that toggle the note's display will be next to the note's label, with links to the multiple locations of its marker in the main text. See WP:REFNAME and the first point below in § Issues.
Template use by reference group type
| Group type | Footnote marker template or markup |
Reference list template | Sample labels |
|---|---|---|---|
| none | <ref>...</ref> |
{{reflist}} |
1 2 3 4 5 6 7 8 9 10 |
| none | {{refn}} (for nested references) |
{{reflist}} |
1 2 3 4 5 6 7 8 9 10 |
| lower-alpha | {{efn}} |
{{notelist}} |
a b c d e f g h i j |
| upper-alpha | {{efn-ua}} |
{{notelist-ua}} |
A B C D E F G H I J |
| lower-roman | {{efn-lr}} |
{{notelist-lr}} |
i ii iii iv v vi vii viii ix x |
| upper-roman | {{efn-ur}} |
{{notelist-ur}} |
I II III IV V VI VII VIII IX X |
| lower-greek[a] | {{efn-lg}} |
{{notelist-lg}} |
α β γ δ ε ζ η θ ι κ |
| Note | {{NoteTag}} |
{{NoteFoot}} |
Note 1 Note 2 Note 3 |
- ↑ Not supported by Internet Explorer 7 and below
{{efn}}supports|name=and|group=, which work the same as the parameters in<ref>. Do not enclose values in quotes.{{notelist}}supports the column parameter,|refs=and|group=, which work the same as the parameters in{{reflist}}. Do not enclose values in quotes.
In these examples, the footnote labels match between the footnote marker and the reference list:
| Markup | Renders as |
|---|---|
Lorem ipsum dolor sit amet.{{efn|Footnote 1}} Consectetur adipisicing elit.{{efn|Footnote 2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn|Footnote 3}}
{{notelist}}
|
|
| Markup | Renders as |
|---|---|
Lorem ipsum dolor sit amet.{{efn-lr|Footnote 1}} Consectetur adipisicing elit.{{efn-lr|Footnote 2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn-lr|Footnote 3}}
{{notelist-lr}}
|
|
| Markup | Renders as |
|---|---|
Lorem ipsum dolor sit amet.{{efn|name=fn1|Footnote 1}} Consectetur adipisicing elit.{{efn|Footnote 2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn|name=fn1}}
{{notelist}}
|
|
| Markup | Renders as |
|---|---|
Lorem ipsum dolor sit amet.{{efn|name=fn1}} Consectetur adipisicing elit.{{efn|name=fn2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn|name=fn1}}
{{notelist|refs=
{{efn|name=fn1|Very long footnote 1}}
{{efn|name=fn2|Very long footnote 2}}
}}
|
|
Issues
- Multiple backlink labels (see WP:REFNAME) are always styled as lower-alpha. This can be confusing when
{{efn}}is used. See the note in the introduction of this section, above. - The entries in the reference list will show the default decimal styling if:
- The value for
|group=in{{reflist}}or<references />does not exactly match one of the predefined values; use{{efn}}or variant as|group=will not be needed. - The value for
|group=in{{reflist}}or<references />is enclosed by quotes; use{{efn}}or variant as|group=will not be needed. {{reflist}}is indented with the:markup.<references />is used instead of{{reflist}}
- The value for
- The entries in the reference list will have no styling if:
- A reference is included in
{{navbox}}or one of the variants and the style is set tobodyclass=hlist; to resolve this, replace the style withlistclass=hlist.
- A reference is included in
- Including external link markup will result in an error. Use the
{{URL}}template instead:{{URL|1=url name|2=optional display text}}.
Reference lists: automatically generated
A page with <ref> tags but no reference list markup used to display an error, except on talk and user pages. In recent versions of Wikipedia, the error no longer appears; instead an automatically generated reference list (AGRL) is displayed at the bottom of the page.
Compared to the reference lists on properly formatted pages, an AGRL can be confusing to both readers and editors. But it is easily corrected by adding reference list markup such as the following. Add it at the position where the reference list would normally appear.
==References==
{{reflist}}
On talk pages, the {{reflist-talk}} template can be used to add a reference list to a specific discussion.
Footnotes: page numbers
Suppose you would like to cite one book, but different facts appear on different pages. You would like to cite the book again and again, but point each fact to the proper page. Suppose one fact is on page 8, a different fact on page 12, a third fact on page 18, a fourth fact on page 241. You could put a line in the "pages" parameter saying "see pages 8, 12, 18, 241" but a fact-checker might have to check all of them before figuring out the right one. Or, you could duplicate the entire citation for the book in each instance, but that would be redundant. One common approach is to use shortened citations, which requires the use of a References section following the footnotes section. A less common approach is to attach a {{rp|8}} right after the footnote marker and replace the "8" with the appropriate page number.
For example:
| Markup | Renders as |
|---|---|
Schudson said the Constitution shaped citizenship in fundamental ways.<ref name="Schudson">{{Cite book
| last = Schudson
| first = Michael
| title = The Good Citizen: A Brief History of American Civic Life
| publisher = Simon & Schuster
| date = 1998
| url = https://books.google.com/books?id=aawMAQAAMAAJ
| isbn =0-684-82729-8 }}</ref>{{rp|8}} But elections in early American politics did not generate much interest<ref name="Schudson"/>{{rp|12}} while "open discussion of differences" was generally avoided.<ref name="Schudson"/>{{rp|18}} Citizenship later shifted to a polity of essentially "self-absorbed citizens", according to his analysis.<ref name="Schudson"/>{{rp|241}} |
Schudson said the Constitution shaped citizenship in fundamental ways.[1]:8 But elections in early American politics did not generate much interest[1]:12 while "open discussion of differences" was generally avoided.[1]:18 Citizenship later shifted to a polity of essentially "self-absorbed citizens", according to his analysis.[1]:241
|
When using list-defined references, {{r}} can be used for the same style of in-text page references.
Previewing edits
When you edit a single section of a page, the footnotes list will be visible when you preview your edits under the heading "Preview of references", although you will still not be able to see named references that were defined in other sections.
Tools that can be used are the user:js/ajaxPreview or User:Anomie/ajaxpreview.js scripts or the wikEd gadget.
RefToolbar
You can use the citation toolbar to name references. When you first create a reference, you can enter a value in the "Ref name" box. When you want to reuse this reference, click the "Named references" button on the citation toolbar and choose which reference you would like to insert.
Issues and limitations
- Cite bug list
- subst: does not work within
<ref>tags. T4700 - The pipe trick does not work within
<ref>tags. T4700
Flagging inadequate referencing
- The template
{{Refimprove}}should be added to articles where there are some, but insufficient, inline citations to support the material currently in the article. For biographies of living persons, use{{BLP sources}}instead. - The template
{{Unreferenced}}should be added to articles with no references at all. For biographies of living persons, use{{BLP unsourced}}instead. - The template
{{Unreferenced section}}is for individual sections that have no citations in articles that have at least one citation somewhere else. For biographies of living persons, use{{BLP unsourced section}}instead. - The template
{{Medref}}is specifically for articles needing additional medical references.
See also
- Template:Harvard citation#Using CITEREF directly and {{sfnref}}
- Wikipedia:Citing sources/Further considerations—a how-to article with some additional considerations for citing sources
- Wikipedia:Help desk—to ask questions about using footnotes in articles if you were not able to find the information you need on this help page.
- Template:Editor tools—{{Editor tools}}