Template:Documentation/doc: Difference between revisions
From Hattrick
Jump to navigationJump to search
Undo revision 151946 by Crazycompgeek (Talk) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
== 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: | 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: | ||
| Line 10: | Line 10: | ||
</noinclude> | </noinclude> | ||
</pre> | </pre> | ||
== Parameters == | |||
docpage | if you want to use documentation from another template | |||
'''Example:''' <nowiki>{{documentation|docpage=Template:Country data/doc}}</nowiki> | |||
Then this template automatically loads the content from the /doc subpage of the template it is used on. | Then this template automatically loads the content from the /doc subpage of the template it is used on. | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 08:57, 29 April 2010
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.