Template:Documentation: Difference between revisions

From Hattrick
Jump to navigationJump to search
Crazycompgeek (talk | contribs)
No edit summary
Crazycompgeek (talk | contribs)
No edit summary
Line 5: Line 5:
</div>
</div>


{{: {{{docpage|{{FULLPAGENAME}}/doc}}} }}
{{: {{{docpage|{{FULLPAGENAME}}/doc}}}|}}


</div>
</div>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 20:11, 8 April 2010

[edit] Template documentation

Usage

Normally this template is used without any parameters and placed at the bottom of the template or page being documented, in a <noinclude> section. Like this:

<!--Last line of your template code--><noinclude>

{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Parameters

docpage | if you want to use documentation from another template

Example: {{documentation|docpage=Template:Country data/doc}}

Then this template automatically loads the content from the /doc subpage of the template it is used on.