This article covers the general layout for a standard template page.


  • Put the template code on the main page, and put all documentation and categories on a /doc subpage. This means that updates to the documentation do not result in huge amounts of template updates, and the template itself can be protected if necessary.

Sample pages

Template page
Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude>

Template/doc page
:This template is used to do something.
:Type <code>{{t|template}}</code> somewhere.
;Sample output
:<code>{{template|foo}}</code> gives...

<includeonly>Categories for the template</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
Community content is available under CC-BY-SA unless otherwise noted.