From The Mana World
(fix:spaces on empty "Default" param value)
(fix: extra space when used in in multilines)
Line 1: Line 1:
<includeonly>
<includeonly>{{!}}- style="vertical-align:top;"
{{!}}- style="vertical-align:top;"
{{!}} style="text-align:right;" {{!}} <code>{{{Name|{{{1}}}}}}</code>:  
{{!}} style="text-align:right;" {{!}} <code>{{{Name|{{{1}}}}}}</code>:  
{{!}} <span style="color:{{#if:{{{Default|}}}|blue">Optional|red">Required}}</span>. {{{Description|{{{2|''No description available''}}}}}}{{#if:{{{Default|}}}|.
{{!}} <span style="color:{{#if:{{{Default|}}}|blue">Optional|red">Required}}</span>. {{{Description|{{{2|''No description available''}}}}}}{{#if:{{{Default|}}}|.

Revision as of 06:04, 19 October 2015

50px-Template-info.png Template documentation [ Edit ]

Description

Includes a short template parameter documentation.

Use it as content of Template:Parameters container or value(s) for Params argument in Template:Documentation.

Usage

Copy the following code for each parameter and edit as needed, adding a new line after (but not more than one line break between each).

{{Parameter|Name |Description |Default="String default value"}}

Parameters

List of parameters used by this template:

1: Required. Name of parameter. Alias: Name.

Insert the name of parameter, without adding extra spaces or breaklines

2: Optional. Description of parameter. Alias: Description.

Insert a short summary describing the parameter in the first line; and, in the next line, how to fill its value. Default value: “''No description available''”

Default: Optional. Default value.

You can use "Empty" for empty/null default value or enclose value in double quotes (“, ”) for especific text, using nowiki taf if is needed. If not specified, the param will be marked as "Required" . Default value: Empty