Template:Ref/doc: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (1 revision imported)
mNo edit summary
Line 1:
{{Documentation subpage}}
{{Notice|image=Stop hand nuvola.svg|'''This is {{plain link|url=//en.wikipedia.org/w/index.php?title=Wikipedia:Footnote3&diff=41876751&oldid=41331534|name=no longer}} the recommended method of citing sources.''' If a note list separate from the list of references is desired, {{tl|refn}} and {{tl|efn}} may be used.<br /> For information on how to place and format citations, see [[W:Wikipedia:Citing sources]].<br /> An explanation on how to create 'numbered footnotes' is at [[W:Help:Footnotes]].}}
 
This documentation is for the {{tl|ref}}, {{tl|note}}, {{tl|ref label}} and {{tl|note label}} templates. The ''note'' templates place notes into an article, and the ''ref'' templates place labeled references to the notes, with the labels normally hyperlinks for navigating from a ref to a corresponding note and back from the note to the ref. The ''label'' pair of templates are similar to the pair without the ''label'' name, but with more features.
Line 40:
===''label''===
Label text displayed where these templates are inserted (mandatory for {{tld|ref label}} and {{tld|note label}}). The following explains template specific behavior:
*In {{tld|ref}}, {{tld|ref label}} and {{tld|note label}}, the label appears in [[W:superscript| superscript]]; in {{tld|note}}, the label appear as standard-sized baseline bold text.
*In {{tld|ref}}, {{tld|ref label}} and {{tld|note}}, the label is also hyperlinked and helps navigating back and forth between the inline footnote marker (in the prose) and its body text. {{tld|Note label}}, however, does not attach a hyperlink to the label but disregards this parameter when the ''backlink'' parameter (explained later) is present.
*In {{tld|ref label}}, the label is always enclosed in brackets.
Line 66:
This parameter is optional in {{tld|ref}} and {{tld|note}}, therefore:
*{{tld|Ref}} displays a unique number in square brackets if this parameter is omitted. (See example above.)
*{{tld|Note}} appends this label to a back linked [[W:caret| caret]] (^), so if omitted, only a caret is displayed. (See example above.)
 
There is no mandate to include this parameter in both ref and note portion at the same time. In fact, there may be the need to do the opposite. This example shows how to use {{tld|ref}} and {{tld|note}} to link multiple footnote markers of the same appearance to the same footnote.
Line 190:
|}
 
Since the footnote body text starts without a delimiter after this string, there is a caveat: If the footnote body text start with a lowercase letter, the first word may be attached to the back link. (For more info, see [[W:Help:Wikilinks]].)
{| class=wikitable
|+ Example of ''backlink'' bug
Line 348:
* [[Wikipedia:Template messages/Sources of articles]]
* [[:Category:Citation templates]], including those not part of the "Ref/Note Label" system.
* {{Tl|A note}}
* {{tl|Notice}}
* {{template|Rp}}
* [[Template:Ref/examples]]
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu