Šablonas:Inventory slot/doc

Iš MCSlime.LT.
Pereiti į navigaciją Jump to search
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information
{{#if: |Redirect|Shortcut}}{{#if: | s }}
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default = Slot 
 |  = {{ #ifeq:  | 
    | Template:Slot       
    | Slot 
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default = Slot 
|  = {{ #ifeq:  | 
   | Template:Slot       
   | Slot 
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: Slot | Slot | {{fullurl: {{#replace:{{ #switch:

| #default = Slot 
|  = {{ #ifeq:  | 
   | Template:Slot       
   | Slot 
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{2}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{2}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{2}}} | {{{2}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{2}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }} }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{3}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{3}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{3}}} | {{{3}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{3}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }} }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{4}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{4}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{4}}} | {{{4}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{4}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }} }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{5}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{5}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{5}}} | {{{5}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{5}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }} }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{6}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{6}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{6}}} | {{{6}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{6}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }} }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{7}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{7}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{7}}} | {{{7}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{7}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }} }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{8}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{8}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{8}}} | {{{8}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{8}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}] }} }}{{

  1. if: |
  • {{ #if:
 |  {{fullurl: {{#replace:{{ #switch: 
 | #default =  
 |  = {{ #ifeq:  | 
    | Template:{{{9}}}       
    |  
  }}
}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if:  | action={{{action}}} }} }} }} 
 | [{{fullurl: {{#replace:{{ #switch: 
| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{9}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} {{ #if: {{{9}}} | {{{9}}} | {{fullurl: {{#replace:{{ #switch:

| #default =  
|  = {{ #ifeq:  | 
   | Template:{{{9}}}       
   |  
 }}

}}| |_}} | {{ #if: redirect=no | {{#replace:redirect=no| |_}} | {{ #if: | action={{{action}}} }} }} }} }}]

}} }}
{{
 #if: 
|

}}{{

 #if: Lua logo.svg
|

}} {{

 #if: 
 | 

}}{{

  #if:Lua logo.svg
  |{{
     #if:  
     | Lua logo.svg 
     | 32px }}}}

}}}}{{

 #if: 
|

}}{{

 #if: Lua logo.svg
|

}}

{{
 #if: 
 | {{{title}}} {{
   #if: 
   | [[{{fullurl:{{
     #if: 
     | {{{discussPage}}}
     | Šablono aptarimas:Inventory slot/doc
   }}{{
     #if: 
     | #{{{discussAnchor}}}
   }}|{{#if:|{{{qs}}}|{{#sub:{{
 #if:  | &action={{{action}}}

}}{{

 #if:  | &redirect={{{redirect}}}

}}{{

 #if:  | &profile={{{profile}}}

}}|1}}}}}} discuss]

 }}

}}{{

 #if: 
 | {{#if:|, links]|[links]}}
 | {{
   #if:
   |]
 }}

}} {{

 #if: This {{#ifeq:10|828|module depends on|template uses}} [[Module:]], {{ #if: Inventory slot/Aliases | with data stored in Module:Inventory slot/Aliases{{ #if:  |  and [[Module:]] }} | a script written in Lua }}.
{{ #if: Inventory slot/Aliases | These scripts are written in Lua. }}
|
This {{#ifeq:10|828|module depends on|template uses}} [[Module:]], {{ #if: Inventory slot/Aliases | with data stored in Module:Inventory slot/Aliases{{ #if: | and [[Module:]] }} | a script written in Lua }}.
{{ #if: Inventory slot/Aliases | These scripts are written in Lua. }}

}}

{{

  1. if:

| | {{#switch: doc

 | doc | sandbox | testcases =
 | {{#switch: 10
   | 0 | 10 =
   }}
 }}

}} The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.

The images used are primarily taken from {{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: InvSprite | : }} || Template: }}InvSprite|{{ #ifeq: | Template | InvSprite | InvSprite }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: InvSprite | File: }}{{#pos: InvSprite | Category: }} | }}, but if the specified item is not found, the template falls back to individual images in the format of Grid <item name>.png. However, this should never happen, and any cases of it happening must be looked into.

Usage[redaguoti vikitekstą]

All inputs are optional:

{{Slot
|[Title]Mod:Name,Amount[Description]; [Title2]Mod2:Name2,Amount2[Description2]; ...
|mod=Default mod (useful for animations and layout templates)
|default=Image always shown under the main image
|align=Vertical Alignment
|link=Link override
|title=Text show on mouseover
|class=Adds additional classes to the .invslot class
|style=Adds styling to the .invslot
|imgclass=Adds additional classes to the .invslot-item
|numstyle=Adds styling to the stack number
}}

Parts[redaguoti vikitekstą]

The first parameter is a special parameter consisting of various "parts" grouped together in frames (delimited by ;) which will be display one after another if JavaScript is enabled. Every part is optional, but without "name", won't do anything.

Simple example[redaguoti vikitekstą]

To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: {{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Raw Porkchop,20 | |Raw Porkchop,20 }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows

20

An amount of 2–999 is supported, anything else will not be displayed.

Aliases[redaguoti vikitekstą]

Note: Banner variations are not included due to how many there are.

The above aliases can be used to shorten common items, such as all wood blocks or adding parts to certain names by default.

{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Any Log;Golden Apple | |Any Log;Golden Apple }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows


When using the alias, parts can be added which will override any parts in the alias.

{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Any Log,4;[&oShiny Apple]Enchanted Golden Apple | |Any Log,4;[&oShiny Apple]Enchanted Golden Apple }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows

44444444Shiny Apple


Mods can specify an additional aliases table using the modaliases parameter.

Titles and description[redaguoti vikitekstą]

The title parameter can be used to set a title for all frames.

{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Raw Porkchop; Cooked Porkchoptitle=Smelly Porkchop | |Raw Porkchop; Cooked Porkchop }}{{ #if: title=Smelly Porkchop | |title=Smelly Porkchop }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows


To remove the title, set it to "none": {{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Raw Porkchop; Cooked Porkchoptitle=none | |Raw Porkchop; Cooked Porkchop }}{{ #if: title=none | |title=none }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows


However, the first bracketed text can be used to specify a title for each frame individually, and also supports standard formatting codes using & instead of §. If the title only contains formatting codes and no actual text, the formatting will be added to the normal title.

{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: [&b]Diamond Sword | |[&b]Diamond Sword }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows


The last bracketed text can be used to specify a description, this also supports standard formatting codes, and can also have multiple lines by using forward slashes (/).

{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: [&b&oExcalibur]Iron Sword[&7Smite V/Fire Aspect I//&9+6 Attack Damage] | |[&b&oExcalibur]Iron Sword[&7Smite V/Fire Aspect I//&9+6 Attack Damage] }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows

Subframes[redaguoti vikitekstą]

Subframes are shown as a single frame, but the frames within it are advanced every time the subframe is displayed. A set of frames can be put in a subframe by wrapping it in braces.

Here, an alias (which resolves to multiple frames) is wrapped in a subframe, and a different wood plank variant is shown each animation cycle:

{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: {Any Planks};Iron Ingot | |{Any Planks};Iron Ingot }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows

Align[redaguoti vikitekstą]

Align uses the vertical-align CSS property. For example to align to the middle: Smells like {{Slot|Raw Porkchop|align=middle}} in here!

shows

Smells like in here!

Default[redaguoti vikitekstą]

Default is always shown and is placed under the image. {{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: default=Grid layout Brewing Empty | |default=Grid layout Brewing Empty }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Splash Mundane Potiondefault=Grid layout Brewing Empty | |Splash Mundane Potion }}{{ #if: default=Grid layout Brewing Empty | |default=Grid layout Brewing Empty }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows

Link[redaguoti vikitekstą]

To change the link for all frames from the image name put: {{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Charcoallink=Coal#Charcoal | |Charcoal }}{{ #if: link=Coal#Charcoal | |link=Coal#Charcoal }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows


To remove the link, set link to none: {{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Slot | : }} || Template: }}Slot|{{ #ifeq: | Template | Slot | Slot }}]]{{ #if: Charcoallink=none | |Charcoal }}{{ #if: link=none | |link=none }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Slot | File: }}{{#pos: Slot | Category: }} | }}

shows

Note that this retains the title.

Available images[redaguoti vikitekstą]

In general, an item can be referred to by its tooltip name.

For dyes, dyed items and wood, there are two shortcuts to refer to all colors or tree species. Use e.g. "Any Wood Planks" if the item appears in more than one input slot and doesn't have to be the same color in all slots. Different copies of the same "Any [item]" will switch randomly and separately among the variants. Otherwise, use "Matching [item]"; all slots containing a "Matching" item will cycle through the species or dye colors in unison, even if they're not the same item.

{{Slot|Any Planks}}{{Slot|Any wood Slab}}{{Slot|Any wood Stairs}}

{{Slot|Matching Wood Planks}}{{Slot|Matching Wood Slab}}{{Slot|Matching wood Stairs}}

shows

Most items with a durability bar exist as "Damaged [item]".

See Template:InvSprite for the full list of items.

Other templates[redaguoti vikitekstą]

These templates implement this template into a GUI screen which mimics how it would look in Minecraft. Thus, they have mostly the same features as this template.

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Crafting Table | : }} || Template: }}Crafting Table|{{ #ifeq: | Template | Crafting Table | Crafting Table }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Crafting Table | File: }}{{#pos: Crafting Table | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Inventory Table | : }} || Template: }}Inventory Table|{{ #ifeq: | Template | Inventory Table | Inventory Table }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Inventory Table | File: }}{{#pos: Inventory Table | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Furnace | : }} || Template: }}Furnace|{{ #ifeq: | Template | Furnace | Furnace }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Furnace | File: }}{{#pos: Furnace | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Brewing Stand | : }} || Template: }}Brewing Stand|{{ #ifeq: | Template | Brewing Stand | Brewing Stand }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Brewing Stand | File: }}{{#pos: Brewing Stand | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Stonecutter | : }} || Template: }}Stonecutter|{{ #ifeq: | Template | Stonecutter | Stonecutter }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Stonecutter | File: }}{{#pos: Stonecutter | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Loom | : }} || Template: }}Loom|{{ #ifeq: | Template | Loom | Loom }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Loom | File: }}{{#pos: Loom | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Grindstone | : }} || Template: }}Grindstone|{{ #ifeq: | Template | Grindstone | Grindstone }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Grindstone | File: }}{{#pos: Grindstone | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Hotbar | : }} || Template: }}Hotbar|{{ #ifeq: | Template | Hotbar | Hotbar }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Hotbar | File: }}{{#pos: Hotbar | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Inventory | : }} || Template: }}Inventory|{{ #ifeq: | Template | Inventory | Inventory }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Inventory | File: }}{{#pos: Inventory | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Inventory slot | : }} || Template: }}Inventory slot|{{ #ifeq: | Template | Inventory slot | Inventory slot }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Inventory slot | File: }}{{#pos: Inventory slot | Category: }} | }}


de: Inventar slot/Dokumentation es:Plantilla:Inventory slot/doc fr:Modèle:Case inventaire/doc ja:テンプレート:Inventory slot/doc pt:Predefinição:Compartimento de inventário/doc ru:Шаблон:Инвентарный слот/док uk:Шаблон:Інвентарний слот/док