From The Mana World
(fix: Template documentation category transcuded in main template content)
(fix: unnecessary "spoiler")
Line 1: Line 1:
<noinclude>
<includeonly>
{{:Template:{{PAGENAME}}/doc}}    <!-- this is to include documentation in this page, without transcluding it in the page where template is used -->
 
 
 
Below is original template, please ignore.
<spoiler>
</noinclude>
[[File:50px-Template-info.png]] '''Template documentation:'''
[[File:50px-Template-info.png]] '''Template documentation:'''
   
   
Line 13: Line 6:
   
   
'''Usage:'''
'''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>
  <nowiki>{{</nowiki>{{{Code}}}<nowiki>}}</nowiki>
</dl>
</dl>
</includeonly>
<noinclude>
<noinclude>
</spoiler>
{{: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


50px-Template-info.png Template documentation:

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>