Template:Image/doc

From RLCraft Wiki
Jump to navigation Jump to search

This template creates an image on the page that it is used. You can set the image, link, and hover text with the template. The image size is the resolution it was uploaded with, so it is imperative that images be uploaded at native 16x16 size unless there is a reason otherwise

Usage

{{Image
 |image=My_item
 |link=[[My_item]]
 |text=My Item
 |size=16px
}}

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

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

size

This value is passed directly to the image wikitext and works exactly the same

Examples

{{Image|image=Iron_boots|link=[[boots]]|text=Boots}}

This creates a small image of iron boots Boots

{{Image|image=Iron_boots|link=[[boots]]|text=Boots|size=32px}}

The same iron boots but double size Boots

{{Image|image=Bow_standby|link=|text=Bow}}

Creating image with no link Bow