Difference between revisions of "Template:Param"
Jump to navigation
Jump to search
Bugman admin (talk | contribs) m (1 revision imported: The current Wikipedia Template:key press template.) |
Bugman admin (talk | contribs) (Switch from the imported {{informative template}} to the relax {{template info}} template) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{# | + | '''<!-- Formatting. |
| − | {{ | + | -->{{#if: {{{1|}}} |
| − | + | | {{{1}}}<!-- The parameter. | |
| − | + | -->{{#if: {{{2|}}} | |
| − | + | |<nowiki></nowiki> = <nowiki></nowiki><!-- The equals sign. --> | |
| − | + | }} | |
| − | </noinclude> | + | }}<!-- |
| + | -->{{{2|}}}<!-- The value. | ||
| + | -->'''<!-- Formatting. | ||
| + | --><noinclude> | ||
| + | |||
| + | {{template info|1= | ||
| + | == Goal == | ||
| + | |||
| + | To provide consistent template parameter formatting for template documentation. | ||
| + | |||
| + | == Usage == | ||
| + | |||
| + | {{obr}}param | ||
| + | {{!}} ''parameter'' | ||
| + | {{!}} ''value'' | ||
| + | {{cbr}} | ||
| + | |||
| + | All parameters are optional. | ||
| + | |||
| + | ; {{param|parameter}}: The parameter name. | ||
| + | |||
| + | ; {{param|value}}: The parameter value. | ||
| + | |||
| + | == Example == | ||
| + | {{obr}}param {{!}} type {{cbr}} | ||
| + | {{param | type}} | ||
| + | |||
| + | {{obr}}param {{!}} type {{!}} x {{cbr}} | ||
| + | {{param | type | x}} | ||
| + | |||
| + | {{obr}}param {{!}} {{!}} x {{cbr}} | ||
| + | {{param | | x}} | ||
| + | |||
| + | }}</noinclude> | ||
Latest revision as of 13:52, 23 October 2020
'
Template documentation
Goal
To provide consistent template parameter formatting for template documentation.
Usage
{{param
| parameter
| value
}}
All parameters are optional.
- parameter
- The parameter name.
- value
- The parameter value.
Example
{{param | type }}
type
{{param | type | x }}
type = x
{{param | | x }}
x