Creating Templates
This is an old revision of this page, as edited August 16, 2009, 5:19 PM by pegasus(contribs). It may differ significantly from the current revision.
Visit a forum in your Template namespace, and create a new article. The content of this article will be inserted into others whenever the Template is used.
You can also add replacement variables, called "Parameters", to the content.
The values of these Parameters will be defined later when you actually use the Template.
There are two types of Parameters:
[list][*]Numerical - These will be replaced in the order values are provided.
Code:{{{number}}}
{{{number|default_value}}}
[*]Named - These will be replaced with the value that matches the corresponding Parameter name.
Code:{{{name}}}
{{{name|default_value}}}
Both Numerical and Named Parameters can be given default values. If no value is provided when using the Template, the default value will be used.
Note: For complex templates, we recommend using Named Parameters rather than Numerical Parameters.