Difference between revisions of "Template:Ref"

Jump to navigation Jump to search
1,590 bytes removed ,  9 years ago
m
no edit summary
m (default references will be gettble from what uses {{ref}})
m
 
TEXT
-->|{{#if:{{{emptytext|}}}|[[Category: Empty references]]|<!--
 
-->{{{pre|}}}<!--
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|b=[[Category: Chapter references]]{{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
 
DEFAULT
-->|{{{1}}}<!--
-->}}<!--
-->{{{post|}}}<!--
 
-->}}<!-- end {{{empty}}}
 
NAME
-->|name={{{name|}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
-->|}}<!--
 
-->|}}}<!--
 
GROUP
 
-->}}<!--
 
-->{{#if:{{{name|}}}{{{text|}}}||[[Category: Empty references]]|}}<!--
 
--></includeonly><noinclude>
This template is mainly used to refer to named references as such: {{t|ref|name&#61;blah}} so that one of the other [[:Category: Reference templates|reference templates]] can be referenced shorthand. Sometimes it is also useful to just annotate something with a reference, which this template can also be used for with the {{{text}}} parameter. For most situations the other reference templates should be used as they offer more structure.
THIS TEMPLATE IS BEING REPLACED: See [[:Category: Reference templates]] for other templates to be using instead
 
 
This template is meant to standardize and simplify, the referencing process for most common sources to [[Brandon Sanderson]] information. References added with template will show at the bottom of the article in the footnotes section, as usual.
The template encapsulate the functionality of several [[Category:Link macros|link macro]] in order to simplify reference reuse, by automatically giving names to references with particular characteristics.
 
== Detailed Usage ==
Generally the format to use the template is: <code>{{t|ref|First parameter|Additional arguments...}}</code>
 
The ''First parameter'' determines which arguments should be passed after. See list of available parameters:
{| class=infobox width=100%
|-
! class=title | First parameter
! class=title | Meaning
! class=title | Notes
|-
| b || Reference a book or chapter || 3 arguments passed to {{t|b}}, reusable
|}
 
* For detailed instructions see the individual template pages.
* If the first argument does not match one of the arguments in the table, the contents of the first argument are directly wrapped in ref tags.
 
== Common Usage ==
Commonly you'll be referencing books, thus the format will look similar to this: <code>{{t|ref|b|book shorthand|c|chapter shorthand}}</code> where:
* 'b' stands for book. See list of available shorthand [[Template:B|here]].
* 'c' stands for chapter, See list of variants [[Template:C|here]].
 
Practical Examples for referencing [[The Way of Kings]]:
<pre>
{{ref|b|sa1|c|9}} - will create a reference to "The Way of Kings, Chapter 9",
{{ref|b|sa1|i|9}} - will create a reference to "The Way of Kings, Interlude 9"
</pre>
 
[[Category: Reference templates]]
40,275

edits

Navigation menu