本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Weird Gloop没有从属关系。(免责声明

全站通知:

模板:Inventory icon

来自我的世界地下城WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面
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