Difference between revisions of "Template:Doc"

From Cantr II Wiki
Jump to: navigation, search
 
Line 1: Line 1:
<table class="toccolours" style="margin:0px 0px 0px 0px; text-align:left; font-size: 100%; padding:10px; width:100%; background-color:#ECFCF4;" cellpadding="0px" cellspacing="0px" align="right"><tr><td>
+
<table class="toccolours" style="margin:0px 0px 10px 0px; text-align:left; font-size: 100%; padding:10px; width:100%; background-color:#ECFCF4;" cellpadding="0px" cellspacing="0px" align="right"><tr><td>
 
== Template documentation ==
 
== Template documentation ==
 
{{{{PAGENAME}}/doc}}
 
{{{{PAGENAME}}/doc}}

Revision as of 05:48, 21 February 2010

Template documentation

{{Doc}} provides an easy way to add documentation for a template.

Usage

Put {{Doc}} at the end of the template, enclosed between tags noinclude. Without spaces or line breaks before.

To function properly there must be a page called x/doc. Replacing "x" by the full name of the template. For example, the name of this template is Doc, but the full name of this template is Template:Doc. Therefore, the documentation of this template should be on the page Template:Doc/doc.

See also