FANDOM


Line 4: Line 4:
   
 
<pre>
 
<pre>
Template code
+
Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude>{{Documentation}}</noinclude>
 
<noinclude>
 
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
{{Template/doc}}
 
</noinclude>
 
 
</pre>
 
</pre>
   

Revision as of 12:35, November 13, 2008

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 code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude>{{Documentation}}</noinclude>
Community content is available under CC-BY-SA unless otherwise noted.