Template:Documentation: Difference between revisions

From Gigantic Wiki
Content added Content deleted
No edit summary
 
m (minor)
Line 8: Line 8:
|}
|}
<div style="margin:0 1em;">
<div style="margin:0 1em;">
{{{{PAGENAME}}/doc}}</div></includeonly><noinclude>{{documentation}}[[Category:Template documentation| ]]</noinclude>
{{{{PAGENAME}}/doc}}</div></includeonly><noinclude>{{documentation}}[[Category:Templates for templates]]</noinclude>

Revision as of 16:48, 28 October 2017

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Documentation/doc to edit this documentation. (How does this work?)
Description
This template is used to insert descriptions on template pages.
Syntax
Add <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}}Categories for template itself</noinclude>
On the Template/doc page you should write the content of the documentation itself.
Note that the above example also uses the Template:T and Template:T/piece templates.