Help:Templates
From Guild Wars Wiki
Help center •
Editing help •
Archiving Help •
Frequently asked questions •
Helper program
Ask an account related question •
Ask a game related question •
Ask a wiki related question
| What is a template? | |
|
A template is a page that is meant to automate parts of other pages, for example navigation bars or infoboxes. Including a template is formally called transclusion. The wiki code of the template is not inserted and saved in the page, just a call to the template. Thus, changes to a template will automatically reflect on pages that include that template. Templates help present information in a standard manner across multiple pages. The navigation box at the top of this page is an example of a template. Templates can be found at Category:Templates. | |
How to create templates |
|
Templates are created like any other page. Generally, a template is created in the Template namespace. Other namespaces can be used, but the namespace must be included in the template call. {{Namespace:Template name}}
Parameters The syntax to add a parameter is: {{{parameter}}}
A parameter can have a default value that will be used when no value is specified. {{{parameter|default value}}}
<noinclude> A template may include information that should not be transcluded such as documentation. The parts of the template that is not meant to be include can be wrapped with a <noinclude> tag. It is preferable to not have any whitespace between the end of the wiki code and the <noinclude> tag. Template wiki code<noinclude>Text that will not be included</noinclude> For formatting guidelines on templates, see Guild Wars Wiki:Formatting/Templates. |

