Help:Cite errors/Cite error references no key#Issues and resolution
{{pp-semi-indef}}{{pp-move-indef|small=yes}}
{{Wikipedia how-to| H:CERNKY}}
{{Help:Cite errors/header
|msg=Cite error references no key
}}
Overview
{{see|Help:Footnotes}}
A footnote used multiple times may be defined with a name:
:{{tag|ref|params=name="foo"|content=content}}
To invoke a named footnote:
:{{tag|ref|s|params=name="foo"}}
References may also be defined within the reference list:
{{pre|
{{reflist|refs=
}}}}
List-defined references may be invoked by the standard markup or by use of {{tl|r}}.
An explanatory note may include a reference by using #tag:ref:
:{{#tag:ref|refcontent|name=name|group=groupname}}
Where content may include {{tag|ref}} tags
Issues and resolution
A list-defined reference has an invalid name. Ensure the footnote name is formatted properly.
More than one use of {{tlx|refn}} or #tag:ref within list defined references. You can only use {{tlx|refn}} or #tag:ref once as a list-defined reference.
Examples
{{Help:Cite errors/lang}}
{{xt|In the example below, a reference with the name excepteur is not named in the References list, since that reference is malformed. This causes a secondary error because the undefined reference is invoked in the References list:}}
{{pre|
References
{{reflist|refs=
{{highlight|
}}}}
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 laborious nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus.
{{fake heading|sub=3|References}}
{{reflist|refs=
}}
{{xt|Nested references defined with #tag:ref are used more than once in the reference list:}}
{{pre|
Notes
{{reflist|group=nb|refs=
{{refn|duisReference 1|name=duis|group=nb}}
{{refn|excepteurReference 2|name=excepteur|group=nb}}
}}
References
{{reflist|refs=
minim}}}}}
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 laborious nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus.
{{fake heading|sub=3|Notes}}
{{reflist|group=nb|refs=
{{refn|duisReference 1|name=duis|group=nb}}
{{refn|excepteurReference 2|name=excepteur|group=nb}}
}}
{{fake heading|sub=3|References}}
{{reflist|refs=
minim}}
Technical
{{Help:Cite errors/tech
|msg=Cite error references no key
}}
Bugs
{{tracked|T22707}}
- {{phab|T22707}} Nested refs fail inside references block
{{Wikipedia referencing |state=collapsed}}