Template:InputType: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
No edit summary
BoxWithout (talk | contribs)
m 9 revisions imported
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1}}}
<includeonly><span style="cursor:help">{{#switch:{{#explode:{{{1}}}|/}}
|string|str|text|txt=<span title="String">[[File:InputType String Icon.png|16px|link=]]</span>
|string|str|text|txt=<span title="String">[[File:InputType String Icon.png|16px|link=]]</span>
|function|func|fnc=<span title="Function">[[File:InputType Function Icon.png|16px|link=]]</span>
|function|func|fnc=<span title="Function">[[File:InputType Function Icon.png|16px|link=]]</span>
Line 9: Line 9:
|any|a=<span title="Any">[[File:InputType Any Icon.png|16px|link=]]</span>
|any|a=<span title="Any">[[File:InputType Any Icon.png|16px|link=]]</span>
|#default=<span title="Unknown">[[File:InputType Unknown Icon.png|16px|link=]]</span>
|#default=<span title="Unknown">[[File:InputType Unknown Icon.png|16px|link=]]</span>
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}{{#if:{{#explode:{{{1}}}|/|1}}|/{{#switch:{{#explode:{{{1}}}|/|1}}
|string|str|text|txt=<span title="String">[[File:InputType String Icon.png|16px|link=]]</span>
|function|func|fnc=<span title="Function">[[File:InputType Function Icon.png|16px|link=]]</span>
|array|arr|list=<span title="List">[[File:InputType List Icon.png|16px|link=]]</span>
|number|num|n|float|f|integer|int|double|d|long|l|short|s|byte=<span title="Number">[[File:InputType Number Icon.png|16px|link=]]</span>
|boolean|bool|b=<span title="Boolean">[[File:InputType Boolean Icon.png|16px|link=]]</span>
|compound|object|table|comp|obj|ob|t=<span title="Compound">[[File:InputType Compound Icon.png|16px|link=]]</span>
|none|no=&#32;
|any|a=<span title="Any">[[File:InputType Any Icon.png|16px|link=]]</span>
|#default=<span title="Unknown">[[File:InputType Unknown Icon.png|16px|link=]]</span>
}}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 21:33, 14 February 2025

[view | edit | history | purge]Documentation

This template creates an image of the specified input type.

This is a helper template, and should not be used directly.

Definition[edit source]

Parameter R? Type Description Default
1
Yes
/
Specifies what image should be produced. Multiple types can be specified by separating them with the / character.

Supported Types[edit source]

Icon Type Possible values
/ Boolean boolean, bool, b
/ Number number, num, n
/ String string, str, text, txt
/ List list, array, arr
/ Compound compound, comp, object, obj, table
/ Function function, func, fnc
/ Any any, a
/ Blank none, no
Only a single space is put in place of the image.
/ Unknown Displayed if no value provided or value is not supported.
[view | edit | history | purge]The above documentation is transcluded from Template:InputType/doc.