Difference between revisions of "Template:Ref"

From The Coppermind
Jump to navigation Jump to search
m
m
Line 10: Line 10:
 
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{text|{{{4}}}|}}}]]<!--
 
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{text|{{{4}}}|}}}]]<!--
 
-->|17s={{17s|{{{2}}}|{{{3|}}}={{{4}}}|text={{{text|{{{5|}}}|}}}}}<!--
 
-->|17s={{17s|{{{2}}}|{{{3|}}}={{{4}}}|text={{{text|{{{5|}}}|}}}}}<!--
 
NOT IN USE
 
-- >|17s|twg|sb={{{{lc:{{{1}}}|}}|{{{2}}}|{{{3|}}}={{{4}}}|text={{{text|}}}|}}<!-- UNTESTED
 
 
-- >|twg={{twg|{{{type|1}}}={{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- OLD
 
   
 
DEFAULT
 
DEFAULT
Line 30: Line 25:
 
-->|?=?{{{2}}}#{{{3}}}<!--
 
-->|?=?{{{2}}}#{{{3}}}<!--
 
-->|17s=17S:{{{2}}}/{{{3}}}/{{{4}}}<!--
 
-->|17s=17S:{{{2}}}/{{{3}}}/{{{4}}}<!--
-->|twg=twg:{{{2}}}/{{{3}}}/{{{4}}}<!--
 
 
-->|}}<!--
 
-->|}}<!--
   
Line 61: Line 55:
 
|-
 
|-
 
| [[Template:17s|17s]] || Reference a 17th Shard forum topic/post || Second argument is name of third, fourth is text to display, reusable by 1 and 4
 
| [[Template:17s|17s]] || Reference a 17th Shard forum topic/post || Second argument is name of third, fourth is text to display, reusable by 1 and 4
<!-- disabled for the moment
 
|-
 
| twg || Reference a Timewasters Guide forum topic/post ||
 
|-
 
| sb || Reference a Stormblessed forum topic/post ||
 
|-
 
| sa || Reference a Stormlight Archive wikia article ||
 
|-
 
| t || Reference one of [[Brandon]]s Tweets || arguments are tweet ID and text to display
 
-->
 
 
|}
 
|}
   

Revision as of 21:05, 18 August 2014

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
  • 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.
  • see Category: Reference templates for other templates to be using instead

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|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"