Template:Param2: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
   |{{User:Philmasterplus/Type|{{{1}}}}}
   |{{User:Philmasterplus/Type|{{{1}}}}}
}}{{
}}{{
   #if:{{{1|}}}{{{2|}}}
   #if:{{{1|}}}|{{#if:{{{2|}}}| }}
  | 
}}{{
}}{{
   #if:{{{2|}}}
   #if:{{{2|}}}
Line 45: Line 44:
===Types only===
===Types only===
<pre>
<pre>
*{{User:Philmasterplus/Param|void}}
*"{{User:Philmasterplus/Param|void}}"
*{{User:Philmasterplus/Param|monster}}
*"{{User:Philmasterplus/Param|monster}}"
*{{User:Philmasterplus/Param|boolean}}
*"{{User:Philmasterplus/Param|boolean}}"
</pre>
</pre>


*{{User:Philmasterplus/Param|void}}
*"{{User:Philmasterplus/Param|void}}"
*{{User:Philmasterplus/Param|monster}}
*"{{User:Philmasterplus/Param|monster}}"
*{{User:Philmasterplus/Param|boolean}}
*"{{User:Philmasterplus/Param|boolean}}"
</noinclude>
</noinclude>

Revision as of 20:21, 18 December 2020


This is similar to [[Template:Param]] except that this has no trailing whitespace.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Parameter data type1

Parameter data type

Example
string, int, void, item, monster, skill
Linerequired
Parameter name2

Parameter name

Linerequired

Examples

Types and parameters

*{{User:Philmasterplus/Param|int|param1}}
*{{User:Philmasterplus/Param|float|param2}}
*{{User:Philmasterplus/Param|string [int]|param3}}
  • int param1
  • float param2
  • string [int] param3

Types only

*"{{User:Philmasterplus/Param|void}}"
*"{{User:Philmasterplus/Param|monster}}"
*"{{User:Philmasterplus/Param|boolean}}"