Difference between revisions of "Template:Param2"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <includeonly>{{User:Philmasterplus/Type|{{{1}}}}} {{Pspan|{{{2}}}}}</includeonly><noinclude> | + | <includeonly>{{ |
+ | #if:{{{1|}}} | ||
+ | |{{User:Philmasterplus/Type|{{{1}}}}} | ||
+ | }}{{ | ||
+ | #if:{{{1|}}}{{{2|}}} | ||
+ | | | ||
+ | }}{{ | ||
+ | #if:{{{2|}}} | ||
+ | |{{Pspan|{{{2}}}}} | ||
+ | }}</includeonly><noinclude> | ||
<templatedata> | <templatedata> | ||
Line 23: | Line 32: | ||
==Examples== | ==Examples== | ||
+ | ===Types and parameters=== | ||
<pre> | <pre> | ||
*{{User:Philmasterplus/Param|int|param1}} | *{{User:Philmasterplus/Param|int|param1}} | ||
Line 32: | Line 42: | ||
*{{User:Philmasterplus/Param|float|param2}} | *{{User:Philmasterplus/Param|float|param2}} | ||
*{{User:Philmasterplus/Param|string [int]|param3}} | *{{User:Philmasterplus/Param|string [int]|param3}} | ||
+ | |||
+ | ===Types only=== | ||
+ | <pre> | ||
+ | *{{User:Philmasterplus/Param|void}} | ||
+ | *{{User:Philmasterplus/Param|monster}} | ||
+ | *{{User:Philmasterplus/Param|boolean}} | ||
+ | </pre> | ||
+ | |||
+ | *{{User:Philmasterplus/Param|void}} | ||
+ | *{{User:Philmasterplus/Param|monster}} | ||
+ | *{{User:Philmasterplus/Param|boolean}} | ||
</noinclude> | </noinclude> |
Revision as of 20:13, 18 December 2020
This is similar to [[Template:Param]] except that this has no trailing whitespace.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Parameter data type | 1 | Parameter data type
| Line | required |
Parameter name | 2 | Parameter name | Line | required |
Examples
Types and parameters
*{{User:Philmasterplus/Param|int|param1}} *{{User:Philmasterplus/Param|float|param2}} *{{User:Philmasterplus/Param|string [int]|param3}}
Types only
*{{User:Philmasterplus/Param|void}} *{{User:Philmasterplus/Param|monster}} *{{User:Philmasterplus/Param|boolean}}