Content deleted Content added
(13 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:
{{
{{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
----
Line 30 ⟶ 32:
----
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|
* {{tl|sfn}} and variants
* {{tl|Single chart}}
A template that includes table markup; known instances:
Line 40 ⟶ 44:
==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 60 ⟶ 64:
}}
{{Help:Cite errors/lang}}
{{xt|Ex. 2) A {{tag|ref|attribs=name="..."|single}} tag is invoked ''after'' the reference list:}}
{{
==References==
Line 67 ⟶ 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 74 ⟶ 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 81 ⟶ 104:
==Bugs==
{{tracked|
* {{
* {{
* {{
* {{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}}
|