Template:Documentation/doc

From Team Fortress Wiki
< Template:Documentation
Revision as of 22:24, 8 August 2020 by Lemondoge (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template is used to show documentation that explains other templates.

Usage

Add this template to the end of other templates while wrapped in <noinclude> tags to show the documentation. It will show the /doc subpage of the template in a green box.

<!--Last line of your template code--><noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage, not here -->
</noinclude>

Alternatively, you can use a parameter for documentation instead of creating a /doc page:

<!--Last line of your template code--><noinclude>
{{Documentation|
<!--Documentation goes here-->
}}
</noinclude>