Help:Templates



What is a template?
A template is a piece of text (including tables, pictures, and code) that can be included into other pages. This allows that text to be edited in one place and then updated on many pages at once.

A template is any page in the template namespace, which means any page beginning with "Template:", such as Template:Templatename.



How do I use a template?
The content of a template can be added to a page by typing. That immediately copies to the page the current contents of the template page, and it updates when the template is changed. The copy cannot be edited.

An alternative use, better in some circumstances, is to insert "subst:" right after the opening brackets:. This substitutes the template's content onto the page instead of making a copy. After you save the page, you can edit the new text without your edits affecting the actual template. This method is called substitution.



Why should I use template?
Templates are used to add recurring messages to pages in a consistent way, to add boilerplate messages, to create navigational boxes and to provide cross-language portability of texts.

Templates can also make it much easier for new and casual editors to use advanced designs, features and extensions by hiding confusing code.



How do I create a basic template?
In short, create the text you want to have copied onto the target pages on a page in the Template namespace. Creating Template:Templatename will allow users to insert into a page to display your text.

See Help:Creating templates for details.

For an overview, see the quick guide to templates on Wikimedia's Meta-Wiki.



How do I create an advanced template?
To learn how to change the output of the template based on what the user inputs, see Help:Template parameters and Help:Parser functions.



Can I use a template on more than one Wikia?
Templates on the Central Wikia can be used on any other Wikia. See Help:Shared templates for details.