Help:Templates

Revision as of 22:31, 21 April 2007 by Gboyers (talk | contribs)


Templates are used on Grand Theft Wiki as easy ways to instantly insert a particular set of instructions. Common usages are the messages at the top of the page (including this page), or Userboxes.

Templates are used by putting their tag at the top of the page, or wherever they are neeeded. A template's tag is its name in curly braces.

Templates are made simply by creating a page called Template:Name - and whatever is on that page will show up in every instance of the {{Name}} tag on Grand Theft Wiki.

{{help}} shows up the banner at the top of this page. It is defined at Template:help, and automatically assigns any page it is used on to a cateogy, which is Category:Help. Not all templates do this.

Whenever the template is edited, each page that uses that template will change too. If you do not wish to link back to the template page, you can use {{subst templatename}}. Subst simply includes the contents of templatename once.

Any page can be used as a template, by putting a colon (:) at the start of the tag. {{:User:Xenon}} would show the contents of the User:Xenon page. Also, subpages can be linked to directly with a slash (/) at the start of the tag. Grand Theft Auto IV quickly includes Grand Theft Auto IV/infobox with the tag {{/infobox}}.


View all templates