Template:Inventory slot: Difference between revisions
No edit summary |
m (Gutin moved page Template:Slot to Template:Inventory slot) |
(No difference)
|
Revision as of 23:16, 16 February 2025
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
When using the alias, parts can be added which will override any parts in the alias.
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
To remove the title, set it to "none": Template:T
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
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.
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
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 (/).
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
Subframes
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:
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
Align
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 The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see alsoThe inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
Link
To change the link for all frames from the image name put: Template:T
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
To remove the link, set link to none: Template:T
- shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see alsoThe inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see alsoThe inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see alsoThe inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see alsoThe inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used have the Invicon <item name>.png
name format, or Grid <item name> (<mod name>).png
in case of mods (which are currently being phased out). GIF files are also supported for animated icons.
Usage
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
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. The "name" can also include the image's extension following a dot (.png
or .gif
).
Simple example
To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: Template:T
- shows
Template loop detected: Template:Slot
An amount of 2–999 is supported, anything else will not be displayed.
Aliases
#invoke: Inventory slot/Aliases/Table 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.
- shows
Template loop detected: Template:Slot
When using the alias, parts can be added which will override any parts in the alias.
- shows
Template loop detected: Template:Slot
Mods can specify an additional aliases table using the modaliases parameter.
Titles and description
The title parameter can be used to set a title for all frames.
- shows
Template loop detected: Template:Slot
To remove the title, set it to "none": Template:T
- shows
Template loop detected: Template:Slot
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.
- shows
Template loop detected: Template:Slot
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 (/).
- shows
Template loop detected: Template:Slot
Subframes
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:
- shows
Template loop detected: Template:Slot
Align
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 Template loop detected: Template:Slot in here!
Default
Default is always shown and is placed under the image. Template:TTemplate:T
- shows
Template loop detected: Template:SlotTemplate loop detected: Template:Slot
Link
To change the link for all frames from the image name put: Template:T
- shows
Template loop detected: Template:Slot
To remove the link, set link to none: Template:T
- shows
Template loop detected: Template:Slot
Note that this retains the title.
Available images
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 Overworld Wooden 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 Wooden Slab}}{{Slot|Any Wooden Stairs}} {{Slot|Matching Overworld Planks}}{{Slot|Matching Overworld Wooden Slab}}{{Slot|Matching Wooden Stairs}}
shows
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Template loop detected: Template:SlotTemplate loop detected: Template:SlotTemplate loop detected: Template:Slot
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also
Most items with a durability bar exist as "Damaged [item]".
See Template:InvSprite for the full list of items.
Other templates
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. Template:UI see also