Help:Templates
Templates allow the use of a certain object throughout the wiki without needing to write the object itself. All changes made to the object are propagated through the wiki automatically.
Contents
Using a template[edit]
To use a template, use {{Template name}}. This will put the contents of Template:Template name in place of it when the page is loaded.
Templates with parameters[edit]
Some templates use parameters, which contain extra information. For example, {{msgbox}}
produces:
It doesn't work very well, but {{msgbox|title=Title|text=Text}}
produces:
Title Text
|
A full list of parameters should be found on the templates' pages.
Templates with optional parameters[edit]
Some templates, such as Template:Delete, have optional parameters. {{Delete}}
produces:
This page has been tagged for and is currently pending deletion per user request Discuss This is due to a violation of the rules or by the author's request.
|
It looks fine. If you want to add a reason, {{Delete|Reason for deletion}}
produces:
This page has been tagged for and is currently pending deletion per user request Discuss This is due to a violation of the rules or by the author's request.
Reason: Reason for deletion |
Transcluding other pages[edit]
You can transclude any page in the wiki. If the page is in the (Main) namespace, make sure to add a colon (:) before the name of the page.
<noinclude> tags[edit]
If <noinclude> tags are used in the template, nothing inside them is transcluded.
Wiki help | |
---|---|
Rules and guidelines | |
General pages |