Help:Cite errors/Cite error refs without references
Script error: No such module "Message box".Script error: No such module "Namespace detect". Help:Cite errors/header
Script error: No such module "Message box".
Overview
Template:See
When a page contains references enclosed in <ref>...</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 Template:Tl 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:
<templatestyles src="Pre/styles.css"/>
==References==
{{Reflist}}
For articles with existing references
Check the article's edit history for recent edits that may have removed or disabled an existing Template:Tl 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
<ref>tag immediately before the reference list markup does not have a closing</ref>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<ref>tag and ensure it is properly closed with</ref>. - Similarly, the reference list markup may be hidden by an unclosed HTML comment or HTML tag such as
<nowiki>or<gallery>. - This message may also show if there are
<ref>...</ref>tags after Template:Tlx. Ensure all<ref>...</ref>tags appear before the reference list. - Less common: A template such as a navbox may have
<ref>...</ref>tags within it. Template:Tl 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
Bugs
Template:TrackedTemplate:Tracked
- Template:Phab Misleading error message for omitted
</ref>tag: this documents the issue with the last</ref>missing - Template:Phab Cite: If there's no
<references />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 Template:Tl. 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 Template: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 The Template:Tl template is missing:
<templatestyles src="Pre/styles.css"/>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<ref>Reference 1</ref> Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
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.[1] Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
with this error message at the end of the article:
- ↑ Reference 1