Difference between revisions of "Help:Templates"

From The Coppermind
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|and=named argument}}</nowiki></code>.
+
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>and=</code> part? That's a named argument, and is used for special parameters, such as the [[Template:Infobox|infobox]] field names.
+
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}}
Template:BookInfobox
+
*{{t|BookInfobox}}
Template:Books
 
 
*{{t|CharacterInfobox}}
Template:HeraldInfobox
 
 
**{{t|AlethiInfobox}}
Template:ShardInfobox
 
 
**{{t|HeraldInfobox}}
Template:ShardholderInfobox
 
 
**{{t|ShardInfobox}}
Template:SprenInfobox
 
 
**{{t|ShardholderInfobox}}
Template:Adonalsium
 
 
**{{t|SprenInfobox}}
Template:AlethiInfobox
 
 
**{{t|SkaaInfobox}}
Template:Aons
 
  +
Template:CharacterInfobox
 
  +
=== 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]].
Template:SkaaInfobox
 
  +
*{{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}}
Template:Disambig
 
  +
*{{t|T}}
Template:For
 
  +
*{{t|Wp}}
Template:Main
 
  +
*{{t|World}}
Template:Redirect
 
  +
Template:Attention
 
  +
=== Navigation aids===
Template:Cite
 
 
*{{t|Disambig}}
Template:Copyright
 
  +
*{{t|For}}
Template:Delete
 
  +
*{{t|Main}}
Template:Move
 
 
*{{t|Redirect}}
Template:Stub
 
 
*{{t|Attention}}
Template:Theory
 
  +
  +
=== Notices ===
  +
*{{t|Cite}}
 
*{{t|Copyright}}
  +
*{{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) into count 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.

Info tables

These templates are usually placed at the bottom of a page to allow people to find related content.

Link macros

Navigation aids

Notices