Template:Ref: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
No edit summary
mNo edit summary
(6 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:
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: {{{source|}}} | {{Zelda|{{{source|}}}}}
 
1=source | 2=quote | 3=speaker
-->{{#ifeq: {{{source|{{{1}}}}}} | {{Zelda|{{{source|{{{1}}}}}}}}
| <!-- not from a game
| <!-- not from a game
quote  -->{{#if: {{{quote|}}}|"<i>{{{quote|}}}</i>"}}<!--
quote  -->{{#if: {{{quote|{{{2|}}}}}}|"<i>{{{quote|{{{2}}}}}}</i>"}}<!--
speaker -->{{#if: {{{speaker|}}}|{{#if:{{{quote|}}}|{{S}}—{{S}}}}{{{speaker}}}}}<!--
speaker -->{{#if: {{{speaker|{{{3|}}}}}}|{{#if:{{{quote|{{{2|}}}}}}|{{S}}—{{S}}}}{{{speaker|{{{3}}}}}}}}<!--
source  -->{{#if: {{{quote|}}}{{{speaker|}}}|,{{S}}}}{{{source|}}}
source  -->{{#if: {{{quote|{{{2|}}}}}}{{{speaker|{{{3|}}}}}}|,{{S}}}}{{{source|{{{1}}}}}}
| <!-- from a game
| <!-- from a game
quote  -->"<i>{{Foreach|{{{quote|}}}|Dump|2|{{{source|}}}}}</i>"<!--
quote  -->{{#if: {{{quote|{{{2|}}}}}}|"<i>{{Dump|{{{source|{{{1}}}}}}|{{{quote|{{{2|}}}}}}}}</i>"}}<!--
speaker -->{{#if: {{{speaker|}}}|{{S}}— {{{speaker}}}}}<!--
speaker -->{{#if: {{{speaker|{{{3|}}}}}}|{{S}}— {{{speaker|{{{3}}}}}}}}<!--
source  -->, ''[[{{Zelda|{{{source|}}}}} Text Dump|{{Zelda|{{{source|}}}}}]]''.
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}}

Revision as of 00:30, February 26, 2013

[1]

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

{{Ref| name= | source | quote | speaker }}

  • 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.)
  • 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.
  • 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.)
  • 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 {{References}} at the bottom.

For more information on using references, see Help:References.