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

全站通知:

模板:Food

来自我的世界地下城WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面
Lua logo.svg

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

Food
No image.svg
可堆叠
?


该模板用于在食物页面提供一个统一的设计。

{{Food
|title=
|image= 
|invimage= 
|rarity= 
|heals= 
|stackable= 
|experience=
|nameid=
}}
参数 功能 默认值
title 可选。使用一个不同的标题来代替默认使用页面名称的标题。 {{BASEPAGENAME}}
image 食物的图形(大小约150×150px) 如果 {{{title}}}.png 不存在,则使用No image.svg(链接到上传缺失图像的页面)
imageN 食物的多种状态图片(大小约150×150px)
invimage Image for object in inventory. Can use None to force no invimage. Uses Template:Grid. Grid {{{title}}}.png if it exists, otherwise None
invimageN Other images for object in inventory. Uses Template:Grid. None
rarity 稀有度 此食物的稀有度,默认值为普通。
heals Restores ?
stackable Stackable ?
experience Gives experience? If so, add the value like this: "Cooked: 0.5" None
nameid The food's named identifier. Can use None to force no name ID. title or {{BASEPAGENAME}}

See also

Minecraft
Minecraft Dungeons
其他