Template:InputType: Difference between revisions
Jump to navigation
Jump to search
Create: Minecraft Mod Wiki>Joker876 Created page with "<includeonly>{{#switch:{{{1}}} |string|str|text|txt=<span title="String">16px|</span> |function|func|fnc=<span title="Function">File:Input..." |
BoxWithout (talk | contribs) m 9 revisions imported |
||
(8 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|]]</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|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|]]</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> | ||
|#default=<span title="Any">[[File:InputType | |none|no=  | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | |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> | |||
}}{{#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=  | |||
|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
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.