3,554
edits
(Created template) |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
*'''''{{# | {{#vardefine:status|{{#switch:{{lc:{{{3|}}}}}|optional=Optional|required=Required|#default=Required}}}}*'''''{{#ifeq:{{#var:status}}|Optional|{{Color|Skyblue|{{{1}}}}}|{{{1}}}}}''''' — {{{2}}} {{#if:{{{3|}}}|(<i><small>{{#var:status}}</small></i> {{#if:{{{4|}}}|<small> - {{{4|}}}</small>}})}}<noinclude> | ||
==Purpose== | ==Purpose== | ||
This is a really basic template used to quickly format descriptions for parameters used in the descriptions of other templates. Most cases it is used in conjunction with [[Template:Desc|Desc]]. | {{lc:This}} is a really basic template used to quickly format descriptions for parameters used in the descriptions of other templates. Most cases it is used in conjunction with [[Template:Desc|Desc]]. | ||
==Usage== | ==Usage== | ||
To use this template, type: {{Desc|Optional|Parameter Name|Parameter Description|Parameter Required/Optional|Default Value}} | To use this template, type: {{Desc|Optional|Parameter Name|Parameter Description|Parameter Required/Optional|Default Value}} | ||
*'''''Parameter Name''''' — This is the name of the parameter in question. | *'''''Parameter Name''''' — This is the name of the parameter in question. | ||
*'''''Parameter Description''''' — The description of the parameter. | *'''''Parameter Description''''' — The description of the parameter. | ||
*'''''Parameter Required/Optional''''' — Whether or not the parameter is optional or required. (<i><small>Optional</small></i>) | |||
*'''''Parameter Required/Optional''''' — Whether or not the parameter is optional or required. | *'''''Default Value''''' — If an optional parameter has a default value, explain it here. (<i><small>Optional</small></i>) | ||
*'''''Default Value''''' — If an optional parameter has a default value, explain it here. | |||
{{Cat|Formatting Templates}} | {{Cat|Formatting Templates}} | ||
</noinclude> | </noinclude> |