Help:Cite errors/Cite error references missing key
|
| This page documents an error message for the Footnotes system. The content of this message is dependent on the language setting in Special:Preferences. It has been customized and this exact message shows only when the language is set to "en — English." All other language settings will cause this message to show a default for that language. You can test how the interface messages in the example section look in different languages with these links: |
Cite error: <ref> tag with name "$1" defined in <references> is not used in prior text; see the help page. |
|
|---|---|
| Category | Pages with incorrect ref formatting |
| System message page |
Cite error references missing key Note: this box will always show the "en — English" version of the message |
Overview
A footnote used multiple times may be defined with a name:
-
<ref name="foo">content</ref>
To invoke a named footnote:
<ref name="foo" />
References may also be defined within the reference list:
{{reflist|refs=
<ref name=rename1>refcontent1</ref>
<ref name=rename2>refcontent2</ref>
<ref name=rename3>refcontent3</ref>
<ref name=rename4>refcontent4</ref>
}}
List-defined references may be invoked by the standard markup or by use of {{r}}.
Issues and resolution
All references defined in the reference list must be invoked in the content. Unused references must be removed or commented out.
Bugs
-
bug 22635 Multiple problems with refs inside
<references>...</references>blocks.
- bug 24600 The first defined reference that is not invoked will show an incorrect error message.
Examples
There are three references defined in the list, but none are invoked in the content. Note the spurious error for the first reference named ipsum:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
==References==
{{reflist|refs=
<ref name=ipsum>Reference1</ref>
<ref name=minim>Reference2</ref>
<ref name=dolor>Reference3</ref>
}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
- References
Cite error: <ref> tag with name "dolor" defined in <references> is not used in prior text; see the help page.
Cite error: <ref> tag with name "minim" defined in <references> is not used in prior text; see the help page.
<ref> tag defined in <references> has group attribute "" which does not appear in prior text; see the help page.
If only one reference is defined but not invoked, then only the spurious error is shown:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
==References==
{{reflist|refs=
<ref name=ipsum>Reference1</ref>
}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
- References
<ref> tag defined in <references> has group attribute "" which does not appear in prior text; see the help page.