Help:Cite errors/Cite error included ref

From Wikipedia, the free encyclopedia
Jump to: navigation, search

This page will help you to fix the error message:

A <ref> tag is missing the closing </ref> (see the help page).

  • If you need help with a particular problem, please discuss it on the article talk page or at the Help Desk.
  • 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.

The last reference on a page will not show this error and will "eat" the following content.

Overview

Further information: Help:Footnotes

References are defined within <ref>...</ref> tags.

Issues and resolution

The closing </ref> tag is missing or malformed. Ensure that you are either using a closed pair of tags such as <ref>content</ref>. Extra spaces may also cause this, for example < /ref> or <ref name=foo / >.


This error will also show if <ref>...</ref> tags or a named reference are nested inside another set of <ref>...</ref> tags. <ref>...</ref> tags cannot be nested; see WP:REFNEST for details.


When referring to an already named reference, ensure that the ref tag is in the following format (note the final slash):

<ref name="reference name" />

See WP:REFNAME for details.

Examples

Improperly closed ref tag

In this example, reference 2 is improperly closed with <ref>. Note how the content between the reference 2 <ref> and the reference 3 </ref> is missing:

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.<ref>Reference 2<ref> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<ref>Reference 3</ref> Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida.

==References==
{{reflist}}

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.Cite error: A <ref> tag is missing the closing </ref> (see the help page). Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida.

References
  1. ^ Reference 1

Nesting ref tags

Here reference 2 is nested inside reference 1:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<ref>Reference 1<ref>Reference 2<ref></ref> Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

==References==
{{reflist}}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Cite error: A <ref> tag is missing the closing </ref> (see the help page). Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

References

Technical

Pages with this error message are placed into Pages with incorrect ref formatting. The system message page is at Cite error included ref.

Bugs