Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Overview  





2 Issues and resolution  





3 Examples  



3.1  Improperly closed ref tag  





3.2  Nesting ref tags  







4 Technical  





5 Bugs  














Help:Cite errors/Cite error included ref







Add links
 









Help page
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Help:Cite errors

This page will help you to fix the cite error message:

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

The last reference on a page will not show this error; instead, the code will appear as normal text, <ref>.

Overview

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> or a single tag such as <ref name=refname />.

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.

If a reference has not been initiated with a <ref> tag, the error will appear at the properly formed preceding reference. For example, if you code

<ref>reference 1</ref> ... reference 2</ref>

then the error message will appear at the location of reference 1, not reference 2.


When referring to an already named reference, ensure that the ref tag is in the following format. Note the final slash, which must be directly adjacent to the closing angle bracket.

<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).</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

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


Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Cite_errors/Cite_error_included_ref&oldid=1177884407"

Category: 
Wikipedia how-to
Hidden categories: 
Pages with reference errors
Pages with incorrect ref formatting
 



This page was last edited on 30 September 2023, at 06:49 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki