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
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#explode:{{{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 19: Line 19:
|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>
}}}}</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.