Difference between revisions of "Template:Ref"

From The Coppermind
Jump to navigation Jump to search
m (fix descriptions, use wotdb interwiki)
m (start the prune, things might break for a bit)
Line 6: Line 6:
 
-->{{{pre|}}}<!--
 
-->{{{pre|}}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|a|article=[[{{{2}}}|{{{3|{{{2}}}|}}}]]<!--
+
-->|a=[[{{{2}}}|{{{3|{{{2}}}|}}}]]{{!}}<!--
-->|b|book={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
+
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
-->|?|wotdb|qa=[[wotdb:{{{2}}}#{{{3}}}|{{{4}}}]]<!--
+
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{4}}}]]<!--
-->|17s|f={{17s|{{{2}}}|{{{3|}}}={{{4}}}|text={{{5| }}}}}<!--
+
-->|17s={{17s|{{{2}}}|{{{3|}}}={{{4}}}|text={{{5| }}}}}<!--
  +
  +
FORUMS
  +
-- >|17s|twg|sb={{<!-- -->{{lc:{{{1}}}|}}|{{{2}}}|{{{3|}}}={{{4}}}|text={{{5| }}}<!-- -->}}<!-- NOT IN USE
  +
 
-- >|twg={{twg|{{{type|1}}}={{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- NOT IN USE
 
-- >|twg={{twg|{{{type|1}}}={{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- NOT IN USE
 
-- >|sb|stormblessed={{sb|{{{type|1}}}={{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- NOT IN USE
 
-- >|sb|stormblessed={{sb|{{{type|1}}}={{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- NOT IN USE
Line 15: Line 19:
 
-->|wp=[[wikipedia:{{{2}}}|{{{3|Wikipedia}}}]]<!--
 
-->|wp=[[wikipedia:{{{2}}}|{{{3|Wikipedia}}}]]<!--
 
-->|bws=[[bws:{{{2}}}|{{{3}}}]]<!--
 
-->|bws=[[bws:{{{2}}}|{{{3}}}]]<!--
-->|t|twitter={{twitter|{{{2}}}|{{{3|Tweet}}}|{{#if:{{{user|}}}|user={{{user}}}|}}}}<!--
+
-- >|t|twitter={{twitter|{{{2}}}|{{{3|Tweet}}}|{{#if:{{{user|}}}|user={{{user}}}|}}}}<!-- NOT IN USE
  +
REMOVE:
  +
-->|book|f|article|wotdb|qa=FIXME<!--
  +
 
-->|{{{1}}}<!--
 
-->|{{{1}}}<!--
 
-->}}<!--
 
-->}}<!--
Line 26: Line 33:
   
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|b|book={{{2}}}_{{{3}}}{{{4}}}<!--
+
-->|b={{{2}}}_{{{3}}}{{{4}}}<!--
-->|?|wotdb|qa=?{{{2}}}.{{{3}}}<!--
+
-->|?=?{{{2}}}#{{{3}}}<!--
-->|17s=17S/{{{5}}}<!--
+
-->|17s=17S:{{{2}}}/{{{3}}}/{{{4}}}<!--
  +
-->|twg=twg:{{{2}}}/{{{3}}}/{{{4}}}<!--
  +
-->|bws=bws:{{{2}}}<!--
 
-->|}}<!--
 
-->|}}<!--
   
Line 63: Line 72:
 
|-
 
|-
 
| bws || Reference a page on [[Brandon]]s site || 2 arguments, interwiki to [[bws:|Brandon's site]]
 
| bws || Reference a page on [[Brandon]]s site || 2 arguments, interwiki to [[bws:|Brandon's site]]
  +
<!-- disabled for the moment
 
|-
 
|-
 
| t || Reference one of [[Brandon]]s Tweets || arguments are tweet ID and text to display
 
| t || Reference one of [[Brandon]]s Tweets || arguments are tweet ID and text to display
  +
-->
 
|}
 
|}
 
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.

Revision as of 18:47, 17 October 2012

This template helps in the creation of references by providing an interface to many of the templates. It also simplifies reference reuse, by automatically giving names to references with particular characteristics.

First argument 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 {{bref}}, 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

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. Template:Cat