UNDER CONSTRUCTION
The inventory slot template creates an interface element which looks and acts like an in-game inventory slot.
The images used are primarily taken from {{InvSprite}}, but if the specified item is not found, the template falls back to individual images in the format of Grid <item name>.png. However, this should never happen, and any cases of it happening must be looked into.
Usage
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.
Simple Example
To display an inventory item of "Warden" with an stack size of 20 you would put: {{User-Hipposgrumm/Jokeslot|Warden.png,20}}
- shows
Script error: No such module "User-Hipposgrumm/Jokeslot".
Other than a small change in syntax, it is no different from {{Slot}}
Even works with GIFS:
Script error: No such module "User-Hipposgrumm/Jokeslot".