Template:Inventory slot
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.