Difference between revisions of "Help:Templates"
Jump to navigation
Jump to search
(Created page with 'So you want to know how to use templates? You're in the right place. First off, to use a template you insert it's name in <code><nowiki>{{curly brackets}}</nowiki></code>. Most …') |
|||
Line 2: | Line 2: | ||
First off, to use a template you insert it's name in <code><nowiki>{{curly brackets}}</nowiki></code>. |
First off, to use a template you insert it's name in <code><nowiki>{{curly brackets}}</nowiki></code>. |
||
− | Most templates ask for parameters which are passed as so: <code><nowiki>{{eg|first argument|second| |
+ | Most templates ask for parameters which are passed as so: <code><nowiki>{{eg|first argument|second|foo=named argument}}</nowiki></code>. |
− | You see the <code> |
+ | You see the <code>foo=</code> part? That's a named argument, and is used for special parameters, such as the [[Template:Infobox|infobox]] field names. |
== Templates == |
== Templates == |
||
+ | *{{t|B}} converts an acronym or malformed book title into the correctly formatted title. |
||
− | Template:Infobox |
||
+ | *{{t|Columns}} allows you to format a list (the first parameter) into <code>count</code> columns. |
||
− | Template:B |
||
+ | *{{t|Quote}} surrounds the first parameter as a block quote, with the second parameter as a source. |
||
− | Template:Columns |
||
+ | |||
− | Template:Quote |
||
+ | === Info boxes === |
||
− | Template:Foot |
||
+ | These templates are placed at the start of the article, and show a list of information down the right side of the article. |
||
− | Template:Lc title |
||
+ | *{{t|Infobox}} |
||
− | + | *{{t|BookInfobox}} |
|
− | Template:Books |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | Template:Adonalsium |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | Template:Aons |
||
+ | |||
⚫ | |||
+ | === Info tables === |
||
− | Template:Essence |
||
+ | These templates are usually placed at the bottom of a page to allow people to find related content. |
||
− | Template:Metal |
||
+ | *{{t|Aons}} inserts a tabulated list of [[Aon]]s. |
||
− | Template:MetallicArts |
||
+ | *{{t|Adonalsium}} inserts a table of links relating to [[Adonalsium]] and the [[Cosmere]] at large. |
||
− | Template:MetalsTable |
||
+ | *{{t|Books}} inserts a table of books and series' by [[Brandon Sanderson]]. |
||
⚫ | |||
+ | *{{t|MetallicArts}} inserts a table of the magics found on [[Scadrial]]. |
||
− | Template:Race |
||
+ | |||
− | Template:Aon |
||
+ | === Link macros === |
||
− | Template:SAwikia |
||
+ | *{{t|Race}} |
||
− | Template:Wp |
||
+ | *{{t|Aon}} |
||
− | Template:World |
||
+ | *{{t|SAwikia}} |
||
⚫ | |||
+ | *{{t|T}} |
||
− | Template:For |
||
+ | *{{t|Wp}} |
||
− | Template:Main |
||
+ | *{{t|World}} |
||
⚫ | |||
+ | |||
⚫ | |||
+ | === Navigation aids=== |
||
− | Template:Cite |
||
⚫ | |||
⚫ | |||
+ | *{{t|For}} |
||
− | Template:Delete |
||
+ | *{{t|Main}} |
||
− | Template:Move |
||
⚫ | |||
− | Template:Stub |
||
⚫ | |||
− | Template:Theory |
||
+ | |||
+ | === Notices === |
||
+ | *{{t|Cite}} |
||
⚫ | |||
+ | *{{t|Delete}} |
||
+ | *{{t|Move}} |
||
+ | *{{t|Stub}} |
||
+ | *{{t|Theory}} |
Revision as of 12:41, 24 June 2011
So you want to know how to use templates? You're in the right place.
First off, to use a template you insert it's name in {{curly brackets}}
.
Most templates ask for parameters which are passed as so: {{eg|first argument|second|foo=named argument}}
.
You see the foo=
part? That's a named argument, and is used for special parameters, such as the infobox field names.
Templates
{{B}}
converts an acronym or malformed book title into the correctly formatted title.{{Columns}}
allows you to format a list (the first parameter) intocount
columns.{{Quote}}
surrounds the first parameter as a block quote, with the second parameter as a source.
Info boxes
These templates are placed at the start of the article, and show a list of information down the right side of the article.
{{Infobox}}
{{BookInfobox}}
{{CharacterInfobox}}
{{AlethiInfobox}}
{{HeraldInfobox}}
{{ShardInfobox}}
{{ShardholderInfobox}}
{{SprenInfobox}}
{{SkaaInfobox}}
Info tables
These templates are usually placed at the bottom of a page to allow people to find related content.
{{Aons}}
inserts a tabulated list of Aons.{{Adonalsium}}
inserts a table of links relating to Adonalsium and the Cosmere at large.{{Books}}
inserts a table of books and series' by Brandon Sanderson.{{MetallicArts}}
inserts a table of the magics found on Scadrial.