Template:Item slot test/doc

From RLCraft Wiki
Jump to navigation Jump to search

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

Inventory Slot.png

{{Item slot_test|image=empty|link=[[Boots]]|text=Any Boots}}

Empty slot, but has link and text parameters which are ignored

Inventory Slot.png

{{Item slot_test|image=Iron_helmet|link=[[Helmets]]|text=Iron Helmet}}

Slot with an Iron Helmet inside

Inventory Slot.png

Iron Helmet