模板:Infobox flower
简介
此模板({{Infobox flower}}
)是用于展示游戏中花类型物品的信息框,其基本用法为:
{{Infobox flower |name = 玫瑰仙子 <!--中文名称--> |eng = Fairy Rose <!--英文名称--> |source = [[耕种]] <!--获取方式--> |location = <!--地点,仅限于通过采集获得的花--> |seed = {{name|Fairy Seeds}} <!--对应的种子,仅限于通过耕种或果树获得的花--> |growth = 12 天 <!--生长时间,仅限于通过耕种或果树获得的花--> |buff = <!--增益效果(若有,没有则留空)--> |buffduration = <!--增益时长(若有,没有则留空)--> |season = Fall <!--生长季节--> |xp = 29 [[耕种#经验值|耕种经验值]] <!--收获获得的经验值--> |edibility = 18 <!--可食用性--> |sellprice = 290 <!--基础售价--> |quality = <!--是否具有品质,若没有,值为 false--> |tag = farm <!--Wiki 内处理不同花的识别标签--> }}
Tag 的用法
Tag 主要用于区分该花的来源,与游戏数据无关,主要用于方便模板进行类别辨认。
根据逻辑,目前的花分类大致可以分为以下两种:
- 通过耕种获得的花,例如玫瑰仙子,它们有对应的蜂蜜产物,Tag 值为 farm 或 farming;
- 通过采集获得的花,例如甜豌豆,它们没有对应的蜂蜜产物,Tag 值为空。
示例
耕种获得的花
玫瑰仙子 | |||||||||||||||||||||||
Fairy Rose | |||||||||||||||||||||||
![]() |
|||||||||||||||||||||||
传言这种花朵的香味会吸引小仙女而来。 | |||||||||||||||||||||||
信息 | |||||||||||||||||||||||
种子 | ![]() |
||||||||||||||||||||||
成熟需 | 12天 | ||||||||||||||||||||||
季节 | ![]() |
||||||||||||||||||||||
经验值 | 29 耕种经验值 | ||||||||||||||||||||||
能量 / 生命值 |
|
||||||||||||||||||||||
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
高级 | |||||||||||||||||||||||
物品编号 | (O)595 |
耕种获得的花以玫瑰仙子为例,使用以下代码,结果如右所示(移动端显示在上方)。
{{Infobox flower |name = 玫瑰仙子 |eng = Fairy Rose |seed = {{name|Fairy Seeds}} |growth = 12天 |season = Fall |xp = 29 [[耕种#经验值|耕种经验值]] |sellprice = 290 |edibility = 18 |tag = farming }}
采集获得的花
番红花 | |||||||||||||||||||||||
Crocus | |||||||||||||||||||||||
![]() |
|||||||||||||||||||||||
冬天开花的一种花朵。 | |||||||||||||||||||||||
信息 | |||||||||||||||||||||||
来源 | 采集 • 冬季种子 | ||||||||||||||||||||||
地点 | |||||||||||||||||||||||
季节 | ![]() |
||||||||||||||||||||||
经验值 | |||||||||||||||||||||||
能量 / 生命值 |
|
||||||||||||||||||||||
|
|||||||||||||||||||||||
高级 | |||||||||||||||||||||||
物品编号 | (O)418 |
采集获得的花以番红花为例,使用以下代码,结果如右所示(移动端显示在上方)。
{{Infobox flower |name = 番红花 |eng = Crocus |source = [[采集]] • [[冬季种子]] |season = Winter |location = <nowiki /> *[[鹈鹕镇]](54%) *[[铁路]](50%) *[[巴士站]](42%) *[[深山]](40%) *[[煤矿森林]](39%) *[[边远森林]](35%) |edibility = 0 |sellprice = 60 |xp = <nowiki /> *冬季种子:{{Xp|3|采集}}与 {{Xp|2|耕种}} *采集:{{Xp|7|采集}} }}
注意
南瓜 | ||||||||||||||
Pumpkin | ||||||||||||||
![]() |
||||||||||||||
秋天的农作物,因为它香脆的种子以及甜美的果肉而深受喜爱。而且,南瓜壳还能用做节日饰品。 | ||||||||||||||
信息 | ||||||||||||||
种子 | ![]() |
|||||||||||||
成熟需 | 13天 | |||||||||||||
季节 | ![]() |
|||||||||||||
经验值 | 31 耕种经验值 | |||||||||||||
能量 | 不可食用 | |||||||||||||
|
||||||||||||||
|
||||||||||||||
高级 | ||||||||||||||
物品编号 | (O)276 |
- 这个模板理论上支持所有物品,比如可以使用以下代码来将南瓜“变”成不带有品质,且能产生蜂蜜的花,效果如右所示(移动端显示在上方)
{{Infobox flower |name = 南瓜 |eng = Pumpkin |seed = {{Name|Pumpkin Seeds}} |growth = 13天 |season = Fall |xp = 31 [[耕种#经验值|耕种经验值]] |sellprice = 320 |edibility = -300 |quality = false |tag = farm }}
- 已经对向日葵的特殊产物(油)进行了特殊处理
另见
普通
{{Infobox}}
{{Infobox animal}}
{{Infobox artifact}}
{{Infobox artisan}}
{{Infobox book}}
{{Infobox building}}
{{Infobox character}}
{{Infobox clothing}}
{{Infobox cooking}}
{{Infobox craft}}
{{Infobox festival}}
{{Infobox fish}}
{{Infobox flower}}
{{Infobox forage}}
{{Infobox fruit}}
{{Infobox fruit tree}}
{{Infobox furniture}}
{{Infobox item}}
{{Infobox location}}
{{Infobox mineral}}
{{Infobox monster}}
{{Infobox mousehat}}
{{Infobox seed}}
{{Infobox tool}}
{{Infobox tree}}
{{Infobox vegetable}}
{{Infobox villager}}
{{Infobox weapon}}
特殊
{{InfoboxSEO}}
{{Tab}}
{{InfoboxCategory}}
模组
{{Infobox building/SVE}}
{{Item}}
{{Item Crafting}}
{{Item Weapon}}
{{Item consumable}}
{{Item cooking}}
{{Item fish}}
{{InfoboxSEO/SVE}}