Difference between revisions of "Template:Doc/doc"

From Cantr II Wiki
Jump to: navigation, search
 
Line 5: Line 5:
 
Put <tt><nowiki><noinclude>{{Doc}}</noinclude></nowiki></tt> at the end of the template. Without spaces or line breaks before.
 
Put <tt><nowiki><noinclude>{{Doc}}</noinclude></nowiki></tt> at the end of the template. Without spaces or line breaks before.
  
To function properly there must be a page called <tt>x/doc</tt>. Replacing "x" by the name of the template. For example, to document the template <tt>Template:Example</tt> should create the page <tt>Template:Example/doc</tt>.
+
To function properly there must be a page called <tt>x/doc</tt>. Replacing "x" by the full name of the template. For example, the name of this template is <tt>{{PAGENAME}}</tt>, but the full name of this template is <tt>{{FULLPAGENAME}}</tt>.

Revision as of 06:08, 21 February 2010

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

Usage

Put <noinclude>{{Doc}}</noinclude> at the end of the template. 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/doc, but the full name of this template is Template:Doc/doc.