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 Defining a reftag element  



1.1  Citing different pages in a single source  





1.2  Named groupings  







2 Defining a reftag function  





3 Footnotes (fn)  





4 References  





5 See also  














Help:Reftags







Add links
 









Help page
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
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


This page, Help:Reftags, explains the use of the reftag element,<ref>...</ref> for defining reference footnotes, as displayed by using a <references /> tag or a {{Reflist}} template to list the footnotes. A reftag can also be defined by using wikitext function {{#tag:ref|...}} to generate the text <ref>...</ref> and allow direct use of subst'ing of templates to embed equivalent markup inside a footnote, or to nest a <ref>...</ref> inside a {{#tag:ref|...}}.

Defining a reftag element[edit]

The general format is <ref>text</ref> for a simple reftag footnote. However reftags can have a name="xx" to define a footnote to be reused on a page by named ref, <ref name="xx" />, as when citing the same webpage at several spots in the article text. There can be more than 3,000 reftag footnotes defined on a page, but usually there are less than a hundred.[fn 1]

Citing different pages in a single source[edit]

When citing different pages in a single source, a named ref[1] can be followed by a {{R}} template. Given a ref like "<ref name="author1990">book</ref>", the ref "author1990" can be reused, now using a different page number, say 53. This subsequent ref {{R|author1990|p=53}} will show the same superscript number, with a suffix of a colon and, in this case 53, the page number.[1]: 53  This format allows the reader to click to the reference section, and then click on other references from the same source.

Named groupings[edit]

Rather than define hundreds of footnotes in a single list, various reftags could split to some named groupings, such as using "<ref group="gg">...</ref>"" to collect those footnotes into group name "gg" as displayed by <references group="gg" />.[fn 2] For example, a common tactic is to define footnote group "fn" which shows each link as "[fn 9]" for the 9th footnote in the group="fn". A group name can be multiple words in straight double quotation marks (group="set xx yy"), but a single-word name with no punctuation or other special characters, just ASCII letters and numerals, can omit the quotation marks (as: group=fn). Hence, many group names are typically one-word labels, to avoid excessive quotation marks.[fn 3]

Defining a reftag function[edit]

Rather than using an element <ref>text</ref>, an alternate method is to use the wikitext function tag:ref, as {{#tag:ref|...text...}} to define the contents of a footnote.

Examples:

Footnotes (fn)[edit]

  1. ^ A reftag formats extremely fast, but users can become overwhelmed with more than 500 footnotes on a page.
  • ^ This is a sample footnote in group="fn".
  • ^ This footnote uses double-quotes in name group="fn".
  • References[edit]

    1. ^ a b book details here
  • ^ Example of tag:ref function
  • ^ a b Named reftag function xx1
  • See also[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Reftags&oldid=1197542305"

    Categories: 
    Wikipedia how-to
    Inactive project pages
    Wikipedia sources
     



    This page was last edited on 20 January 2024, at 23:51 (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