cite Errors

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.

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".

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:

    "name">content

To repeat the named reference:

    "name" />

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

If ... 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 =

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>content2ref>[http://www.washingtoninstitute.org/templateC05.php?CID=2386]ref>}} 

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:

    content1
    content2

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 , 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 tag, generating an error, but the message for a missing tag is suppressed on non-article pages. refTools will catch this problem.

Templates

Some templates may include ... tags; for example {{botanist}}. If a template of this type is included without the 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 there.

Method 2

Add the following code to the end of the template:

 {{Template reference list}}  

Method 3

Add the following code to the end of the template:

 

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 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

Tags:

cite Errors Error messagescite Errors Other problemscite Errors Toolscite Errors Messages, namespaces and categoriescite ErrorsWikipedia:Footnotes

🔥 Trending searches on Wiki English:

Johnny DeppAmazon (company)RobloxAustraliaBenjamin BrandAmanda SealesNaslen K. GafoorFlipkartList of Young Sheldon episodesOrpheus Pledger2024 Indian general electionRoad House (1989 film)Jurassic World DominionRussian invasion of UkraineIndonesiaJacob FatuDaniel SturridgePrince (musician)William Adams (pilot)Harley BalicLeBron JamesJapanFrank Field, Baron Field of BirkenheadYandex.ZenDonald Payne Jr.Armenian Genocide Remembrance DayList of Billboard Hot 100 number ones of 2023The Watchers (film)Canelo ÁlvarezKirstie AlleyCosmo JarvisWrestleMania XLMadame Web (film)Kanye WestBoeing 747Drake (musician)Asian SagaAbigail (2024 film)Grey's AnatomyElon MuskThree-body problemVasuki indicusTupac ShakurUnder the Bridge (TV series)Late Night with the DevilDhruv RatheeX-Men '972024Theodore RooseveltAlexander the GreatOpinion polling for the 2024 Indian general electionGeorge VByteDancePost MaloneCatherine, Princess of WalesJean-Philippe MatetaFIFA World CupRobert KraftBernard ArnaultFrom the river to the seaMike FaistAnthony Ashley-Cooper, 10th Earl of ShaftesburyBitcoinTaiwanLos AngelesDownloadList of European Cup and UEFA Champions League finals2023–24 AFC Champions LeagueBrad PittYoung SheldonArne SlotList of states and territories of the United StatesToyotomi HideyoshiKaren McDougalList of prime ministers of IndiaChernobyl disasterJoseph StalinFloella Benjamin🡆 More