<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fallenchungus.wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3ACite_errors%2FCite_error_references_duplicate_key</id>
	<title>Help:Cite errors/Cite error references duplicate key - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fallenchungus.wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3ACite_errors%2FCite_error_references_duplicate_key"/>
	<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Help:Cite_errors/Cite_error_references_duplicate_key&amp;action=history"/>
	<updated>2026-04-22T16:02:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://www.fallenchungus.wiki/index.php?title=Help:Cite_errors/Cite_error_references_duplicate_key&amp;diff=4759&amp;oldid=prev</id>
		<title>CapybaraKiller: 1 revision imported from :Wikipedia:Help:Cite_errors/Cite_error_references_duplicate_key</title>
		<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Help:Cite_errors/Cite_error_references_duplicate_key&amp;diff=4759&amp;oldid=prev"/>
		<updated>2025-05-27T03:11:08Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/Help:Cite_errors/Cite_error_references_duplicate_key&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Help:Cite errors/Cite error references duplicate key&quot;&gt;Wikipedia:Help:Cite_errors/Cite_error_references_duplicate_key&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:11, 26 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>CapybaraKiller</name></author>
	</entry>
	<entry>
		<id>https://www.fallenchungus.wiki/index.php?title=Help:Cite_errors/Cite_error_references_duplicate_key&amp;diff=4758&amp;oldid=prev</id>
		<title>Wikipedia&gt;Widr: Reverted edit by 65.90.11.189 (talk) to last version by SunDawn</title>
		<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Help:Cite_errors/Cite_error_references_duplicate_key&amp;diff=4758&amp;oldid=prev"/>
		<updated>2024-11-15T08:11:06Z</updated>

		<summary type="html">&lt;p&gt;Reverted edit by &lt;a href=&quot;/Special:Contributions/65.90.11.189&quot; title=&quot;Special:Contributions/65.90.11.189&quot;&gt;65.90.11.189&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:65.90.11.189&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:65.90.11.189 (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last version by SunDawn&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wikipedia how-to|H:CERDK}}&lt;br /&gt;
{{Help:Cite errors/header&lt;br /&gt;
|msg=Cite error references duplicate key&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
{{see|WP:REFNAME}}&lt;br /&gt;
If you are going to reference the same source multiple times, Wikipedia allows you to name those sources so you can just refer to a source named &amp;quot;foo&amp;quot; rather than having to recreate all of the details about the citation (the author, the title, etc.) over and over. The name is created like this:&lt;br /&gt;
:{{tag|ref|params=name=&amp;quot;foo&amp;quot;|content=&amp;#039;&amp;#039;content&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
Then, to invoke that footnote you have named &amp;#039;&amp;#039;foo&amp;#039;&amp;#039;, just type this:&lt;br /&gt;
:{{tag|ref|s|params=name=&amp;quot;foo&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;content&amp;#039;&amp;#039; (the details of the citation) of the reference that has been named &amp;quot;foo&amp;quot; is thus defined only once but can be reused over and over.&lt;br /&gt;
&lt;br /&gt;
==Issues and resolution==&lt;br /&gt;
The error happens when a named reference is defined multiple times with different content. For example, first {{tag|ref|params=name=&amp;quot;foo&amp;quot;|content=&amp;#039;&amp;#039;content1&amp;#039;&amp;#039;}} and later {{tag|ref|params=name=&amp;quot;foo&amp;quot;|content=&amp;#039;&amp;#039;content2&amp;#039;&amp;#039;}}, where &amp;lt;code&amp;gt;&amp;quot;foo&amp;quot;&amp;lt;/code&amp;gt; is repeated but &amp;#039;&amp;#039;content1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;content2&amp;#039;&amp;#039; are different. The purpose of named references is to be able to invoke them elsewhere with {{tag|ref|s|params=name=&amp;quot;foo&amp;quot;}}, but there must be a unique definition of the ref name &amp;quot;foo&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If the references with &amp;#039;&amp;#039;content1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;content2&amp;#039;&amp;#039; are meant to be different then change one of the ref names, for example &amp;lt;code&amp;gt;name=&amp;quot;bar&amp;quot;&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;name=&amp;quot;foo&amp;quot;&amp;lt;/code&amp;gt;. If the reference is not meant to be invoked elsewhere then it can also be made unnamed by removing &amp;lt;code&amp;gt;name=&amp;quot;foo&amp;quot;&amp;lt;/code&amp;gt;, but this is not necessary.&lt;br /&gt;
&lt;br /&gt;
If the references are meant to be the same then replace one of the definitions by {{tag|ref|s|params=name=&amp;quot;foo&amp;quot;}} to invoke the other definition. It may technically work to make two identical definitions but this should &amp;#039;&amp;#039;not&amp;#039;&amp;#039; be done. It causes confusion and will recreate the error if somebody later changes one of the definitions without making the same change to the other.&lt;br /&gt;
&lt;br /&gt;
The error can also happen with empty ref names like {{tag|ref|params=name=&amp;quot;&amp;quot;|content=&amp;#039;&amp;#039;content&amp;#039;&amp;#039;}} or {{tag|ref|params=name|content=&amp;#039;&amp;#039;content&amp;#039;&amp;#039;}}. Ref names should not be empty. Either add a name or remove &amp;lt;code&amp;gt;name=&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Ref names may be generated by a template and produce names not in the wikitext. For example, {{tlx|sfn|Stokes|1979|4=p=2}} and {{tlx|sfn|Stokes|1979|4=pp=2}} may both produce references of form &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;ref name=&amp;quot;FOOTNOTEStokes19792&amp;quot;&amp;gt;...&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, causing the error message to use the ref name &amp;quot;FOOTNOTEStokes19792&amp;quot;. &amp;lt;code&amp;gt;p=&amp;lt;/code&amp;gt; is intended for a single page and &amp;lt;code&amp;gt;pp=&amp;lt;/code&amp;gt; for a range. &amp;lt;code&amp;gt;ps=&amp;lt;/code&amp;gt; must have the same value in each use of {{tlx|sfn}} where the other parameters are identical. An assigned value in &amp;lt;code&amp;gt;ps=&amp;lt;/code&amp;gt; cannot be combined with an omitted &amp;lt;code&amp;gt;ps=&amp;lt;/code&amp;gt; elsewhere on the page. If there is a blank &amp;lt;code&amp;gt;ps=&amp;lt;/code&amp;gt; then remove it.&lt;br /&gt;
&lt;br /&gt;
See also [[Help:Cite_errors/Cite_error_references_duplicate_key#Templates|Technical Templates]] below.&lt;br /&gt;
&lt;br /&gt;
Whole references may be transcluded from other pages. When the &amp;quot;Edit&amp;quot; or &amp;quot;Edit source&amp;quot; tab at top of a page is clicked, the bottom of the window will say &amp;quot;Pages transcluded onto the current version of this page&amp;quot;. Click the text if no list is shown. Articles are more likely than other pages to contain named references.&lt;br /&gt;
&lt;br /&gt;
The ref name in the error message may have replaced spaces by underscores and converted some special characters. &lt;br /&gt;
&lt;br /&gt;
===Names===&lt;br /&gt;
{{refname rules}}&lt;br /&gt;
&lt;br /&gt;
==Sfn==&lt;br /&gt;
If two or more calls to {{tlx|sfn}} use the same citation parameters, that is, if the author(s), year, and page number(s) are all identical, but there is some other difference, such as a use of &amp;lt;code&amp;gt;pp=&amp;lt;/code&amp;gt; vs &amp;lt;code&amp;gt;p=&amp;lt;/code&amp;gt;, or a use of &amp;lt;code&amp;gt;ps=&amp;lt;/code&amp;gt; in one but not the other, this issue will arise. &lt;br /&gt;
&lt;br /&gt;
The solution is to make the calls identical. If the &amp;lt;code&amp;gt;ps=&amp;lt;/code&amp;gt; parameter was being used to include a quote or other extended content, use {{tlx|harvnb}} inside a {{tag|ref}} construct with the quote after the template but inside the ref tag structure.&lt;br /&gt;
&lt;br /&gt;
==Nested footnotes==&lt;br /&gt;
If there are [[Wikipedia:Nesting footnotes|nested footnotes]], i.e. a reference within another reference, then the error can occur even if two definitions have identical text. Example where {{tl|sfn}} will create a ref name with another reference inside it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Buna&amp;quot;&amp;gt;Advance to Buna&amp;lt;/ref&amp;gt;&lt;br /&gt;
{{sfn|Blakeley|1956|ps=. Cited in Advance to Buna.&amp;lt;ref name=Buna /&amp;gt;}}&lt;br /&gt;
{{sfn|Blakeley|1956|ps=. Cited in Advance to Buna.&amp;lt;ref name=Buna /&amp;gt;}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Removing the inner reference will fix the error.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{Help:Cite errors/lang}}&lt;br /&gt;
{{xt|Here the reference named &amp;#039;&amp;#039;ipsum&amp;#039;&amp;#039; was defined twice, but the second definition&amp;#039;s content differs from the first (only the first definition is taken):}}&lt;br /&gt;
{{pre|&amp;lt;nowiki&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&amp;lt;ref name=&amp;quot;ipsum&amp;quot;&amp;gt;Reference 1&amp;lt;/ref&amp;gt; Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;ref name=&amp;quot;ipsum&amp;quot;&amp;gt;Reference 2&amp;lt;/ref&amp;gt; Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&amp;lt;ref name=&amp;quot;ipsum&amp;quot;/&amp;gt; Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&amp;lt;ref name=&amp;quot;ipsum&amp;quot;&amp;gt;Reference 1&amp;lt;/ref&amp;gt; Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;ref name=&amp;quot;ipsum&amp;quot;&amp;gt;Reference 2&amp;lt;/ref&amp;gt; Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&amp;lt;ref name=&amp;quot;ipsum&amp;quot;/&amp;gt; Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;br /&gt;
&lt;br /&gt;
{{fake heading|sub=3|References}}&lt;br /&gt;
{{reflist|close}}&lt;br /&gt;
&lt;br /&gt;
==Technical==&lt;br /&gt;
{{Help:Cite errors/tech&lt;br /&gt;
|msg=Cite error references duplicate key&lt;br /&gt;
|cat=Pages with duplicate reference names&lt;br /&gt;
}}&lt;br /&gt;
===Templates===&lt;br /&gt;
{{tracked|37256}}&lt;br /&gt;
In order to include variable data within a reference tag such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;ref ref_content name=ref_name&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, the &amp;lt;code&amp;gt;#tag&amp;lt;/code&amp;gt; parser function must be used. Currently &amp;lt;code&amp;gt;#tag&amp;lt;/code&amp;gt; only supports balanced tags, not a singular tag, thus &amp;lt;code&amp;gt;&amp;lt;tag_type element /&amp;gt;&amp;lt;/code&amp;gt; cannot normally be used in a template unless the element is hard coded.&lt;br /&gt;
&lt;br /&gt;
However, Cite has been modified since 2008&amp;lt;ref&amp;gt;[[Wikipedia:Village_pump_(technical)#.23tag_only_for_paired_tags_bug_workaround.3F]]&amp;lt;/ref&amp;gt; to treat &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;ref name=&amp;quot;ref-foo&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; identically to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;ref name=&amp;quot;ref-foo&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.  Note that there cannot be even a space between the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;ref . . .&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, otherwise this will result in definition of the reference named &amp;quot;ref-foo&amp;quot; to be &amp;quot; &amp;quot;, which if meant to be second reference by name to an existing reference will cause a duplicate definition error.  Correct code to produce a singular tag will look like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#tag:ref ||name={{{parameter}}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, that is, no space between the two &amp;quot;|&amp;quot;s.&lt;br /&gt;
{{Wikipedia referencing |state=collapsed}}&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Widr</name></author>
	</entry>
</feed>