A Wiki Template is a Wiki Article that can be inserted in other articles. You can use templates to define common content that will be included in multiple articles (for instance a disclaimer, or instructions, or guidelines), and then when you want to include that content in an article, you simply reference the template.
You can insert a template into a Wiki Article by using the special BBCode TEMPLATE. The syntax for the Template BBCode is:
PHP Code:
[template]Template Name[/template]
Wiki Templates support named and numbered parameters. The syntax is as follows:
PHP Code:
[template]Template Name|arg1|arg2|arg3|arg4[/template]
Where arg1, arg2, etc, are the values for the corresponding parameters.
To use named parameters use the following syntax:
PHP Code:
[template]Template Name|name1=value1|name2=value2[/template]
In the body of a Template, you can use the arguments passed in by using this syntax:
PHP Code:
{{{argname|default}}}
Where:
- argname is the name of the argument (or the argument number if using numbered parameters);
- default is optional, and specifies the value if the template were to be instantiated without the corresponding parameter.
For more information about other Wiki BBCodes, go to the
PDAPhone Wiki Editing Guide.