Template:Item link

From Antiaris Mod Wiki
Jump to: navigation, search

[[File:{{{1}}}.png|link={{{1}}}]] [[{{{1}}}|{{{1}}}]]

Template-info.png Documentation The documentation below is transcluded from Template:Item link/doc. (edit | history)

Displays a link to the item and adds a item icon in front of it.

Usage

{{item link
| image or item name, default image and item name; if image differs from item, no brackets nor "File:" nor ".png"
| optional: custom link text, which can include line breaks (<br />), the default is the first un-named parameter
| optional: ext = image file extension, the default is png
| optional: link = custom link to item name, and link given to image
| optional: size = ##px : custom graphic size (Read Extended image syntax for details)
}}

Examples

  • Bed.png Bed <-- is produced from {{item link|Bed}}
  • Wall of Flesh.png Wall of Flesh <-- is produced from {{item link|Wall of Flesh|size=32px}}
  • Wall of Flesh.png Wall of Flesh <-- is produced from {{item link|Wall of Flesh|size=x32px}}
  • Wall of Flesh.png Wall of Flesh <-- is produced from {{item link|Wall of Flesh|size=32x32px}}
  • Treasure Bag.gif Treasure Bag <-- is produced from {{item link|Treasure Bag|ext=gif}}

Notes

To avoid html bloat, item link is not in a "nowrap". If you wish for a nowrap effect, please add them to the general table style.