Difference between revisions of "Template:Ref"
Jump to navigation
Jump to search
m |
m |
||
Line 3: | Line 3: | ||
|<span style="{{{name-style}}}">{{{2|{{{name|{{PAGENAME}}}}}}}}</span> | |<span style="{{{name-style}}}">{{{2|{{{name|{{PAGENAME}}}}}}}}</span> | ||
|{{{2|{{{name|{{PAGENAME}}}}}}}} | |{{{2|{{{name|{{PAGENAME}}}}}}}} | ||
− | }}]</ref><noinclude>[[Category:Template]][[Category:Templates]]{{documentation}}</noinclude> | + | }}]{{ |
+ | #if:{{{3|}}}{{{site|}}} | ||
+ | |{{ | ||
+ | #if:{{{notext|}}} | ||
+ | ||{{ | ||
+ | #if:{{{text-style|}}} | ||
+ | |<span style="{{{text-style}}}">{{{text| at}}}</span> | ||
+ | |{{{text| at}}} | ||
+ | }} | ||
+ | }} {{ | ||
+ | #if:{{{site-style|}}} | ||
+ | |<span style="{{{site-style}}}">{{{3|{{{site}}}}}}</span> | ||
+ | |{{{3|{{{site}}}}}} | ||
+ | }} | ||
+ | }}{{ | ||
+ | #if:{{{official|}}}{{{language|}}}{{{registration|}}}{{{subscription|}}}{{{flash|}}}{{{plugin|}}}{{{requires|}}} | ||
+ | | <span style="font-size:0.95em; font-weight:bold; color:#555; {{{requires-style|}}}">({{ | ||
+ | #if:{{{official|}}} | ||
+ | |official website | ||
+ | }}{{ | ||
+ | #if:{{{language|}}} | ||
+ | |{{ | ||
+ | #if:{{{official|}}} | ||
+ | |,  | ||
+ | }}in {{ISO 639 name|{{{language}}}}} | ||
+ | }}{{ | ||
+ | #if:{{{registration|}}} | ||
+ | |{{ | ||
+ | #if:{{{official|}}}{{{language|}}} | ||
+ | |,  | ||
+ | }}requires registration | ||
+ | }}{{ | ||
+ | #if:{{{subscription|}}} | ||
+ | |{{ | ||
+ | #if:{{{official|}}}{{{language|}}}{{{registration|}}} | ||
+ | |,  | ||
+ | }}requires subscription | ||
+ | }}{{ | ||
+ | #if:{{{flash|}}} | ||
+ | |{{ | ||
+ | #if:{{{official|}}}{{{language|}}}{{{registration|}}}{{{subscription|}}} | ||
+ | |,  | ||
+ | }}requires [[Adobe Flash]] | ||
+ | }}{{ | ||
+ | #if:{{{plugin|}}} | ||
+ | |{{ | ||
+ | #if:{{{official|}}}{{{language|}}}{{{registration|}}}{{{subscription|}}}{{{flash|}}} | ||
+ | |,  | ||
+ | }}requires [[Plug-in (computing)|plugin]] | ||
+ | }}{{ | ||
+ | #if:{{{requires|}}} | ||
+ | |{{ | ||
+ | #if:{{{official|}}}{{{language|}}}{{{registration|}}}{{{subscription|}}}{{{flash|}}}{{{plugin|}}} | ||
+ | |,  | ||
+ | }}{{{requires}}} | ||
+ | }})</span> | ||
+ | }}{{#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}}]]}} | ||
+ | }}</ref><noinclude>[[Category:Template]][[Category:Templates]]{{documentation}}</noinclude> |
Revision as of 05:26, 21 May 2016
(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[1]
References section
{{reflist|1}}