Help:Cite errors/Cite error references missing key: Difference between revisions

Content deleted Content added
Taryn 33 (talk | contribs)
m Changed visibility of the article feedback tool on "Help:Cite errors/Cite error references missing key" ([Visibility=Enable for all users] (indefinite))
 
(16 intermediate revisions by 8 users not shown)
Line 1:
{{pp-semi-indef}}{{pp-move-indef|small=yes}}
{{Wikipedia how-to|H:CERMK}}
{{Help:Cite errors/header
|msg=Cite error references missing key
}}
Line 13 ⟶ 15:
References may also be defined within the reference list:
 
{{pre2pre|<nowiki>
{{reflist|refs=
<ref name=rename1refname1>refcontent1</ref>
<ref name=rename2refname2>refcontent2</ref>
<ref name=rename3refname3>refcontent3</ref>
<ref name=rename4refname4>refcontent4</ref>
}}</nowiki>}}
 
Line 24 ⟶ 26:
 
==Issues and resolution==
All references defined in the reference list must be invoked in theprior content. Unused references must be removed or commented out, or stripped of their {{tag|ref}} tags and moved to another section, such as "Further reading".
----
 
Placing a template that creates {{tag|ref|o}} tags inside of {{tag|ref|o}} tags may also cause this. Known instances:
Including more than one nested reference in {{ldr}} will cause a Cite error.
* {{tl|Singlechart}}
 
----
Misusing a template that was never intended as a citation template and placing it in {{tag|ref|o}} tags may cause this issue.
 
Placing aA template that creates {{tag|ref|o}} tags; inside of {{tag|ref|o}} tags may also cause this. Knownknown instances:
* {{tl|Certification Cite Ref}}
* {{tl|sfn}} and variants
* {{tl|SinglechartSingle chart}}
 
A template that includes table markup; known instances:
* {{tl|Certification Table Entry}}
 
==Examples==
{{Help:Cite errors/lang}}
{{xt|Ex. 1) 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'':}}
{{pre2pre|<nowiki>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==
Line 51 ⟶ 64:
}}
 
{{Help:Cite errors/lang}}
{{xt|If only one reference is defined but not invoked, then only the spurious error is shown:}}
{{xt|Ex. 2) A {{tag|ref|attribs=name="..."|single}} tag is invoked ''after'' the reference list:}}
{{pre2pre|<nowiki>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==
Line 58 ⟶ 72:
<ref name=ipsum>Reference1</ref>
}}
 
<ref name=ipsum />
</nowiki>}}
 
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.
 
Line 65 ⟶ 82:
<ref name=ipsum>Reference1</ref>
}}
 
<ref name=ipsum />
 
{{xt|Ex. 3) Not so obvious case. If you mistakenly nest an {{tl|sfn}} type template inside {{tag|ref}} as in the second footnote below, an error message will show:}}
{{pre|<nowiki>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<ref>{{harvp|foo|1999|p=123}}</ref> 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.<ref>{{sfnp|Foo|1999|p=123}}</ref>
 
==References==
{{reflist}}
*{{citation|last=foo|title=foobar|year=1999}}
</nowiki>}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<ref>{{harvp|Foo|1999|p=123}}</ref> 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.<ref>{{sfnp|Foo|1999|p=123}}</ref>
 
{{fake heading|sub=3|References}}
{{reflist}}
*{{citation|last=Foo|title=Foobar|year=1999}}
 
==Technical==
Line 72 ⟶ 104:
 
==Bugs==
{{tracked|22635T24635|invalid}}{{tracked|24600T26600|duplicate}}{{tracked|T22707}}{{tracked|T269531|resolved}}
* {{bugphab|22635T24635}} Multiple problems with refs inside {{tag|references}} blocks.
* {{bugphab|24600T26600}} The first defined reference that is not invoked will show an incorrect error message.
* {{phab|T22707}} Nested refs fail inside references block
* {{phab|T269531}} Define a named ref in {{tag|references|open}} without using this named ref results into a wrong error message
{{Wikipedia referencing |state=collapsed}}