Editing Template:Ref

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
   
 
TEXT
 
TEXT
-->|{{{text|}}}<!--
+
-->|{{#if:{{{empty|{{{E|}}}|}}}||<!--
  +
  +
-->{{{pre|}}}<!--
  +
-->{{#switch:{{lc:{{{1}}}|}}<!--
  +
-->|a=[[{{{2}}}|{{{text|{{{2}}}|}}}]]<!--
  +
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|{{#if:{{{fragment|}}}|fragment={{{fragment}}}|}}|}}<!--
  +
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{text|{{{4}}}|}}}]]<!--
  +
-->|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
  +
-->|{{{1}}}<!--
  +
-->}}<!--
  +
-->{{{post|}}}<!--
  +
  +
-->}}<!-- end $empty OR $E
   
 
NAME
 
NAME
-->|name={{{name|{{{text|}}}|}}}<!--
+
-->|name={{uc:{{{name|{{{N|<!--
  +
  +
-->{{#switch:{{lc:{{{1}}}|}}<!--
  +
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
  +
-->|?=?{{{2}}}#{{{3}}}<!--
  +
-->|17s=17S:{{{2}}}/{{{3}}}/{{{4}}}<!--
  +
-->|twg=twg:{{{2}}}/{{{3}}}/{{{4}}}<!--
  +
-->|}}<!--
  +
  +
-->|}}}|}}}|}}<!--
   
 
GROUP
 
GROUP
-->|group={{{group|}}}<!--
+
-->|group={{{group|{{{G|}}}|}}}<!--
   
 
-->}}<!--
 
-->}}<!--
   
 
--></includeonly><noinclude>
-->{{#if:{{{name|}}}{{{text|}}}||[[category: empty references]]|}}<!--
 
  +
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
  +
|-
  +
| 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
  +
|-
  +
| ? || 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
  +
<!-- 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
  +
-->
  +
|}
   
  +
* For detailed instructions see the individual template pages.
--></includeonly><noinclude>[[category: reference templates| ]]
 
  +
* 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 ==
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.
 
  +
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:
* Sometimes it is also useful to just annotate something with a reference, which this template can also be used for with the {{{text}}} parameter.
 
  +
* 'b' stands for book. See list of available shorthand [[Template:B|here]].
* 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>.
 
  +
* 'c' stands for chapter, See list of variants [[Template:C|here]].
   
  +
Practical Examples for referencing [[The Way of Kings]]:
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.
 
  +
<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>
   
  +
[[Category: Reference templates]]
== Articles using Template ==
 
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
 
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
 

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Template used on this page: