打开/关闭菜单
331
1.7K
131
11.8K
星露谷物语扩展百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Infobox fruit:修订间差异

来自星露谷物语扩展百科
SummerFleur留言 | 贡献
m无编辑摘要
Sizau留言 | 贡献
新版方案
第1行: 第1行:
<includeonly>{{#set:
<includeonly>{{Vardefine|item_id|{{ID|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}}<!--
|Name={{{name|{{PAGENAME}}}}}
-->{{Vardefine|item_id|{{Var|item_id|{{ID|{{{name|{{PAGENAME}}}}}}}}}}}<!--
|Eng={{English|{{{name|{{PAGENAME}}}}}}}
|ID={{ID|{{English|{{{name|{{PAGENAME}}}}}}}}}
|Description={{{description|{{Description|{{PAGENAME}}}}}}}
|Source={{{source|}}}
|Location={{{location|}}}
|Seed={{{seed|}}}
|Growth={{{growth}}}
|Buff={{{buff|}}}
|Duration={{{duration|}}}
|Edibility={{#iferror:{{#expr:{{{edibility|}}}}}||{{{edibility|}}}}}
|Sellprice={{#iferror:{{#expr:{{{sellprice|}}}}}||{{{sellprice|}}}}}
}}<!-- 模板代码从这里开始往下
-->{{#vardefine:item_id|{{ID|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}}<!--
-->{{#vardefine:item_id|{{#var:item_id|{{ID|{{{name|{{PAGENAME}}}}}}}}}}}<!--
--><div class="infoboxborder">
--><div class="infoboxborder">
<table class="infoboxtable infobox{{#vardefineecho:infobox_count|{{#expr:{{#var:infobox_count|0}}+1}}}}" style="max-width: 350px;">
<table class="infoboxtable" style="max-width: 350px;">
<tr>
<tr>
<td colspan="2" class="{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}|infoboxheader infoboxheader-zh|infoboxheader}}">{{{name|{{PAGENAME}}}}}</td>
<td colspan="2" class="{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}|infoboxheader infoboxheader-zh|infoboxheader}}" data-category="{{#invoke:Category|getCategoryName|{{{name|{{PAGENAME}}}}}|{{Var|item_id}}}}" style="--category-color: {{#invoke:Category|getCategoryColor|{{{name|{{PAGENAME}}}}}|{{Var|item_id}}}}">{{{name|{{PAGENAME}}}}}</td>
</tr>
</tr>
{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}|
{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}|
第202行: 第188行:
</tr>
</tr>
}}
}}
{{#if:{{#var:item_id}}|
{{#if:{{Var|item_id}}|
<tr>
<tr>
<td colspan="2" class="infoboxsection">高级</td>
<td colspan="2" class="infoboxsection">高级</td>
第208行: 第194行:
<tr>
<tr>
<td class="infoboxsection">物品编号</td>
<td class="infoboxsection">物品编号</td>
<td class="infoboxdetail consolas" style="overflow-wrap: anywhere;">{{#var:item_id}}</td>
<td class="infoboxdetail consolas" style="overflow-wrap: anywhere;">{{Var|item_id}}</td>
</tr>
</tr>
}}
}}
</table>
</table>
</div>{{InfoboxSEO}}{{InfoboxCategory}}</includeonly><noinclude>{{Documentation}}</noinclude>
</div>{{InfoboxSEO}}</includeonly><noinclude>{{Documentation}}</noinclude>

2025年8月22日 (五) 21:09的版本

[ 查看 | 编辑 | 历史 | 刷新 ]文档页面

简介

此模板({{Infobox fruit}})是用于展示游戏中水果类物品的信息框,其基本用法为:

{{Infobox fruit
|name         = 中文名称
|eng          = 英文名称
|source       = 获取方式
|location     = 地点,仅限于通过采集获得的水果
|seed         = 对应的种子,仅限于通过耕种或果树获得的水果
|growth       = 生长时间,仅限于通过耕种或果树获得的水果
|buff         = 增益效果(若有,没有则留空)
|buffduration = 增益时长(若有,没有则留空)
|season       = 生长季节
|xp           = 收获获得的经验值
|edibility    = 可食用性
|sellprice    = 基础售价
|color        = 颜色值
|quality      = 是否具有品质,若没有,值为 false
|tag          = Wiki 内处理不同水果的识别标签
}}

Tag 的用法

Tag 主要用于区分该水果的来源,与游戏数据无关,主要用于方便模板进行类别辨认,不区分大小写。

根据逻辑,目前的水果分类大致可以分为以下三类:

  1. 通过耕种获得的水果,例如甜瓜、草莓,享受农耕人职业的 1.1 倍售价加成,Tag 值为空
  2. 通过采集获得的水果,例如水晶果、香味浆果,不享受农耕人职业的 1.1 倍售价加成,Tag 值为 forage
  3. 通过种植果树获得的水果,例如桃子、橙子,享受农耕人职业的 1.1 倍售价加成,但是在树上生长,Tag 值为 Tree

注意

  • 特殊产物(例如葡萄 → 葡萄干)在模板内进行特殊处理

另见

普通

特殊

[ 查看 | 编辑 | 历史 | 刷新 ]上述文档的内容来自模板:Infobox fruit/doc