Template:Ref: Difference between revisions

Want an adless experience? Log in or Create an account.
1,641 bytes added ,  February 26, 2013
m
no edit summary
(Created page with "{{#vardefine:thisnum|{{#if: {{#var:~ref~{{{name|}}}~num}}|{{#var:~ref~{{{name|}}}~num}}|{{++|~ref~count}}}}}}<!-- Inline Reference: --><sup id="cite_ref-{{#var:thisnum}}{{#if...")
 
mNo edit summary
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:thisnum|{{#if: {{#var:~ref~{{{name|}}}~num}}|{{#var:~ref~{{{name|}}}~num}}|{{++|~ref~count}}}}}}<!--
<onlyinclude>{{#vardefine:thisnum|{{#if: {{#var:~ref~{{{name|}}}~num}}|{{#var:~ref~{{{name|}}}~num}}|{{++|~ref~count}}}}}}<!--


Inline Reference:
Inline Reference:
--><sup id="cite_ref-{{#var:thisnum}}{{#if:{{{name|}}}|-{{++|~ref~{{#var:~ref~{{{name}}}~num}}~count}}}}" class="reference">[[{{FULLPAGENAME}}#cite_note-{{#var:thisnum}}|[{{#var:thisnum}}]]]</sup><!--
--><sup id="cite_ref-{{#var:thisnum}}{{#if:{{{name|}}}|-{{++|~ref~{{!!=|~ref~{{{name}}}~num|{{#var:thisnum}}}}~count}}}}" class="reference">[[{{FULLPAGENAME}}#cite_note-{{#var:thisnum}}|[{{#var:thisnum}}]]]</sup><!--


List Note:
List Note:
Line 9: Line 9:
| {{#vardefine:~ref~{{#var:thisnum}}~data|<!--
| {{#vardefine:~ref~{{#var:thisnum}}~data|<!--


Reference Formatting:
REFERENCE FORMATTING STARTS HERE; DO NOT EDIT ABOVE THIS LINE
-->{{#ifeq: {{{1|}}}|{{Zelda|{{{1|}}}}}
 
<!--not from a game-->|{{#if: {{{2|}}}|"<i>{{{2|}}}</i>"{{#if: {{{3|}}}|{{S}}—{{S}}|,{{S}}}}|}}{{#if: {{{3|}}}|{{{3}}},{{S}}|}}{{{1|}}}
1=source | 2=quote | 3=speaker
<!--from a game-->|"<i>{{Foreach|{{{2|}}}|Dump|2|{{{1|}}}}}</i>"{{#if: {{{3|}}}|{{S}}— {{{3}}}|}}, ''[[{{Zelda|{{{1|}}}}} Text Dump|{{Zelda|{{{1|}}}}}]]''.}}}}}}
-->{{#ifeq: {{{source|{{{1}}}}}} | {{Zelda|{{{source|{{{1}}}}}}}}
| <!-- not from a game
quote  -->{{#if: {{{quote|{{{2|}}}}}}|"<i>{{{quote|{{{2}}}}}}</i>"}}<!--
speaker -->{{#if: {{{speaker|{{{3|}}}}}}|{{#if:{{{quote|{{{2|}}}}}}|{{S}}—{{S}}}}{{{speaker|{{{3}}}}}}}}<!--
source  -->{{#if: {{{quote|{{{2|}}}}}}{{{speaker|{{{3|}}}}}}|,{{S}}}}{{{source|{{{1}}}}}}
| <!-- from a game
quote  -->{{#if: {{{quote|{{{2|}}}}}}|"<i>{{Dump|{{{source|{{{1}}}}}}|{{{quote|{{{2|}}}}}}}}</i>"}}<!--
speaker -->{{#if: {{{speaker|{{{3|}}}}}}|{{S}}— {{{speaker|{{{3}}}}}}}}<!--
source  -->{{#if: {{{quote|{{{2|}}}}}}{{{speaker|{{{3|}}}}}}|,{{S}}}}''[[{{Zelda|{{{source|{{{1}}}}}}}} Text Dump|{{Zelda|{{{source|{{{1}}}}}}}}]]''.
}}}}}}</onlyinclude>
 
==Purpose==
'''References''' are used to support claims with sources of information. This template is placed after facts and organizes the source information to be displayed at the bottom of the article.
 
==Usage==
{{Usage|name{{=}}|source|quote|speaker}}
{{Usage/Param|name|If the reference is used more than once, give the first instance a name. Further instances need only provide this name and not repeat the associated information.|optional}}
{{Usage/Param|source|A link to where the information can be found. If a game abbreviation is provided, Ref will automatically link to that game's text dump.}}
{{Usage/Param|quote|A brief quotation from the source. If a game abbreviation was provided for source, then this parameter is the quote ID or IDs found in that game's text dump.|optional}}
{{Usage/Param|speaker|The speaker of the given quote, or who is otherwise cited as the source of the information. Link it to its article if it has one.|optional}}
 
Articles that use this template should include {{Temlink|References}} at the bottom.
 
For more information on using references, see [[Help:References]].
 
 
{{Cat|Formatting Templates}}