Wazeopedia:Templates View history

Revision as of 18:26, 1 March 2014 by Kentsmith9 (talk | contribs) (Created initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This template page is under construction. Contact kentsmith9 if you have questions.


Template namespace

(Information to be added.)

Learning about templates

(Information to be added.)

Transclusion overview

(Information to be added.)

Documentation subpages

When creating any template, a documentation sub page should be part of the template. Place this code at the very end of the template. Because templates are generally transcluded into other pages, it is important not to add unnecessary line breaks. Therefore the initial <noinclude> should fall immediately after the last character of the template page, not on the next line below it.

<noinclude>

{{Documentation}}
</noinclude>

Adding categories

When adding categories to pages, it is important to differentiate between adding a template to a category or adding the page on which a template is used to a category. In other words, a template that displays a box on a page saying the page is under construction should also add a category onto the page to include it in a category tracking pages under construction. Separately, the template itself should be placed in a category for tracking message templates. Where and how the category link is placed on the page will determine if the page or the template is marked and for what it is marked.

When templates are properly created with a documentation subpage, the category tracking the template itself is put on that document subpage. If a template was originally created without a document subpage, the category may be seen on the template page itself inside noinclude instructions. If that is the case, that code should be removed and the category should be moved to the documentation subpage.