Difference between revisions of "Template:Ref"

From comp.tf
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<ref name="{{{2|}}}">[{{{1|{{{url|<noinclude>http://www.example.com/</noinclude>}}}}}} {{
+
[{{{1|{{{url|<noinclude>http://www.example.com/</noinclude>}}}}}} {{
 
   #if:{{{name-style|}}}
 
   #if:{{{name-style|}}}
 
   |<span style="{{{name-style}}}">{{{2|{{{name|{{PAGENAME}}}}}}}}</span>
 
   |<span style="{{{name-style}}}">{{{2|{{{name|{{PAGENAME}}}}}}}}</span>
Line 61: Line 61:
 
}}{{#if:{{{1|}}}{{{url|<noinclude>http://www.example.com/</noinclude>}}}
 
}}{{#if:{{{1|}}}{{{url|<noinclude>http://www.example.com/</noinclude>}}}
 
   ||{{error|Error: No {{para||url}} specified when using {{tl|{{{template|External link}}}}}[[Category:Pages with external link template errors|{{PAGENAME}}]]}}
 
   ||{{error|Error: No {{para||url}} specified when using {{tl|{{{template|External link}}}}}[[Category:Pages with external link template errors|{{PAGENAME}}]]}}
}}</ref><noinclude>[[Category:Template]][[Category:Templates]]{{documentation}}</noinclude>
+
}}<noinclude>[[Category:Template]][[Category:Templates]]{{documentation}}</noinclude>

Revision as of 05:26, 21 May 2016

Ref

(view - edit) Documentation

Template:Ref is used for single refs/citations.

Usage

{{ref|name|link}}

  • name - The text to be displayed when the ref is referred to in the references section.
  • link - The desired URL for the ref.

Example

Inline citation

abc{{ref|ETF2L announces Season 24|http://www.teamfortress.tv/33407/}}
abc[ETF2L announces Season 24 http://www.teamfortress.tv/33407/]

References section

{{reflist|1}}

See also

Template:Reflist