FANDOM


Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to insert descriptions on template pages.
Syntax
Type <noinclude>{{documentation}}</noinclude> at the end of the template page.

Usage

On the Template page

Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude>
{{documentation}}</noinclude>

Note that, depending on the template, you may need to add a clear or complete a table/div just before {{documentation}} is inserted (within the noinclude tags).

The line break is also useful as it helps prevent the documentation template "running into" previous code.

Optionally, one may enclose the code in <includeonly></includeonly tags instead.

If one wishes to hide template code on the template page, one may format like so

<includeonly>Template code</includeonly>
{{documentation}}

On the Template/doc page

==Description==
This template is used to do something.
==Parameters==
Description of parameters relevant to the template.
==Usage==
Type <code>{{templatename}}</code> somewhere.
==Example==
Provide an example of the code in action, along with the code for the example.
==Copy/Paste==
Provide premade templates for copy and pasting

Use any or all of the above output sections. You may also want to add "see also" or further usage information sections.

Note that the above example also uses the Template:T and Template:T/piece templates.


Visit Template:Documentation/doc to edit this text! (How does this work?)
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to insert descriptions on template pages.
Syntax
Type <noinclude>{{documentation}}</noinclude> at the end of the template page.

Usage

On the Template page

Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude>
{{documentation}}</noinclude>

Note that, depending on the template, you may need to add a clear or complete a table/div just before {{documentation}} is inserted (within the noinclude tags).

The line break is also useful as it helps prevent the documentation template "running into" previous code.

Optionally, one may enclose the code in <includeonly></includeonly tags instead.

If one wishes to hide template code on the template page, one may format like so

<includeonly>Template code</includeonly>
{{documentation}}

On the Template/doc page

==Description==
This template is used to do something.
==Parameters==
Description of parameters relevant to the template.
==Usage==
Type <code>{{templatename}}</code> somewhere.
==Example==
Provide an example of the code in action, along with the code for the example.
==Copy/Paste==
Provide premade templates for copy and pasting

Use any or all of the above output sections. You may also want to add "see also" or further usage information sections.

Note that the above example also uses the Template:T and Template:T/piece templates.


Visit Template:Documentation/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.