Content deleted Content added
ce, replaced: ;References → {{fake heading|sub=3|References}} (2), ==Examples== → ==Examples== {{Help:Cite errors/lang}}, Wikipedia:Manual of Style (footnotes) → Help:Footnotes using AWB |
|||
(19 intermediate revisions by 10 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:
{{
{{reflist|refs=
<ref name=
<ref name=
<ref name=
<ref name=
}}</nowiki>}}
Line 24 ⟶ 26:
==Issues and resolution==
All references defined in the reference list must be invoked in
----
Including more than one nested reference in {{ldr}} will cause a Cite error.
----
Misusing a template that was never intended as a citation template and placing it in {{tag|ref|o}} tags may cause this issue.
A template that creates {{tag|ref|o}} tags; known instances:
* {{tl|Certification Cite Ref}}
* {{tl|sfn}} and variants
* {{tl|Single 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
{{
==References==
Line 48 ⟶ 64:
}}
{{Help:Cite errors/lang}}
{{xt|Ex. 2) A {{tag|ref|attribs=name="..."|single}} tag is invoked ''after'' the reference list:}}
{{
==References==
Line 55 ⟶ 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 62 ⟶ 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 69 ⟶ 104:
==Bugs==
{{tracked|
* {{
* {{
* {{phab|T22707}} Nested refs fail inside references block
▲* {{bug|24600}} The first defined reference that is not invoked will show an incorrect error message.
* {{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}}
|