From The Mana World
Nelson6e65 (talk | contribs) (fix: Template documentation category transcuded in main template content) |
Nelson6e65 (talk | contribs) (fix: unnecessary "spoiler") |
||
Line 1: | Line 1: | ||
< | <includeonly> | ||
[[File:50px-Template-info.png]] '''Template documentation:''' | [[File:50px-Template-info.png]] '''Template documentation:''' | ||
Line 13: | Line 6: | ||
'''Usage:''' | '''Usage:''' | ||
{{{Usage}}} | |||
Copy the following code into your page: | Copy the following code into your page: | ||
<dl style="display:inline-block; padding-left:.75em; margin-left:0;"> | <dl style="display:inline-block; padding-left:.75em; margin-left:0;"> | ||
<nowiki>{{</nowiki>{{{Code}}}<nowiki>}}</nowiki> | |||
</dl> | </dl> | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
< | {{:Template:{{PAGENAME}}/doc}} <!-- this is to include documentation in this page, without transcluding it in the page where template is used --> | ||
[[Category:General Template]] <!-- this is to categorize the template. It will not be transcluded in the page where template is used --> | [[Category:General Template]] <!-- this is to categorize the template. It will not be transcluded in the page where template is used --> | ||
</noinclude> | </noinclude> |
Revision as of 01:35, 13 October 2015
Description about when to use the template.
Usage:
Copy the following code into your template doc page and fill the values:
Copy the following code into your page:
-
{{Documentation
|Description =
|Usage =
|Code = TemplateName {{!}}arg1=arg1value {{!}}arg2=
|Params = {{Parameter|arg1|Arg1 description}}
{{Parameter|arg2|Arg2 description|Default = "Default value of arg2"}}
|Translatable= No
}}
Remember, also, categorize it under Category:Template documentation by adding this at the end:
-
<noinclude>[[Category:Template documentation]]</noinclude>