模板:Infobox fruit:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
回退到稳定版 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<includeonly>{{ |
<includeonly>{{#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" 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}}" data-category="{{#invoke:Category|getCategoryName|{{{name|{{PAGENAME}}}}}|{{ |
<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}}}}}}}}}}}}}| |
||
| 第188行: | 第188行: | ||
</tr> |
</tr> |
||
}} |
}} |
||
{{#if:{{ |
{{#if:{{#var:item_id}}| |
||
<tr> |
<tr> |
||
<td colspan="2" class="infoboxsection">高级</td> |
<td colspan="2" class="infoboxsection">高级</td> |
||
| 第194行: | 第194行: | ||
<tr> |
<tr> |
||
<td class="infoboxsection">物品编号</td> |
<td class="infoboxsection">物品编号</td> |
||
<td class="infoboxdetail consolas" style="overflow-wrap: anywhere;">{{ |
<td class="infoboxdetail consolas" style="overflow-wrap: anywhere;">{{#var:item_id}}</td> |
||
</tr> |
</tr> |
||
}} |
}} |
||
2025年8月23日 (六) 03:06的版本
简介
此模板({{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 倍售价加成,Tag 值为空
- 通过采集获得的水果,例如水晶果、香味浆果,不享受农耕人职业的 1.1 倍售价加成,Tag 值为
forage - 通过种植果树获得的水果,例如桃子、橙子,享受农耕人职业的 1.1 倍售价加成,但是在树上生长,Tag 值为
Tree
注意
- 特殊产物(例如葡萄 → 葡萄干)在模板内进行特殊处理
另见
普通
{{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 fruit/doc。