No edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
;Template page |
;Template page |
||
<pre> |
<pre> |
||
− | Template code<includeonly>Any categories to be inserted into articles by the template</includeonly>< |
+ | Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude> |
+ | {{documentation}}</noinclude> |
||
</pre> |
</pre> |
||
Revision as of 15:29, 13 November 2008
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.
- Template page
Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude> {{documentation}}</noinclude>
- Template/doc page
;Description :This template is used to do something. ;Syntax :Type <code><nowiki><noinclude></nowiki>{{t|template}}<nowiki></noinclude></nowiki></code> somewhere. <includeonly>Categories for the template</includeonly>