The Gamepedia and Fandom account systems have now been merged. If your username is incorrect, you have accounts on both platforms that weren't merged, or you have trouble signing in, please submit a support ticket.

Template:Inventory icon

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]Documentation
Lua logo.svg
This template uses Module:Inventory icon, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

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


The parameter {{{1}}} can be set to determine the icon displayed. If the icon does not exist in the inventory slot icons, it will attempt to display an image with the title in the format of Grid {{{1}}}.png.

The parameter {{{link}}} will set a link for when the image is clicked. If unset, the image will have no link.

The parameter {{{title}}} 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.


{{inventory icon|Stone}}


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


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


See also[edit]

[view | edit | history | purge]The above documentation is transcluded from Template:Inventory icon/doc.