Difference between revisions of "Template:Ref"

1,409 bytes removed ,  4 years ago
m
tweak
m (try dat (everything will break))
m (tweak)
 
(65 intermediate revisions by 6 users not shown)
 
TEXT
-->|{{#if:{{{empty|{{{Etext|}}}|}}}||<!--
 
NAME
-->{{{pre|}}}<!--
-->|name={{#switch:{name|{lc:{{{1text|}}}|}}}<!--
-->|a|article=[[{{{2}}}|{{{3|{{{2}}}|}}}]]<!--
-->|b|book={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
-->|?|wotdb|qa={{wotdb|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
-->|17s|f={{17s|{{{2}}}|{{{3|}}}={{{4}}}|text={{{5| }}}}}<!--
-- >|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
-- >|sawiki|sa|w={{SAwiki|{{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- NOT IN USE
-->|wp=[[wikipedia:{{{2}}}|{{{3|Wikipedia}}}]]<!--
-->|bws=[[bws:{{{2}}}|{{{3}}}]]<!--
-->|t|twitter={{twitter|{{{2}}}|{{{3|Tweet}}}|{{#if:{{{user|}}}|user={{{user}}}|}}}}<!--
-->|{{{1}}}<!--
-->}}<!--
-->{{{post|}}}<!--
 
GROUP
-->}}<!-- end $empty OR $E
-->|group={{{pregroup|}}}<!--
 
-->|{{{1}}}<!--
NAME
-->|name={{uc:{{{name|{{{N|<!--
 
-->{{#switchif:{{lc:{name|}}}{{1{text|}}}||[[category: empty references]]|}}<!--
-->|b|book={{{2}}}_{{{3}}}{{{4}}}<!--
-->|?|wotdb|qa=?{{{2}}}.{{{3}}}<!--
-->|17s=17S/{{{5}}}<!--
-->|}}<!--
 
--></includeonly><noinclude>[[category: reference templates| ]]
-->|}}}|}}}|}}<!--
 
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.
GROUP
* Sometimes it is also useful to just annotate something with a reference, which this template can also be used for with the {{{text}}} parameter.
-->|group={{{group|{{{G|}}}|}}}<!--
* 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>.
 
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.
-->}}</includeonly><noinclude>This template helps in the creation of references by providing an interface to many of the [[Category:Link macros|link macro]] templates. It also simplifies reference reuse, by automatically giving names to references with particular characteristics.
 
== Articles using Template ==
{| class=infobox width=100%
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
|-
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
! class=title | First argument
! 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|bref}}, reusable
|-
| ? || Reference a question in Theoryland's Q&A database || 3 arguments passed to {{T|wotdb}}, 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
<!-- 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 ||
-->
|-
| wp || Reference a Wikipedia article || two arguments to the {{t|wp}} template
|-
| bws || Reference a page on [[Brandon]]s site || first argument is link, second is 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.
{{cat|templates}}
40,275

edits