Difference between revisions of "Template:Ref"

From The Coppermind
Jump to navigation Jump to search
m
m
Line 9: Line 9:
 
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|{{#if:{{{fragment|}}}|fragment={{{fragment}}}|}}|}}<!--
 
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|{{#if:{{{fragment|}}}|fragment={{{fragment}}}|}}|}}<!--
 
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{text|{{{4}}}|}}}]]<!--
 
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{text|{{{4}}}|}}}]]<!--
-->|17s={{17s|{{{2}}}|{{{3|}}}={{{4}}}|text={{{text|{{{5|}}}|}}}}}<!--
 
   
 
DEFAULT
 
DEFAULT
-->|{{{1}}}<!--
+
-->|{{{1}}}[[Category: Bad references]]<!--
 
-->}}<!--
 
-->}}<!--
 
-->{{{post|}}}<!--
 
-->{{{post|}}}<!--
Line 24: Line 23:
 
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
 
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
 
-->|?=?{{{2}}}#{{{3}}}<!--
 
-->|?=?{{{2}}}#{{{3}}}<!--
-->|17s=17S:{{{2}}}/{{{3}}}/{{{4}}}<!--
 
 
-->|}}<!--
 
-->|}}<!--
   
Line 35: Line 33:
   
 
--></includeonly><noinclude>
 
--></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.
 
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.
 
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.
Line 53: Line 54:
 
|-
 
|-
 
| ? || 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
|-
 
| [[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
 
 
|}
 
|}
   
 
* For detailed instructions see the individual template pages.
 
* 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.
 
* 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 ==
 
== Common Usage ==

Revision as of 12:18, 19 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
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
  • 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"