Difference between revisions of "Template:Param2"
Jump to navigation
Jump to search
m (Philmasterplus moved page User:Philmasterplus/Param to Template:Param2: Ready for release) |
|||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{ | ||
#if:{{{1|}}} | #if:{{{1|}}} | ||
− | |{{ | + | |{{type|{{{1}}}}} |
}}{{ | }}{{ | ||
#if:{{{1|}}}|{{#if:{{{2|}}}| }} | #if:{{{1|}}}|{{#if:{{{2|}}}| }} | ||
Line 11: | Line 11: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
− | "description": "This is similar to [[Template:Param]] except that this has no trailing whitespace.", | + | "description": "This is similar to [[Template:Param]] except that this has no trailing whitespace and does not make types bold font.", |
"params": { | "params": { | ||
"1": { | "1": { | ||
Line 33: | Line 33: | ||
===Types and parameters=== | ===Types and parameters=== | ||
<pre> | <pre> | ||
− | *{{ | + | *{{param2|int|param1}} |
− | *{{ | + | *{{param2|float|param2}} |
− | *{{ | + | *{{param2|string [int]|param3}} |
</pre> | </pre> | ||
− | *{{ | + | *{{param2|int|param1}} |
− | *{{ | + | *{{param2|float|param2}} |
− | *{{ | + | *{{param2|string [int]|param3}} |
===Types only=== | ===Types only=== | ||
<pre> | <pre> | ||
− | *"{{ | + | *"{{param2|void}}" |
− | *"{{ | + | *"{{param2|monster}}" |
− | *"{{ | + | *"{{param2|boolean}}" |
</pre> | </pre> | ||
− | *"{{ | + | *"{{param2|void}}" |
− | *"{{ | + | *"{{param2|monster}}" |
− | *"{{ | + | *"{{param2|boolean}}" |
</noinclude> | </noinclude> |
Revision as of 22:10, 18 December 2020
This is similar to [[Template:Param]] except that this has no trailing whitespace and does not make types bold font.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Parameter data type | 1 | Parameter data type
| Line | required |
Parameter name | 2 | Parameter name | Line | required |
Examples
Types and parameters
*{{param2|int|param1}} *{{param2|float|param2}} *{{param2|string [int]|param3}}
Types only
*"{{param2|void}}" *"{{param2|monster}}" *"{{param2|boolean}}"