此模板使用了模块:Infobox,此脚本使用Lua编写。
更多详情,请参阅维基百科:Lua和MediaWiki:扩展:Scribunto。
该模板用于在食物页面提供一个统一的设计。
{{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
{{Biome}}
{{Block}}
{{Development phase}}
{{Enchantment}}
{{Effect}}
{{Entity}}
{{Food}}
{{Fluid}}
{{Item}}
{{Structure}}
- Minecraft Dungeons
{{DungeonsEnchantment}}
{{DungeonsEntity}}
{{DungeonsItem}}
- 其他
{{3rd Party Tool}}
{{Company}}
{{Person}}
{{Profile}}
{{Program}}
{{Version nav}}
- Module:Infobox