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 Usage  





2 Sister template  





3 References  














Template:Refref









اردو
 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



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


Visual inline citation guide
Formatting references using inline citations

All information in Wikipedia articles should be verifiedbycitationstoreliable sources. Our preferred method of citation is using the "cite.php" form of inline citations, using the <ref></ref> elements. Using this method, each time a particular source is mined for information (don't copy word-for-word!), a footnote is placed in the text ("inline"), that takes one to the detail of the source when clicked, set forth in a references section after the text of the article.

In brief, anywhere you want a footnote to appear in a piece of text, you place an opening <ref> tag followed by the text of the citation which you want to appear at the bottom of the article, and close with a </ref> tag. Note the closing slash ("/"). For multiple use of a single reference, the opening ref tag is given a name, like so: <ref name="name"> followed by the citation text and a closing </ref> tag. Each time you want to use that footnote again, you simply use the first element with a slash, like so: <ref name="name" />.

In order for these references to appear, you must tell the software where to display them, using either the code <references/> or, most commonly, the template, {{Reflist}} which can be modified to display the references in columns using {{Reflist|colwidth=30em}}. Per our style guidelines, the references should be displayed in a separate section denominated "References" located after the body of the article.

Inline citation code; what you type in 'edit mode' What it produces when you save

Two separate citations.<ref>Citation text.</ref><ref>Citation text2.</ref>


Multiple<ref name="multiple">Citation text3.</ref> citation<ref name="multiple" /> use.<ref name="multiple" />

== References ==

{{Reflist}}

Two separate citations.[1][2]



Multiple[3] citation[3] use.[3]




References_________________

  1. ^ Citation text.
  • ^ Citation text2.
  • ^ a b c Citation text3.
  • Templates that can be used between <ref>...</ref> tags to format references

    {{Citation}}{{Cite web}}{{Cite book}}{{Cite news}}{{Cite journal}}OthersExamples

    This template is intended to assist users at the help desk, AfC help desk, the Teahouse, for replying to {{Help me}} requests and at other fora, where the basics of providing inline citations needs to be explained. It provides a visual guide to inline citations that some users may respond better to than a text explanation alone.

    Usage[edit]

    Sister template[edit]

    A more basic sister template exists at {{Refref2}}. It contains only the visual elements of this one, i.e., without the text explanation portion, and given its smaller footprint, is neither collapsed by default, nor hidden using a header bar. For comparison, the sister template's output is shown below:

    Formatting references using inline citations
    Inline citation code; what you type in 'edit mode' What it produces when you save
    Two separate citations.<ref>Citation text.</ref><ref>Citation text2.</ref>

    Multiple<ref name="multiple">Citation text3.</ref> citation<ref name="multiple" /> use.<ref name="multiple" />

    References[edit]

    {{reflist}}

    Two separate citations.[1][2]

    Multiple[3] citation[3] use.[3]

    References

    1. ^ Citation text.
  • ^ Citation text2.
  • ^ a b c Citation text3.
  • Templates that can be used between <ref>...</ref> tags to format your references
  • {{Cite web}}
  • {{Cite book}}
  • {{Cite news}}
  • {{Cite journal}}
  • Others
  • Examples

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Refref&oldid=957171072"

    Category: 
    Help desk templates
    Hidden category: 
    Sidebars with styles needing conversion
     



    This page was last edited on 17 May 2020, at 12:14 (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