Difference between revisions of "Template:Ref"
Jump to navigation
Jump to search
m (try) |
m (try) |
||
Line 7: | Line 7: | ||
-->{{#switch:{{lc:{{{1}}}|}}<!-- |
-->{{#switch:{{lc:{{{1}}}|}}<!-- |
||
-->|a=[[{{{2}}}|{{{3|{{{2}}}|}}}]]<!-- |
-->|a=[[{{{2}}}|{{{3|{{{2}}}|}}}]]<!-- |
||
− | -->|annotation={{annotation|book={{{2}}}|chapter{{{3|}}}={{{chapter|}}}|1{{{chapter|}}}={{{3|}}}|text={{{text |
+ | -->|annotation={{annotation|book={{{2}}}|chapter{{{3|}}}={{{chapter|}}}|1{{{chapter|}}}={{{3|}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|5=5}}<!-- |
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|}}<!-- |
-->|b={{bref|{{{2}}}|{{{3}}}|{{{4}}}|{{#if:{{{text|}}}|text={{{text}}}|}}|}}<!-- |
||
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{4}}}]]<!-- |
-->|?=[[wotdb:{{{2}}}#{{{3}}}|{{{4}}}]]<!-- |
Revision as of 19:02, 15 November 2012
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 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: Template:Tlx
The First parameter determines which arguments should be passed after. See list of available parameters:
First parameter | 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 {{b}} , 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 |
img | Reference an image on the wiki | arguments are file name and text to display |
map | Reference one of the map images | argument is place name and text to display |
- For detailed instructions see the individual template pages.
- 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: Template:Tlx
where:
- 'b' stands for book. See list of available shorthand here.
- 'c' stands for chapter, See list of variants here.
Practical Examples for referencing The Way of Kings:
{{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"