WikiWOOD:Template usage

From WikiWOOD

Jump to: navigation, search

Templates are used to include common elements into a page. They are particularly useful for maintaining uniformity throughout a Wiki.

Contents

Setting up and using templates

Main article: Help:Templates

Templates are created much like a normal page, but in the 'Template' namespace. They are inserted into other pages as code between curly brackets. For example, the 'Main article' template at the start of this section is called with the code {{Main|Help:Templates}}. Parameters can be passed to templates; in this example 'Help:Templates' is the parameter, and any page name could have been used.

Banner templates


These are used to splash a banner on a page, usually to flag important information. Examples include safety notices, community notices etc.

Hatnote templates


Hatnotes are short notes, usually placed at the top of an article, normally to provide links to other similar articles.


Infoboxes

These are more complex templates, used to insert multiple fields of information into a formatted box. They should all be constructed using Template:Infobox and listed in Category:Infobox Templates.

Maintenance templates

Maintenance templates are inserted into articles that need attention in some way, such as requiring photographs or copyediting etc. Links to these templates can then be used to compile lists of pages needing attention.

Personal tools