Difference between revisions of "Template:Ref"

Jump to navigation Jump to search
1,325 bytes removed ,  4 years ago
m
tweak
m
m (tweak)
 
(6 intermediate revisions by 2 users not shown)
 
TEXT
-->|{{#if:{{{empty|{{{Etext|}}}|}}}||<!--
 
-->{{{pre|}}}<!--
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|b={{#switch:{{{3}}}|i|interlude=[[Category: Interlude references]]|c=[[Category: Chapter references]]|[[Category: Book references]]}}{{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|{{#if:{{{fragment|}}}|fragment={{{fragment}}}|}}|}}<!--
 
DEFAULT
-->|{{{1}}}[[Category: Empty references]]<!--
-->}}<!--
-->{{{post|}}}<!--
 
-->}}<!-- end $empty OR $E
 
NAME
-->|name={{uc:{{{name|{{{Ntext|}}}|}}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
-->|}}<!--
 
-->|}}}|}}}|}}<!--
 
GROUP
-->|group={{{group|{{{G|}}}|}}}<!--
 
-->}}<!--
 
-->{{#if:{{{name|}}}{{{1text|}}}||[[Categorycategory: Emptyempty references]]|}}<!--
--></includeonly><noinclude>
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
|}
 
--></includeonly><noinclude>[[category: reference templates| ]]
* 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.
 
This template is mainly used to in definitions of the individual [[:Category: Reference templates|reference templates]], though there are a few cases where it is used directly.
== Common Usage ==
* Sometimes it is also useful to just annotate something with a reference, which this template can also be used for with the {{{text}}} parameter.
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:
* It is also used when another [[:Category: Reference templates|reference templates]] has been used with <code>name=X</code>, in which case that reference can be cited again with <code><nowiki>{{ref|name=X}}</nowiki></code>.
* 'b' stands for book. See list of available shorthand [[Template:B|here]].
* 'c' stands for chapter, See list of variants [[Template:C|here]].
 
For most situations, however, the other reference templates should be used as they offer more structure. See [[Help:Cite]] for more details on using references.
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>
 
== Articles using Template ==
[[Category: Reference templates]]
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
40,275

edits

Navigation menu