This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Template:Documentation/doc"

From BZFlagWiki
Jump to: navigation, search
 
Line 2: Line 2:
  
 
To include this template (and therefore, a given template's documentation) in the template to be documented, all you have to do is insert these lines of code at the bottom of the template:
 
To include this template (and therefore, a given template's documentation) in the template to be documented, all you have to do is insert these lines of code at the bottom of the template:
<br/>
+
<br/><br/>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;noinclude&gt;<nowiki>{{Documentation}}</nowiki>&lt;/noinclude&gt;</tt>
+
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;noinclude&gt;<nowiki>{{Documentation}}</nowiki>&lt;/noinclude&gt;</tt>

Latest revision as of 10:15, 14 December 2008

This template allows you to document templates by including it in the template inside a set of <noinclude> tags. It transcludes TEMPLATENAME/doc (where TEMPLATENAME is the name of the template) into itself. For example, this blue box is displayed by using this template. The actual contents of this page are located at Template:Documentation/doc.

To include this template (and therefore, a given template's documentation) in the template to be documented, all you have to do is insert these lines of code at the bottom of the template:

      <noinclude>{{Documentation}}</noinclude>