Difference between revisions of "Template:Ref"
Jump to navigation
Jump to search
m (default references will be gettble from what uses {{ref}}) |
m |
||
Line 2: | Line 2: | ||
TEXT |
TEXT |
||
-->|{{ |
-->|{{{text|}}}<!-- |
||
-->{{{pre|}}}<!-- |
|||
-->{{#switch:{{lc:{{{1}}}|}}<!-- |
|||
-->|b=[[Category: Chapter references]]{{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!-- |
|||
DEFAULT |
|||
-->|{{{1}}}<!-- |
|||
-->}}<!-- |
|||
-->{{{post|}}}<!-- |
|||
-->}}<!-- end {{{empty}}} |
|||
NAME |
NAME |
||
-->|name={{{name|<!-- |
-->|name={{{name|}}<!-- |
||
-->{{#switch:{{lc:{{{1}}}|}}<!-- |
|||
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!-- |
|||
-->|}}<!-- |
|||
-->|}}}<!-- |
|||
GROUP |
GROUP |
||
Line 28: | Line 11: | ||
-->}}<!-- |
-->}}<!-- |
||
-->{{#if:{{{name|}}}{{{text|}}}||[[Category: Empty references]]|}}<!-- |
|||
--></includeonly><noinclude> |
--></includeonly><noinclude> |
||
This template is mainly used to refer to named references as such: {{t|ref|name=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]] |
[[Category: Reference templates]] |
Revision as of 20:26, 29 August 2014
This template is mainly used to refer to named references as such: {{ref|name=blah}}
so that one of the other 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.