Jump to content

Help:Cite errors/Cite error references duplicate key

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 188.241.47.163 (talk) at 13:51, 12 September 2016 (Sfn). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This page will help you to fix the cite error message:

The named reference "$1" was defined multiple times with different content (see the help page).

  • If you have read this help page and find something missing or confusing, please discuss it at the main talk page.
  • Please reference this page and the page where you have the problem so we can understand your issues.
  • For basic information on the footnotes system, see Referencing for beginners; for advanced help, see Footnotes.

Technical

Pages with this error message are placed into Pages with duplicate reference names. The system message page is at Cite error references duplicate key.

Templates

In order to include variable data within a reference tag such as <ref ref_content name=ref_name>, the #tag parser function must be used. Currently #tag only supports balanced tags, not a singular tag, thus <tag_type element /> cannot normally be used in a template unless the element is hard coded.

However, Cite has been modified since 2008[1] to treat <ref name="ref-foo"></ref> identically to <ref name="ref-foo" />. Note that there cannot be even a space between the <ref . . .> and the </ref>, otherwise this will result in definition of the reference named "ref-foo" to be " ", 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 {{#tag:ref ||name={{{parameter}}}}}, that is, no space between the two "|"s.