Template:Item slot test
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
This template creates a Slot image from Minecraft, which can include a picture of another item or not. The item inside can have a link and hover text. The Slot itself will never be linked. The size of the pictures are automatically scaled so uploading images as a multiple of 16x16 is imperative, otherwise it will look bad.
Usage
{{Item_slot
|image=My_item
|link=[[My_item]]
|text=My Item
}}
image
This parameter automatically uses the image contained at File:My_item.png. .png is automatically applied, there is no need to add it to the parameter value, i.e My_item.png
Special Value
A special value for the image parameter is "empty". Supplying an "empty" image will not create the second image which contains a picture, effectively ignoring the link and text parameters.
link
The link parameter applies the value to the linked page if clicked. You must surround the value with square brackets, i.e [[My_item]]. Future versions may support automatically linking the supplied value to a page in the wiki. Use the Talk page to request this feature be added, however, note that this will not be a priority unless you using the template a bunch. Otherwise, feel free to add that capability yourself
text
This value will show when a user hovers their mouse over the picture
Examples
{{Item slot_test|image=empty}}
Creating an empty slot
{{Item slot_test|image=empty|link=[[Boots]]|text=Any Boots}}
Empty slot, but has link and text parameters which are ignored
{{Item slot_test|image=Iron_helmet|link=[[Helmets]]|text=Iron Helmet}}
Slot with an Iron Helmet inside This template is used for testing before moving changes live so the history is not polluted