Template:InputType: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
No edit summary
Create: Minecraft Mod Wiki>Joker876
No edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{{1}}}
<includeonly>{{#switch:{{{1}}}
|string|str|text|txt=<span title="String">[[File:InputType String Icon.png|16px|]]</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|]]</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|]]</span>
|array|arr|list=<span title="List">[[File:InputType List Icon.png|16px|link=]]</span>
|number|num|float|f|integer|int|double|d|long|l|short|s|byte=<span title="Number">[[File:InputType Number Icon.png|16px|]]</span>
|number|num|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|]]</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|]]</span>
|compound|object|table|comp|obj|ob|t=<span title="Compound">[[File:InputType Compound Icon.png|16px|link=]]</span>
|none|no=&#32;
|none|no=&#32;
|#default=<span title="Any">[[File:InputType Blank.png|16px|]]</span>
|#default=<span title="Any">[[File:InputType Blank.png|16px|link=]]</span>
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 18:26, 16 April 2021

[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

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

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.