模板:Infobox flower:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
SummerFleur(留言 | 贡献) Create Template: Infobox flower |
SummerFleur(留言 | 贡献) 无编辑摘要 |
||
| (未显示2个用户的18个中间版本) | |||
| 第1行: | 第1行: | ||
| ⚫ | |||
<includeonly>{{#vardefine:item_id|{{ID|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}}<!-- |
|||
<table class="infoboxtable"> |
|||
-->{{#vardefine:item_id|{{#var:item_id|{{ID|{{{name|{{PAGENAME}}}}}}}}}}}<!-- |
|||
<tr class="infoboxtitle"> |
|||
| ⚫ | |||
<td colspan="2" class="infoboxheader" data-category="{{{cat|{{Category|name|{{{name|{{{eng|{{PAGENAME}}}}}}}}|id={{{id|}}}}}}}}" style="--category-color: {{{cat2|{{Category|color|{{{name|{{{eng|{{PAGENAME}}}}}}}}|id={{{id|}}}}}}}}">{{{name|{{PAGENAME}}}}}</td> |
|||
<table id="infoboxtable" style="max-width: 350px;" class="infobox{{#vardefineecho:infobox_count|{{#expr:{{#var:infobox_count|0}}+1}}}}"> |
|||
</tr>{{#if:{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}|<tr class="infoboxtitle"><td colspan="2" class="infoboxheader">{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}</td></tr>|}} |
|||
<tr> |
<tr> |
||
<td colspan="2" |
<td colspan="2">[[File:{{{eng|Blank icon}}}.png|link=]]</td> |
||
</tr> |
</tr> |
||
{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}| |
|||
<tr> |
<tr> |
||
<td colspan="2 |
<td colspan="2" class="infoboxdetail">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{{name|{{PAGENAME}}}}}}}}}</td> |
||
</tr>|}} |
|||
| ⚫ | |||
<td colspan="2" style="padding-bottom: 5px; text-align: center;">[[File:{{{eng|Blank icon}}}{{#if:{{{ext|}}}|.{{{ext|}}}|.png}}]]{{#if:{{{image2|}}}|{{#ifeq:{{lc:{{{image2spacing|}}}}}|true| | }}[[File:{{{image2|}}}.png]]|}}{{#if:{{{image3|}}}| [[File:{{{image3|}}}.png]]|}}{{#if:{{{image4|}}}| [[File:{{{image4|}}}.png]]|}}{{#if:{{{image5|}}}| [[File:{{{image5|}}}.png]]|}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2" id="infoboxdetail" style="text-align: center; padding-right: 3px;">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{{name|{{PAGENAME}}}}}}}}}</td> |
|||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
<td colspan="2" |
<td colspan="2" class="infoboxsection">信息</td> |
||
</tr> |
</tr> |
||
{{#if:{{{source|}}}|<nowiki/> |
{{#if:{{{source|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">来源</td> |
||
<td |
<td class="infoboxdetail">{{{source|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{location|}}}|<nowiki/> |
}}{{#if:{{{location|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">地点</td> |
||
<td |
<td class="infoboxdetail">{{{location|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{seed|}}}|<nowiki/> |
}}{{#if:{{{seed|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">种子</td> |
||
<td |
<td class="infoboxdetail">{{{seed|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{growth|}}}|<nowiki/> |
}}{{#if:{{{growth|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">成熟需</td> |
||
<td |
<td class="infoboxdetail">{{{growth|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{buff|}}}|<nowiki/> |
}}{{#if:{{{buff|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">增益效果</td> |
||
<td |
<td class="infoboxdetail">{{{buff|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{buffduration|}}}|<nowiki/> |
}}{{#if:{{{buffduration|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">持续时间</td> |
||
<td |
<td class="infoboxdetail">{{duration|{{{buffduration|}}}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{season|}}}|<nowiki/> |
}}{{#if:{{{season|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">季节</td> |
||
<td |
<td class="infoboxdetail">{{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{xp|}}}|<nowiki /> |
}}{{#if:{{{xp|}}}|<nowiki /> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">经验值</td> |
||
<td |
<td class="infoboxdetail">{{{xp|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{{edibility|}}}|<nowiki /> |
}}{{#if:{{{edibility|}}}|<nowiki /> |
||
| 第63行: | 第57行: | ||
{{#switch:{{lc:{{{edibility|}}}}} |
{{#switch:{{lc:{{{edibility|}}}}} |
||
|-300 = |
|-300 = |
||
<td |
<td class="infoboxsection">能量</td> |
||
<td |
<td class="infoboxdetail">不可食用</td> |
||
|#default = |
|#default = |
||
<td |
<td class="infoboxsection">能量 / 生命值</td> |
||
<td |
<td class="infoboxdetail"> |
||
{{#switch:{{lc:{{{quality|}}}}} |
{{#switch:{{lc:{{{quality|}}}}} |
||
|false = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|quality=normal|dsv=false}} |
|false = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|quality=normal|dsv=false}} |
||
|#default = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|dsv=false}} |
|#default = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|dsv=false}}}} |
||
</td>}} |
|||
| ⚫ | |||
</tr> |
</tr> |
||
}}{{#if:{{{sellprice|}}} |<nowiki /> |
|||
<tr> |
<tr> |
||
<td colspan="2" |
<td colspan="2" class="subtable"> |
||
| ⚫ | |||
<table style="width: 101%; margin-top: -2px; margin-left: -2px;"> |
|||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection" colspan="2">售出价格</td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">基础售价</td> |
||
<td |
<td class="infoboxsection no-wrap">[[File:Tiller.png|24px|link=]] [[s:技能#耕种|农耕人]](×1.1)</td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
| 第92行: | 第85行: | ||
|#default = |
|#default = |
||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|dsv=false}}</td> |
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|dsv=false}}</td> |
||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|pm=1.1|dsv=false}}</td> |
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|pm=1.1|dsv=false}}</td>}} |
||
}} |
|||
</tr> |
</tr> |
||
</table> |
</table> |
||
</td> |
</td> |
||
</tr> |
</tr> |
||
<tr> |
|||
{{#switch:{{lc:{{{tag|}}}}} |
{{#switch:{{lc:{{{tag|}}}}} |
||
<!-- 根据 Tag 判段是否有制成品 --> |
<!-- 根据 Tag 判段是否有制成品 --> |
||
|farming|farm = |
|farming|farm = |
||
| ⚫ | |||
<td colspan="2" |
<td colspan="2" class="subtable"> |
||
<table style="width: 101%; margin-top: -2px; margin-left: -2px;"> |
|||
| ⚫ | |||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection" colspan="3">制成品售出价格</td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection" style="width: 30%; text-align: left;">获取设备</td> |
||
<td |
<td class="infoboxsection">基础售价</td> |
||
<td |
<td class="infoboxsection no-wrap">[[File:Artisan.png|24px|link=]] [[s:技能#耕种|工匠]](×1.4)</td> |
||
</tr> |
</tr> |
||
<tr> <!-- 蜂蜜 --> |
<tr> <!-- 蜂蜜 --> |
||
<td |
<td class="infoboxsection">[[File:Bee House Full.png|16px|link=]] [[s:蜂房|蜂房]]</td> |
||
<td>{{Qualityprice|Honey|{{{sellprice|}}}|dsv=false}}</td> |
<td>{{Qualityprice|Honey|{{{sellprice|}}}|dsv=false}}</td> |
||
<td>{{Qualityprice|Honey|{{{sellprice|}}}|pm=1.4|dsv=false}}</td> |
<td>{{Qualityprice|Honey|{{{sellprice|}}}|pm=1.4|dsv=false}}</td> |
||
</tr> |
</tr> |
||
{{#switch:{{lc:{{{eng|}}}}} |
|||
|sunflower= |
|||
<tr> <!-- 油 --> |
|||
<td id="infoboxsection">[[File:Oil Maker.png|16px|link=]] [[产油机]]</td> |
|||
<td>{{Qualityprice|Oil|100|dsv=false}}</td> |
|||
<td>{{Qualityprice|Oil|100|dsv=false}}</td> |
|||
| ⚫ | |||
}} |
|||
</table> |
</table> |
||
</td> |
</td> |
||
</tr>}} |
|||
}}{{Infobox utils|id|name={{{name|}}}|eng={{{eng|}}}|id={{{id|}}}}} |
|||
}} |
|||
{{#if:{{#var:item_id}}| |
|||
<tr> |
|||
<td colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0; padding-right: 0;">高级</td> |
|||
</tr> |
|||
<tr> |
|||
<td id="infoboxsection">物品编号</td> |
|||
<td id="infoboxdetail" class="consolas">{{#var:item_id}}</td> |
|||
</tr> |
|||
}} |
|||
</table> |
</table> |
||
</div>{{InfoboxSEO |
</div>{{InfoboxSEO}}</includeonly><noinclude>{{Documentation}}</noinclude> |
||
==示例== |
|||
{{Infobox flower |
|||
|name = 玫瑰仙子 |
|||
|eng = Fairy Rose |
|||
|seed = {{name|Fairy Seeds}} |
|||
|growth = 12天 |
|||
|season = Fall |
|||
|xp = 29 [[耕种#经验值|耕种经验值]] |
|||
|sellprice = 290 |
|||
|edibility = 18 |
|||
|tag = farming |
|||
}} |
|||
{{Infobox flower |
|||
|name = 向日葵 |
|||
|eng = Sunflower |
|||
|seed = {{Name|Sunflower Seeds}} |
|||
|growth = 8天 |
|||
|season = {{Season|Summer}} • {{Season|Fall}} |
|||
|xp = 14 [[耕种#经验值|耕种经验值]] |
|||
|sellprice = 80 |
|||
|edibility = 18 |
|||
|tag = farming |
|||
}} |
|||
{{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|采集}} |
|||
}}</noinclude> |
|||
2026年1月28日 (三) 18:12的最新版本
简介
此模板({{Infobox flower}})是用于展示游戏中花类物品的信息框,其基本用法为:
{{Infobox flower
|name = 中文名称
|eng = 英文名称
|source = 获取方式
|location = 地点,仅限于通过采集获得的花
|seed = 对应的种子,仅限于通过耕种获得的花
|growth = 生长时间,仅限于通过耕种获得的花
|buff = 增益效果(若有,没有则留空)
|buffduration = 增益时长(若有,没有则留空)
|season = 生长季节
|xp = 收获获得的经验值
|edibility = 可食用性
|sellprice = 基础售价
|quality = 是否具有品质,若没有,值为 false
|tag = Wiki 内处理不同花的识别标签
}}
Tag 的用法
Tag 主要用于区分该花的来源,与游戏数据无关,主要用于方便模板进行类别辨认,不区分大小写。
根据逻辑,目前的花分类大致可以分为以下两种:
- 通过耕种获得的花,例如玫瑰仙子,它们有对应的蜂蜜产物,Tag 值为
farm或farming - 通过采集获得的花,例如甜豌豆,它们没有对应的蜂蜜产物,Tag 值为空
注意
- 特殊产物(例如向日葵 → 油)在模板内进行特殊处理
另见
普通
{{Infobox animal}}{{Infobox animal prod}}{{Infobox artifact}}{{Infobox artisan}}{{Infobox building}}{{Infobox cooking}}{{Infobox craft}}{{Infobox festival}}{{Infobox fish}}{{Infobox flower}}{{Infobox forage}}{{Infobox fruit}}{{Infobox item}}{{Infobox location}}{{Infobox monster}}{{Infobox resource}}{{Infobox seed}}{{Infobox tree}}{{Infobox vegetable}}{{Infobox villager}}{{Infobox weapon}}
特殊
{{Infobox utils}}{{InfoboxSEO}}{{Tabs}}
[ 查看 | 编辑 | 历史 | 刷新 ]上述文档的内容来自模板:Infobox flower/doc。