Diferencia entre revisiones de «Plantilla:Ref»

1138 bytes añadidos ,  hace 11 años
added basic documentation.
m (bref + {{{text}}})
(added basic documentation.)
-->|group={{{group|{{{G|}}}|}}}<!--
 
-->}}</includeonly><noinclude><!-- Documentation comes bellow this line --------- -->
-->}}</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.
 
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.
-->}}</includeonly><noinclude>ThisThe template helps inencapsulate the creationfunctionality of references by providing an interface to many of theseveral [[Category:Link macros|link macro]] templates.in Itorder alsoto simplifiessimplify reference reuse, by automatically giving names to references with particular characteristics.
 
==Detailed Usage==
Generally the format to use the template is: <code><nowiki>{{Ref|First parameter|Additional arguments...}}</nowiki></code>
 
The ''First parameter'' determines which arguments should be passed after. See list of available parameters:
{| class=infobox width=100%
|-
! class=title | First argumentparameter
! 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|brefb}}, 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
| map || Reference one of the map images || argument is place name 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.
* For detailed instructions see the individual template pages.
{{cat|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.
 
== Common Usage ==
Commonly you'll be referencing books, thus the format will look similar to this: <code><nowiki>{{Ref|b|book shorthand|c|Chapter shorthand}}</nowiki></code> where:
* 'b' stands for book. See list of available shorthand [[Template:B|here]].
* 'c' stands for chapter, See list of variants [[Template:C|here]].
 
Practical Examples for referencing [[The Way of Kings]]:
<pre>
{{Ref|b|twok|c|9}} - will create a reference to "The Way of Kings, Chapter 9",
{{Ref|b|twok|i|9}} - will create a reference to "The Way of Kings, Interlude 9"
</pre>
 
[[Category:Templates]]
234

ediciones