Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/Inventory icon

Template page
Revision as of 06:50, 26 August 2015 by imported>Majr (Created page with "<includeonly>{{#invoke: inventory icon | icon }}</includeonly><noinclude> {{subst:doc}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Template:Documentation header Template:Lua

This template displays an image from {{inventory slot}}, only without adding a lot of the other styling and features.

Usage

The parameter Template:P can be set to determine the icon displayed. It will display an image with the title in the format of Invicon Template:P.png.

The parameter Template:P will set a link for when the image is clicked. If unset, the image will have no link.

The parameter Template:P will set the title for when the image is moused over. If unset, the image will display the link as the title, or nothing if both are unset.

Example

{{inventory icon|Stone}}

produces

Template:Inventory icon

{{inventory icon|Cobblestone|link=Mining}}

produces

Template:Inventory icon

{{inventory icon|Oak Wood|link=Wood|title=Punch the wood!}}

produces

Template:Inventory icon

See also

es:Plantilla:Icono de inventario ja:テンプレート:Inventory icon ko:틀:Inventory icon nl:Sjabloon:Inventory icon pt:Predefinição:Ícone de inventário ru:Шаблон:Инвентарная иконка

th:แม่แบบ:Inventory icon
The above text is transcluded from Template:MC/Inventory icon/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Inventory icon/doc. (View all subpages of this page.)