Diferencia entre revisiones de «Plantilla:Ref»

De La Coppermind
Ir a la navegación Ir a la búsqueda
m (article references are ok, for now)
m (tweak)
 
(No se muestran 59 ediciones intermedias de 6 usuarios)
Línea 2: Línea 2:


TEXT
TEXT
-->|{{#if:{{{empty|{{{E|}}}|}}}||<!--
-->|{{{text|}}}<!--


NAME
-->{{{pre|}}}<!--
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|name={{{name|{{{text|}}}|}}}<!--
-->|a=[[{{{2}}}|{{{3|{{{2}}}|}}}]]<!--
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|}}<!--
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{4}}}]]<!--
-->|wp=[[wikipedia:{{{2}}}|{{{3|Wikipedia}}}]]<!--
-->|bws=[[bws:{{{2}}}|{{{3}}}]]<!--
-->|17s={{17s|{{{2}}}|{{{3|}}}={{{4}}}|text={{{5| }}}}}<!--


GROUP
NOT IN USE
-->|group={{{group|}}}<!--
-- >|17s|twg|sb={{{{lc:{{{1}}}|}}|{{{2}}}|{{{3|}}}={{{4}}}|text={{{5| }}}}}<!-- UNTESTED


-- >|twg={{twg|{{{type|1}}}={{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- OLD
-- >|sb|stormblessed={{sb|{{{type|1}}}={{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- OLD
-- >|sawiki|sa|w={{SAwiki|{{{2}}}|{{#if:{{{3|}}}|2|none}}={{{3}}}|=}}<!-- OLD

-- >|t|twitter={{twitter|{{{2}}}|{{{3|Tweet}}}|{{#if:{{{user|}}}|user={{{user}}}|}}}}<!-- OLD

REMOVE:
-->|book|f|article|wotdb|qa=FIXME{{!}}<!--

DEFAULT
-->|{{{1}}}<!--
-->}}<!--
-->}}<!--
-->{{{post|}}}<!--


-->{{#if:{{{name|}}}{{{text|}}}||[[category: empty references]]|}}<!--
-->}}<!-- end $empty OR $E


--></includeonly><noinclude>[[category: reference templates| ]]
NAME
-->|name={{uc:{{{name|{{{N|<!--


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.
-->{{#switch:{{lc:{{{1}}}|}}<!--
* 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={{{2}}}_{{{3}}}{{{4}}}<!--
* 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>.
-->|?=?{{{2}}}#{{{3}}}<!--
-->|17s=17S:{{{2}}}/{{{3}}}/{{{4}}}<!--
-->|twg=twg:{{{2}}}/{{{3}}}/{{{4}}}<!--
-->|bws=bws:{{{2}}}<!--
-->|wp=wp:{{{2}}}<!--
-->|}}<!--

-->|}}}|}}}|}}<!--

GROUP
-->|group={{{group|{{{G|}}}|}}}<!--


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 || 2 arguments become interwiki to the [http://www.theoryland.com/listintv.php 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
<!-- 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 || 2 arguments, interwiki to [[wikipedia:|Wikipedia]]
|-
| 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
-->
|}
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}}

Revisión actual - 20:42 19 abr 2020


This template is mainly used to in definitions of the individual reference templates, though there are a few cases where it is used directly.

  • Sometimes it is also useful to just annotate something with a reference, which this template can also be used for with the {{{text}}} parameter.
  • It is also used when another reference templates has been used with name=X, in which case that reference can be cited again with {{ref|name=X}}.

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.

Articles using Template