Wikipedia

Help:Cite errors

Help page Talk
"H:CE" redirects here. For conditional expressions, see Help:Conditional expressions.
Wikipedia information page
This is an information page.
It is not one of Wikipedia's policies or guidelines, but rather intends to describe some aspect(s) of Wikipedia's norms, customs, technicalities, or practices. It may reflect varying levels of consensus and vetting.
Shortcut
  • H:CE

The Wikipedia footnotes system has the ability to detect errors. This page documents the error messages and provides an understanding of the problem and solutions.

Contents

  • 1 Error messages
  • 2 Other problems
    • 2.1 In ref name use only straight quotation marks
    • 2.2 A page shows in the reference error category, but no cite errors show
    • 2.3 Reference links show in the body of the article, but do not show in the reference list
    • 2.4 Content on a non-article page is missing
    • 2.5 Templates
  • 3 Tools
  • 4 Messages, namespaces and categories
  • 5 See also

Error messages

The messages will be formatted as an error, and are visible on the rendered page after hitting the "Publish changes" button.

These messages are dependent on the language setting in Special:Preferences— this list applies only to "en — English".

  • There are <ref> tags on this page without content in them (see the help page).
  • The opening <ref> tag is malformed or has a bad name (see the help page).
  • The <ref> tag has too many names (see the help page).
  • The <ref> tag name cannot be a simple integer (see the help page).
  • A <ref> tag is missing the closing </ref> (see the help page).
  • The named reference $1 was invoked but never defined (see the help page).
  • Invalid parameter: use the {{reflist}} template with the group parameter (see the help page).
  • Ran out of custom backlink labels (see the help page).
  • There are <ref group=$1> tags on this page, but the references will not show without a {{reflist|group=$1}} template (see the help page).
  • A list-defined reference has a conflicting group attribute "$1" (see the help page).
  • A list-defined reference with group name "$1" is not used in the content (see the help page).
  • A list-defined reference named "$1" is not used in the content (see the help page).
  • A list-defined reference has no name (see the help page).
  • The named reference "$1" was defined multiple times with different content (see the help page).
  • A list-defined reference with the name "$1" has been invoked, but is not defined in the <references> tag (see the help page).
  • Cite error: $1

Other problems

Some problems may not show a cite error message, while others may not be obvious.

In ref name use only straight quotation marks

When you cite the same source more than once on a page, use only straight quotation marks " " to enclose the reference name. Do not use curly quotation marks “ ”, which are treated as simply another character, not as quotation marks. An error message will appear if the original and repeat references use a mix of straight and curly quotation marks. The syntax to define a named reference is:

<ref name="name">content</ref>

To repeat the named reference:

<ref name="name" />

A page shows in the reference error category, but no cite errors show

If <ref>...</ref> includes a URL with an =, and if the reference is inside a template, then the template will fail. Depending on the placement of the URL, the cite error message may not display, but the page will be included in the error category. Ensure that = are encoded as &#61;

refTools should catch this problem.

For example, an incorrectly nested reference where {{lower}} is being used to make the reference smaller:

{{lower|<ref>content1<ref>content2</ref>[http://www.washingtoninstitute.org/templateC05.php?CID=2386]</ref>}}

Reference links show in the body of the article, but do not show in the reference list

This may be caused by a template that is not properly closed with }}.

It can also be caused by multiple footnotes that are defined to use the same name. Links will be generated for both, but only the first will show in the references list: For example:

<ref name="foo">content1</ref>
<ref name="foo">content2</ref>

Only content1 will show. refTools will catch this problem.

Content on a non-article page is missing

If a footnote does not have a closing </ref>, it will "eat" the following text, causing it to not show. This normally shows a cite error, unless it is the last footnote on the page. Normally, this would then suppress the <references /> tag, generating an error, but the message for a missing <references /> tag is suppressed on non-article pages. refTools will catch this problem.

Templates

Some templates may include <ref>...</ref> tags; for example {{botanist}}. If a template of this type is included without the <references /> tag, then an error is generated, but the problem is not obvious. refTools will not catch this problem.

Several methods are available for solving this problem. Below they are listed in order of preference. Note that only one of these is required, not all of them.

Method 1

If the template has a documentation page, add <references /> there.

Method 2

Add the following code to the end of the template:

<noinclude>
{{Template reference list}}
</noinclude>

Method 3

Add the following code to the end of the template:

<noinclude>
<div style="display: none"><references /></div>
</noinclude>

Cons: Hides the references, not informing the user that it is there; editors won't be able to check the references formatting.

Method 4

Include the <references /> tag within the template itself using the group parameter. See Help talk:Cite errors/Testcases1 for an example.

Cons: Creates a separate references section that may not be obvious; does not allow reuse of the references within the body of the article.

Tools

refTools can be enabled via Preferences → Editing → Usability features. It includes an error checking tool for common problems.

Messages, namespaces and categories

Internal messages are generated by the Cite.php extension and shown as a MediaWiki message. See the parser hooks section of Special:Version for the installed version of Cite.php. These messages are in the MediaWiki namespace and can be modified only by admins.

The MediaWiki messages use {{broken ref}} to control the namespace and category. Messages show only on main (article), user, template, category, help and file pages. Talk pages do not show error messages.

Category default sorting is by {{PAGENAME}} for the main namespace and by τ{{PAGENAME}} for template, category, help and file namespaces.

See also

  • Help:CS1 errors: Messages and solutions for errors occurring inside of a reference as issued by Citation Style 1 templates
  • v
  • t
  • e
Wikipedia referencing
Policies and guidelines
  • Verifiability
  • No original research
  • Biographies of living persons
  • Reliable sources
    • Medicine
  • Citing sources
  • Scientific citations
General advice
  • Citation needed
  • Find sources
  • Combining sources
  • Offline sources
  • Referencing styles
Citing sources
  • Citation Style 1
  • Citation Style 2
  • Citation Style Vancouver
  • LSA
  • Comics
  • Citation templates
  • Reflist template
Inline citations
  • Footnotes
  • Punctuation and footnotes
  • Shortened footnotes
  • Nesting footnotes
Help for beginners
  • Reference-tags
  • Citations quick reference
  • Introduction to referencing
  • Referencing with citation templates
  • Referencing without using templates
  • Referencing dos and don'ts
  • Citing Wikipedia
Advanced help
  • Cite link labels
  • Citation tools
  • Cite errors
  • Cite messages
  • Converting between references formats
  • Reference display customization
  • References and page numbers
  • Guidance on source reviewing at FAC
Template documentation
  • {{Edit refs}}
  • {{Refref}}
  • {{Refref2}}
  • {{Refstart}}
Tools
  • Wikipedia Library
Deprecated
  • Parenthetical referencing
  • v
  • t
  • e
Wikipedia help pages
  • Visit the Teahouse or the Help desk for an interactive Q & A forum.

  • FAQs (?)
  • Reference desks (?)
  • Noticeboards (?)
  • Cheatsheet (?)
  • Directories (?)
About Wikipedia (?)
  • Administration
    • Purpose
    • Principles
  • Policies and guidelines
  • What Wikipedia is not
  • Disclaimer (parental advice)
  • Making requests
  • Who writes Wikipedia?
Help for readers (?)
  • FAQ
  • Books
  • Copyright
  • Glossary
  • Mobile access
  • Navigation
  • Other languages
  • Searching
  • Students
  • Viewing media
Contributing
to Wikipedia
 (?)
  • Advice for young editors
  • Avoiding common mistakes
  • Etiquette
  • Simplified Manual of Style
  • Simplified rule-set
    • "Ignore all rules"
    • "The rules are principles"
  • Style-tips
  • Tip of the day
  • Your first article (article wizard)
Getting started (?)
  • Why create an account?
  • Introductions by topic
  • Graphics tutorials
    • Picture tutorial
    • IRC (live chat) tutorial
  • VisualEditor user guide
Dos and don'ts (?)
  • Accessibility
  • Biographies
  • Biographies (living)
  • Categorization
  • Consensus
  • Discussions
  • Disambiguation
  • Images
  • Leads
  • Links
  • Lists
  • References
  • Tables
  • Titles (of articles)
How-to pages and
information pages (?)
  • Appealing blocks
  • Article deletion
  • Categories
  • Citations/references
    • Referencing for beginners
    • Citation Style 1
    • Cite errors
    • References and page numbers
  • Convert
  • Diff
  • Editing
    • Minor edit
    • toolbar
    • edit conflict
  • Find sources
  • Files
  • Footnotes
  • Image deletion
  • Infoboxes
  • Linking (link color)
  • Logging in
  • Merging
  • Page name
    • Renaming pages
  • Redirect
  • Passwords
    • Email confirmation
  • Reverting
    • Simple vandalism cleanup
  • Talk pages (archiving
  • simple archiving)
  • User contributions
  • WP search protocol
Coding (?)
  • Wiki markup
  • Barcharts
  • Calculations
  • Characters
  • Columns
  • Hidden text
  • HTML
  • Lists
  • Magic words
  • Music symbols
  • Sections
  • Sounds
  • Tables
  • Templates
  • Transclusion
  • URL
  • Visual files
Directories (?)
  • Abbreviations
  • Contents (Encyclopedia proper)
  • Departments
  • Editor's index
  • Essays
  • FAQs
  • Glossary
  • Guidelines
  • Manual of Style
  • Policies
  • Tasks
  • Tips
  • Tools
Missing Manual
Ask for help on your talk page (?)
Retrieved from "https://en.wikidark.org/w/index.php?title=Help:Cite_errors&oldid=1086023370"
Wikipedia dark mode