Difference between revisions of "Template:Ref"

From The Coppermind
Jump to navigation Jump to search
m (hope this stops ambiguities between book identifiers for {{{1}}}=b)
m
Line 56: Line 56:
   
 
==Detailed Usage==
 
==Detailed Usage==
Generally the format to use the template is: <code>{{tlx|ref|First parameter|Additional arguments...}}</code>
+
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:
 
The ''First parameter'' determines which arguments should be passed after. See list of available parameters:
Line 67: Line 67:
 
| a || Reference another wiki article || argument 3 acts as an alternative link title
 
| a || Reference another wiki article || argument 3 acts as an alternative link title
 
|-
 
|-
| b || Reference a book or chapter || 3 arguments passed to {{T|b}}, reusable
+
| b || Reference a book or chapter || 3 arguments passed to {{t|b}}, reusable
 
|-
 
|-
 
| ? || Reference a question in Theoryland's Q&A database || 2 arguments become interwiki to the [http://www.theoryland.com/listintv.php Theoryland interview database], the third becomes the text, reusable by first 2
 
| ? || Reference a question in Theoryland's Q&A database || 2 arguments become interwiki to the [http://www.theoryland.com/listintv.php Theoryland interview database], the third becomes the text, reusable by first 2
Line 98: Line 98:
   
 
== Common Usage ==
 
== Common Usage ==
Commonly you'll be referencing books, thus the format will look similar to this: <code>{{tlx|ref|b|book shorthand|c|chapter shorthand}}</code> where:
+
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]].
 
* 'b' stands for book. See list of available shorthand [[Template:B|here]].
 
* 'c' stands for chapter, See list of variants [[Template:C|here]].
 
* 'c' stands for chapter, See list of variants [[Template:C|here]].

Revision as of 18:22, 21 February 2013

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 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: {{ref|First parameter|Additional arguments...}}

The First parameter determines which arguments should be passed after. See list of available parameters:

First parameter Meaning Notes
a Reference another wiki article argument 3 acts as an alternative link title
b Reference a book or chapter 3 arguments passed to {{b}}, reusable
? Reference a question in Theoryland's Q&A database 2 arguments become interwiki to the Theoryland interview database, the third becomes the text, reusable by first 2
17s Reference a 17th Shard forum topic/post Second argument is name of third, fourth is text to display, reusable by 1 and 4
wp Reference a Wikipedia article 2 arguments, interwiki to Wikipedia
bws Reference a page on Brandons site 2 arguments, interwiki to Brandon's site
img Reference an image on the wiki arguments are file name and text to display
map Reference one of the map images argument is place name and text to display, see {{map}} for list of maps
  • 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: {{ref|b|book shorthand|c|chapter shorthand}} where:

  • 'b' stands for book. See list of available shorthand here.
  • 'c' stands for chapter, See list of variants here.

Practical Examples for referencing The Way of Kings:

{{ref|b|twok|c|9}} - will create a reference to "The Way of Kings, Chapter 9",  
{{ref|b|twok|i|9}} - will create a reference to "The Way of Kings, Interlude 9"

Template:Cat