Template:Param2: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
m Philmasterplus moved page User:Philmasterplus/Param to Template:Param2: Ready for release
No edit summary
Line 1: Line 1:
<includeonly>{{
<includeonly>{{
   #if:{{{1|}}}
   #if:{{{1|}}}
   |{{User:Philmasterplus/Type|{{{1}}}}}
   |{{type|{{{1}}}}}
}}{{
}}{{
   #if:{{{1|}}}|{{#if:{{{2|}}}|&nbsp;}}
   #if:{{{1|}}}|{{#if:{{{2|}}}|&nbsp;}}
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>
*{{User:Philmasterplus/Param|int|param1}}
*{{param2|int|param1}}
*{{User:Philmasterplus/Param|float|param2}}
*{{param2|float|param2}}
*{{User:Philmasterplus/Param|string [int]|param3}}
*{{param2|string [int]|param3}}
</pre>
</pre>


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


===Types only===
===Types only===
<pre>
<pre>
*"{{User:Philmasterplus/Param|void}}"
*"{{param2|void}}"
*"{{User:Philmasterplus/Param|monster}}"
*"{{param2|monster}}"
*"{{User:Philmasterplus/Param|boolean}}"
*"{{param2|boolean}}"
</pre>
</pre>


*"{{User:Philmasterplus/Param|void}}"
*"{{param2|void}}"
*"{{User:Philmasterplus/Param|monster}}"
*"{{param2|monster}}"
*"{{User:Philmasterplus/Param|boolean}}"
*"{{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.

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

*{{param2|int|param1}}
*{{param2|float|param2}}
*{{param2|string [int]|param3}}
  • int param1
  • float param2
  • string [int] param3

Types only

*"{{param2|void}}"
*"{{param2|monster}}"
*"{{param2|boolean}}"