WP:Nesting footnotes#4. List-defined references

{{For-text|the official guideline on citing sources|Wikipedia:Citing sources|instructions on how to "bundle" citations|Help:Citation merging}}

{{Wikipedia how to|sc1=WP:NFN}}

{{nutshell|Footnotes placed within footnotes may appear in the same list as the containing footnotes, or in a separate list. There are various choices in layout and formatting. In some cases, markup using tags will cause an error message.}}

This page explains how to "nest" footnotes (references or notes) in Wikipedia articles, i.e. how to create a footnote within a footnote. It reflects the way the MediaWiki software operates as of July 2015.

{{TOC limit|3}}

Overview

{{VE documentation|style=width: 25%; font-size: 87%; float:right}}

=Footnotes: reminder=

Footnotes are used most commonly to provide:

  • References to reliable sources, published in print or online
  • Notes containing supplementary content.

The Footnotes system shows two elements on the page:

  • A Footnote marker is displayed in the article's content as a bracketed, superscripted number, letter, or word. Examples shown respectively are: {{dummy ref}} {{dummy ref|a}} {{dummy ref|Note 1}}. This footnote label is linked to the full footnote.
  • A Footnote displays the full note or reference. The footnotes are displayed in an ordered list wherever the reference list markup (e.g. {{tlx|reflist}}, {{tlx|reflist|2=group=...}} or {{tlx|notelist}}) is placed. Each entry begins with the footnote label in plain text.

=Nesting footnotes=

Sometimes, an editor wishes to insert (nest) a footnote within a footnote. We will call the inserted footnote a "subnote". Cases may include:

{| class="wikitable"

|- style="vertical-align:top;"

! Type of nesting !! Example

|-

| Reference within a note || Lorem ipsum dolorBook 1, 1923. sit amet.{{efn|This has been disputed by later scholars.Nested reference, 2003.}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Book 2, 1968.

==Notes==

{{notelist}}

==References==

{{reflist}}

|-

| Note within a note || Lorem ipsum dolorBook 1, 1923. sit amet.{{efn|This has been disputed by later scholars{{efn-lr|For example, writing in 2003, Nested argued strongly for rejecting the source as a forgery.Nested reference, 2003.}} on the grounds of unsound evidence.}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Book 2, 1968.

==Notes==

{{notelist}}

Subnotes

{{notelist-lr}}

==References==

{{reflist}}

|-

| Note on a reference || Lorem ipsum dolor{{refn|Book 1, 1923.{{refn|group=subnote|The 1952 paperback edition of Book 1 does not contain the relevant passage.}} }} sit amet. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Book 2, 1968.

==References==

{{reflist}}

Notes on references

{{reflist|group=subnote}}

|}

Things to consider

  1. Is your subnote really necessary? Especially if the subnote is a short one, would it be more straightforward for the reader - as well as for you - to keep it as part of the main note, perhaps in brackets?
  2. If the subnote is a reference, should it appear within the main numbered list of references, or in a separate list?
  3. If the subnote appears in a separate list, where should that list be placed among the different lists of footnotes?
  4. Should the subnote marker be - numeric,{{dummy ref}} a roman numeral,{{dummy ref|i}} alphabetic,{{dummy ref|a}} or user-defined?{{dummy ref|subnote 1}} Could it be confusing to use the same system in different footnote lists? Bear in mind also that roman numeral{{dummy ref|i}} is identical with alphabetic.{{dummy ref|i}}

What does not work

You cannot nest a footnote within a footnote that uses ... tags, even if the footnotes belong to different groups.

=1. Using <nowiki><ref>...</ref> tags within <ref>...</ref> tags</nowiki>=

Neither the subnote nor the preceding part of the main footnote is displayed. An error message is displayed in red font. The following part of the main footnote (if any) appears in the article text, with an unwanted tag.

{| class="wikitable"

|- style="vertical-align:top;"

! Case 1: Error message and missing text, using nested ... tags

|-

|Lorem ipsum dolorBook 1, 1923. sit amet.This has been disputed by later scholars. This part of the main footnote does not appear!Nested reference, 2003. This subnote does not appear!This is the latter part of the main footnote. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Book 2, 1968.

==Notes==

{{reflist|group=upper-alpha}}

==References==

{{reflist}}

|}

=2. Using a {{tlx|refn}} template within <nowiki><ref>...</ref></nowiki> tags=

The subnote is not displayed. An error message is displayed in red font.

{| class="wikitable"

|- style="vertical-align:top;"

! Case 2: Error message and missing text, using {{tlx|refn}} within ... tags

|-

|Lorem ipsum dolorBook 1, 1923. sit amet.This has been disputed by later scholars. Subnote inserted here{{refn|Nested reference, 2003. This subnote does not appear!}} This is the latter part of the main footnote. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Book 2, 1968.

==Notes==

{{reflist|group=upper-alpha}}

==References==

{{reflist}}

|}

=3. Using a {{tlx|efn}} template within <nowiki><ref>...</ref></nowiki> tags=

The subnote is not displayed. An error message is displayed in red font.

{| class="wikitable"

|- style="vertical-align:top;"

! Case 3: Error message and missing text, using {{tlx|efn}} within ... tags

|-

|Lorem ipsum dolorBook 1, 1923. sit amet.This has been disputed by later scholars. Subnote inserted here{{efn|Nested reference, 2003. This subnote does not appear!}} This is the latter part of the main footnote. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Book 2, 1968.

==Notes==

{{reflist|group=upper-alpha}}

==Subnotes==

{{notelist}}

==References==

{{reflist}}

|}

=4. Using a {{tlx|r}} template within <nowiki><ref>...</ref></nowiki> tags=

The subnote is not displayed. An error message is displayed in red font.

{| class="wikitable"

|- style="vertical-align:top;"

! Case 4: Error message and missing text, using {{tlx|r}} within ... tags

|-

|Lorem ipsum dolorBook 1, 1923. sit amet.This has been disputed by later scholars. Subnote inserted here{{r|r=Nested reference, 2003. This subnote does not appear!}} This is the latter part of the main footnote. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Book 2, 1968.

==Notes==

{{reflist|group=upper-alpha}}

==References==

{{reflist}}

|}

=5. List-defined references=

Due to a long-standing bug (see phab:T22707), list-defined references do not work correctly when references are nested.

{| class="wikitable"

|- style="vertical-align:top;"

! Case 5: Error message and missing reference using list-defined references

|-

|Lorem ipsum dolor{{refn|name=first}} sit amet.{{refn|name=second}}

==References==

{{reflist|refs=

{{refn|name=first|This is Reference 1, with Reference 3 inside it.Reference 3}}

{{refn|name=second|This is Reference 2, with Reference 4 inside it.Reference 4}}

}}

|}

A workaround is available via {{tl|sfnlink}}.

What does work

To nest a footnote within another, one or both footnotes should be enclosed within the {{tlx|r}}, {{tlx|refn}} or {{tlx|efn}} templates. You may also use #tag:ref{{Snd}} this is just a less user-friendly equivalent of {{tlx|refn}}.

{{tlx|r}} and {{tlx|refn}} use a very similar calling syntax (with {{tlx|r}} supporting all named parameters of {{tlx|refn}}), but {{tlx|r}} also supports shorter parameter aliases and is generally more flexible and powerful:

{{tlx|refn|group{{=}}groupname|name{{=}}name|Contents of the footnote}}

{{tlx|r|g{{=}}groupname|n{{=}}name|r{{=}}Contents of the footnote}}

{{tlx|efn}} is equivalent to {{tlx|refn|group{{=}}lower-alpha}} (or {{tlx|r|g{{=}}lower-alpha}}), and the corresponding {{tlx|notelist}} is equivalent to {{tlx|reflist|group{{=}}lower-alpha}}. Likewise, {{tlx|efn-lr}} is equivalent to {{tlx|refn|group{{=}}lower-roman}} (or {{tlx|r|g{{=}}lower-roman}}), and the corresponding {{tlx|notelist-lr}} is equivalent to {{tlx|reflist|group{{=}}lower-roman}}; similarly for the other variants.

The following are some examples of correct use of these templates for nesting footnotes. Other permutations are possible and will yield similar results.

=Reference within note=

The reference appears within the main list of numbered references, and the reference marker is a simple numeral.

==Using {{tlx|refn}}==

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{refn|group=lower-alpha|Mary's possessions are on record.Book, 1949.}} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

|MaryBloggs, 1981. had a little lamb.{{refn|group=lower-alpha|Mary's possessions are on record.Book, 1949.}} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

}}

==Using {{tlx|efn}}==

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{efn|Mary's possessions are on record.Book, 1949. }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{notelist}}

==References==

{{reflist}}

|MaryBloggs, 1981. had a little lamb.{{efn|Mary's possessions are on record.Book, 1949. }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{notelist}}

==References==

{{reflist}}

}}

==Using {{tlx|r}}==

{{markup|width=90%

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=lower-alpha|r=Mary's possessions are on record.{{r|r=Book, 1949.}}}} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=lower-alpha|r=Mary's possessions are on record.{{r|r=Book, 1949.}}}} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

}}

=Subnote within note=

==(1) In same list==

A subnote may appear in the same list as the footnote in which it is nested, although the subnote will appear above the main note referring to it.

===Using {{tlx|refn}}===

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{refn|group=lower-alpha|Mary's possessions are on record.{{refn|group=lower-alpha|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

|MaryBloggs, 1981. had a little lamb.{{refn|group=lower-alpha|Mary's possessions are on record.{{refn|group=lower-alpha|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

}}

===Using {{tlx|r}}===

{{markup|width=90%

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=lower-alpha|r=Mary's possessions are on record.{{r|g=lower-alpha|r=They have been itemised by Book{{r|r=Book, 1949.}} and others.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=lower-alpha|r=Mary's possessions are on record.{{r|g=lower-alpha|r=They have been itemised by Book{{r|r=Book, 1949.}} and others.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Notes==

{{reflist|group=lower-alpha}}

==References==

{{reflist}}

}}

==(2) In separate list: non-numeric marker==

The subnote appears in a separate list, above or below the list in which the main note appears. The subnote is given a non-numeric marker - e.g. {{dummy ref|b}} or {{dummy ref|iv}}.

If the main note is also indexed in the same way, to keep the lists separate the two sets of markers must be different, e.g. one set alphabetic with the other set roman numerals. The full range of possible markers can be seen here.

===Using {{tlx|refn}}===

Note the use of {{tlx|refn}} rather than ... for both main note and subnote, so that the reference doubly nested within the subnote will display correctly.

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{refn|group=lower-alpha|Mary's possessions are on record.{{refn|group=lower-roman|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{reflist|group=lower-alpha}}

Subnotes

{{reflist|group=lower-roman}}

==References==

{{reflist}}

|MaryBloggs, 1981. had a little lamb.{{refn|group=lower-alpha|Mary's possessions are on record.{{refn|group=lower-roman|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{reflist|group=lower-alpha}}

Subnotes

{{reflist|group=lower-roman}}

==References==

{{reflist}}

}}

===Using {{tlx|efn}}===

Note the use of {{tlx|efn}} rather than ... for both main note and subnote, so that the reference doubly nested within the subnote will display correctly.

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{efn|Mary's possessions are on record.{{efn-lr|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{notelist}}

Subnotes

{{notelist-lr}}

==References==

{{reflist}}

|MaryBloggs, 1981. had a little lamb.{{efn|Mary's possessions are on record.{{efn-lr|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Notes==

{{notelist}}

Subnotes

{{notelist-lr}}

==References==

{{reflist}}

}}

===Using {{tlx|r}}===

Note the use of {{tlx|r}} rather than ... for both main note and subnote, so that the reference doubly nested within the subnote will display correctly.

{{markup|width=90%

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=lower-alpha|r=Mary's possessions are on record.{{r|g=lower-roman|r=They have been itemised by Book{{r|r=Book, 1949.}} and others.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Notes==

{{reflist|group=lower-alpha}}

Subnotes

{{reflist|group=lower-roman}}

==References==

{{reflist}}

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=lower-alpha|r=Mary's possessions are on record.{{r|g=lower-roman|r=They have been itemised by Book{{r|r=Book, 1949.}} and others.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Notes==

{{reflist|group=lower-alpha}}

Subnotes

{{reflist|group=lower-roman}}

==References==

{{reflist}}

}}

==(3) In separate list: numeric marker with character string==

The subnote appears in a separate list, above or below the list in which the main note appears. The subnote is given a numeral preceded by a character string, e.g. {{dummy ref|Subnote 3}}, {{dummy ref|n 3}} or {{dummy ref|nb 3}}.

===Using {{tlx|refn}}===

If the main note is also indexed in the same way, to keep the lists separate the two character strings must be different. The main note and subnote both use {{tlx|refn}}.

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{refn|group=main note|Mary's possessions are on record.{{refn|group=subnote|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Main notes==

{{reflist|group=main note}}

Subnotes

{{reflist|group=subnote}}

==References==

{{reflist}}

|MaryBloggs, 1981. had a little lamb.{{refn|group=main note|Mary's possessions are on record.{{refn|group=subnote|They have been itemised by BookBook, 1949. and others.}} }} Its fleece was white as snow.Scroggs, 1983.

==Main notes==

{{reflist|group=main note}}

Subnotes

{{reflist|group=subnote}}

==References==

{{reflist}}

}}

===Using {{tlx|r}}===

If the main note is also indexed in the same way, to keep the lists separate the two character strings must be different. The main note and subnote both use {{tlx|r}}.

{{markup|width=90%

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=main note|r=Mary's possessions are on record.{{r|g=subnote|r=They have been itemised by Book{{r|r=Book, 1949.}} and others.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Main notes==

{{reflist|group=main note}}

Subnotes

{{reflist|group=subnote}}

==References==

{{reflist}}

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|g=main note|r=Mary's possessions are on record.{{r|g=subnote|r=They have been itemised by Book{{r|r=Book, 1949.}} and others.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==Main notes==

{{reflist|group=main note}}

Subnotes

{{reflist|group=subnote}}

==References==

{{reflist}}

}}

=Subnote within reference=

==(1) Non-numeric marker==

===Using {{tlx|refn}}===

The subnote appears in a separate list, below the main References list. The subnote uses {{tlx|refn}} with a predefined or user-defined group. Be aware that because nesting fails within tags, the reference bearing the subnote also has to use {{tlx|refn}} (without a group), not the more usual .

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{refn|Book, 1949.{{refn|group=lower-alpha|The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.Scroggs, 1983.

==References==

{{reflist}}

Notes on the references

{{reflist|group=lower-alpha}}

|MaryBloggs, 1981. had a little lamb.{{refn|Book, 1949.{{refn|group=lower-alpha|The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.Scroggs, 1983.

==References==

{{reflist}}

Notes on the references

{{reflist|group=lower-alpha}}

}}

===Using {{tlx|r}}===

The subnote appears in a separate list, below the main References list. The subnote uses {{tlx|r}} with a predefined or user-defined group. Be aware that because nesting fails within tags, the reference bearing the subnote also has to use {{tlx|r}} (without a group), not the more usual .

{{markup|width=90%

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|r=Book, 1949.{{r|g=lower-alpha|r=The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==References==

{{reflist}}

Notes on the references

{{reflist|group=lower-alpha}}

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|r=Book, 1949.{{r|g=lower-alpha|r=The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==References==

{{reflist}}

Notes on the references

{{reflist|group=lower-alpha}}

}}

==(2) Numeric marker with character string==

===Using {{tlx|refn}}===

{{markup|width=90%

|MaryBloggs, 1981. had a little lamb.{{refn|Book, 1949.{{refn|group=Note|The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.Scroggs, 1983.

==References==

{{reflist}}

Notes on the references

{{reflist|group=Note}}

|MaryBloggs, 1981. had a little lamb.{{refn|Book, 1949.{{refn|group=Note|The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.Scroggs, 1983.

==References==

{{reflist}}

Notes on the references

{{reflist|group=Note}}

}}

===Using {{tlx|r}}===

{{markup|width=90%

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|r=Book, 1949.{{r|g=Note|r=The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==References==

{{reflist}}

Notes on the references

{{reflist|group=Note}}

|Mary{{r|r=Bloggs, 1981.}} had a little lamb.{{r|r=Book, 1949.{{r|g=Note|r=The relevant chapter does not appear in the paperback edition of 1955.}} }} Its fleece was white as snow.{{r|r=Scroggs, 1983.}}

==References==

{{reflist}}

Notes on the references

{{reflist|group=Note}}

}}

See also

{{Wikipedia referencing}}

{{Help navigation}}

Category:Wikipedia editor help

Category:Wikipedia citation administration