Subject namespaces | Talk namespaces | ||
---|---|---|---|
0 | (Main/Article) | Talk | 1 |
2 | User | User talk | 3 |
4 | 5 | ||
6 | File | File talk | 7 |
8 | 9 | ||
10 | Template | Template talk | 11 |
12 | Help | Help talk | 13 |
14 | Category | Category talk | 15 |
100 | Portal | Portal talk | 101 |
108 | Book | Book talk | 109 |
118 | Draft | Draft talk | 119 |
446 | Education Program | Education Program talk | 447 |
710 | TimedText talk | 711 | |
828 | Module | Module talk | 829 |
2300 | Gadget | Gadget talk | 2301 |
2302 | Gadget definition | Gadget definition talk | 2303 |
-1 | Special | ||
-2 | Media |
Templates help maintain consistent formatting and aid navigation between articles. They often include optional and/or variable elements controlled by parameters to allow for specialized use. Templates are also used to assist in a large variety of tasks. Each template has a matching Template talk:
page where editors can discuss the design and implementation of the associated template (see Help:Using talk pages for how to participate in talk page discussions).
A template is transcluded into another page by including a template tag in that page's content. A template tag contains the template page name surrounded by double curly braces, e.g. {{Disambiguation}}
. If the template's page name does not begin with a namespace and colon, it is assumed to be in the Template namespace.
Internal links to template pages may be made provided they include the Template:
prefix, for example [[
Template:Disambiguation
]]
), which generates a link to a page that directly contains a base template.
Sometimes you will want to refer to a template, rather than actually invoking it. An easy way to do this is to call (short for "template link"). For example, to reference the Cleanup template, typing {{tl|Cleanup}}
results in {{}}. You can also add parameters using ; for example, {{tlp|Convert|1|m}}
displays as {{|1|m}}.
If you'd like your reference to stand out more, check the template documentation on for other options, such as {{}} (bold), {{}}
(code), {{}}
(bold & code), {{|param1|param2}}
(italic parameters), and many more.
Template names can be made of one or more words, such as {{Train topics}}
. The first character (only) is not case-sensitive, so {{cleanup}}
and {{Cleanup}}
are the same template, but {{cfd}}
and {{cfD}}
are not. Template names are easiest to remember if they follow standard English spelling, spacing, and capitalization (also see the naming conventions for articles). Avoid having templates whose names differ only in case, spacing, or punctuation.
If you wish to experiment with templates (and not have your experiments deleted before you are done with them), you may do so in the . You may also use the templates , , , , , , , , , , , and for experimental purposes. To include a test template, use the form {{X1}}
for template X1, {{X2}}
for template X2, etc.