Personal tools
Link to this

Help:Templates

From WhatRumors: The Celebrity Gossip Wiki

Jump to: navigation, search

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 {{templatename}}. That immediately displays the current contents of the template page, and it updates when the template is changed. Editing the rendered page will show only the template name -- the actual content of the template cannot be edited from there.

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 easy 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 {{templatename}} into a page to display your text.

See Help:Creating templates for details.


A list of all templates used on WhatRumors is available at WhatRumors:Templates