Help:Cite errors/Cite error refs without references
{{Wikipedia how-to}}
{{Help:Cite errors/header
|msg=Cite error refs without references
}}
{{Notice|This message has been removed in gerrit:141583. A reference list will now show at the bottom of the page by default for refs without a group. See task T68860 for more information.}}
Overview
{{See|Help:Footnotes|Wikipedia:Manual of Style/Layout}}
When a page contains references enclosed in {{tag|ref}} tags, the page must also have markup to actually show the reference list; otherwise the error message will be displayed.
The reference list is shown by including the {{tl|reflist}} template, generally placed in its own section near the end of the page and usually with a section heading titled "References", "Notes", "Footnotes", "Works cited" or some other name; see WP:FNNR.
Issues and resolution
=For articles that previously had no references=
The most common issue for a new article, or for one that has just had its first reference added, is missing reference list markup. To fix the problem in this case, simply add the markup:
{{pre|
{{Reflist}}}}
=For articles with existing references=
Check the article's edit history for recent edits that may have removed or disabled an existing {{tl|reflist}} template. Undoing or correcting an erroneous edit may bring back the reference list and fix other problems as well. See below for the kinds of changes that might make an existing reference list disappear.
- Sometimes the reference list markup exists, but the message is shown because the {{tag|ref|o}} tag immediately before the reference list markup does not have a closing {{tag|ref|c}} or it is malformed, thus hiding the rest of the text in the article, including the reference list. If this is the case, find the last {{tag|ref|o}} tag and ensure it is properly closed with {{tag|ref|c}}.
- Similarly, the reference list markup may be hidden by an unclosed HTML comment or HTML tag such as {{tag|nowiki|o}} or {{tag|gallery|o}}.
- This message may also show if there are {{tag|ref}} tags after {{tlx|Reflist}}. Ensure all {{tag|ref}} tags appear before the reference list.
- Less common: A template such as a navbox may have {{tag|ref}} tags within it. {{tl|Template reference list}} can be used in this case — see the documentation.
- Less common: Redirect pages should have no content other than the redirect, a redirect template and possibly a category.
Technical
{{Help:Cite errors/tech
|msg=Cite error refs without references
|cat=Pages with missing references list}}
Bugs
{{tracked|21798}}{{tracked|66860}}
- {{phab|23798}} Misleading error message for omitted {{tag|ref|c}} tag: this documents the issue with the last {{tag|ref|c}} missing
- {{phab|68860}} Cite: If there's no {{tag|references|s}} block on the page, show one automatically below the content rather than showing an error
Proposals
There have been several proposals to have the error message automatically add {{tl|Reflist}}. Issues:
- There is no standard section name for references; see WP:FNNR.
- The cite error message is always placed at the end of the article, thus any automatic reflist will be placed out of order at the very end.
- The {{cite.php}} extension classes all error messages in bold red, thus a reference list generated by the message will inherit those attributes.
==Examples==
{{Help:Cite errors/lang}}
{{xt|The {{tl|reflist}} template is missing:}}
{{Pre|
{{xt|Would appear in an article as:}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Reference 1 Ut enim ad minim veniam, quis nostrud exercitation ullamco {{Not a typo|laboris}} nisi ut aliquip ex ea commodo consequat.
{{xt|with this error message at the end of the article:}}