Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
[查看 | 编辑 | 历史 | 清除缓存]文档页面
Lua logo.svg

此模板使用了模块:Inventory icon,此脚本使用Lua编写。
更多详情,请参阅维基百科:LuaMediaWiki:扩展:Scribunto

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

Usage

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.

Example

{{inventory icon|Stone}}

produces

{{inventory icon|Cobblestone|link=挖掘}}

produces

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

produces

See also

Advertisement