Difference between revisions of "Template:Ref"

From The Coppermind
Jump to navigation Jump to search
m
m (ry)
Line 6: Line 6:
 
-->{{{pre|}}}<!--
 
-->{{{pre|}}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|b={{#switch:{{{3}}}|e|epigraph=[[Category: Epigraph references]]}}{{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|{{#if:{{{fragment|}}}|fragment={{{fragment}}}|}}|}}<!--
+
-->|b={{#switch:{{{3}}}|p|prologue|epilogue=[[Category: Prologue references]]|i|interlude=[[Category: Interlude references]]}}{{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|{{#if:{{{fragment|}}}|fragment={{{fragment}}}|}}|}}<!--
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{text|{{{4}}}|}}}]]<!--
+
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{text|{{{4}}}|}}}]][[Category: Q&A references]]<!--
   
 
DEFAULT
 
DEFAULT
-->|{{{1}}}[[Category: Bad references]]<!--
+
-->|{{{1}}}[[Category: Empty references]]<!--
 
-->}}<!--
 
-->}}<!--
 
-->{{{post|}}}<!--
 
-->{{{post|}}}<!--
Line 50: Line 50:
 
| 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 [[Theoryland Interview Database]], the third becomes the text, reusable by first 2
 
|}
 
|}
   

Revision as of 07:38, 21 August 2014

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