Template:Param2: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{User:Philmasterplus/Type|{{{1}}}}} {{Pspan|{{{2}}}}}</includeonly><noinclude>
<includeonly>{{
  #if:{{{1|}}}
  |{{User:Philmasterplus/Type|{{{1}}}}}
}}{{
  #if:{{{1|}}}{{{2|}}}
  |&nbsp;
}}{{
  #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.

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}}