模板:Infobox artisan:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
SummerFleur(留言 | 贡献) 新建模板 |
SummerFleur(留言 | 贡献) 无编辑摘要 |
||
| (未显示2个用户的28个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly> |
<includeonly><div class="infoboxborder"> |
||
<table class="infoboxtable"> |
|||
|Name={{{name|{{PAGENAME}}}}} |
|||
<tr class="infoboxtitle"> |
|||
|Eng={{English|{{{name|{{PAGENAME}}}}}}} |
|||
<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> |
|||
|ID={{ID|{{English|{{{name|{{PAGENAME}}}}}}}}} |
|||
</tr>{{#if:{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}|<tr class="infoboxtitle"><td colspan="2" class="infoboxheader">{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}</td></tr>|}} |
|||
|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"> |
|||
<table class="infoboxtable infobox{{#vardefineecho:infobox_count|{{#expr:{{#var:infobox_count|0}}+1}}}}" style="max-width: 350px;"> |
|||
<tr> |
<tr> |
||
<td colspan="2">[[File:{{{eng|Blank icon}}}.png|link=]]</td> |
|||
<td colspan="2" class="{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}|infoboxheader infoboxheader-zh|infoboxheader}}">{{{name|{{PAGENAME}}}}}</td> |
|||
</tr> |
|||
{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}| |
|||
<tr> |
|||
<td colspan="2" class="infoboxheader infoboxheader-en">{{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}</td> |
|||
</tr>|}} |
|||
<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> |
||
<tr> |
<tr> |
||
| 第55行: | 第35行: | ||
<td class="infoboxdetail">不可食用</td> |
<td class="infoboxdetail">不可食用</td> |
||
|#default = |
|#default = |
||
<td class="infoboxsection"> |
<td class="infoboxsection">能量 / 生命值</td> |
||
<td class="infoboxdetail"> |
<td class="infoboxdetail"> |
||
{{#switch:{{lc:{{{quality|}}}}} |
{{#switch:{{lc:{{{quality|}}}}} |
||
|true = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|dsv=false}} |
|true = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|dsv=false}} |
||
|#default = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|quality=normal|dsv=false}} |
|#default = {{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|quality=normal|dsv=false}}}} |
||
</td>}} |
|||
</td> |
|||
</tr> |
</tr> |
||
}}{{#ifeq:{{lc:{{{tag|}}}}} | depends | <!-- 代表售价取决于原料,例如果酒、腌菜、熏鱼等 --> |
|||
<tr> |
|||
|<tr> <!-- 实际上并不是工匠产品,例如咖啡、油 --> |
|||
<td colspan="2" class="infoboxsection">售出价格</td> |
|||
</tr> |
|||
<tr> |
|||
<td class="infoboxsection">基础售价</td> |
|||
<td class="infoboxdetail">{{{sellprice|}}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td class="infoboxsection no-wrap">[[File:Artisan.png|24px|link=]] [[s:技能#耕种|工匠]]</td> |
|||
<td class="infoboxdetail">{{{name|}}}基础售价 × 1.4</td> |
|||
</tr> |
|||
|{{#ifeq:{{lc:{{{tag|}}}}} | not | |
|||
<tr> <!-- 实际上并不是工匠产品,例如咖啡、油 --> |
|||
<td class="infoboxsection">售出价格</td> |
<td class="infoboxsection">售出价格</td> |
||
<td class="infoboxdetail">{{Price|{{{sellprice|}}}}}</td> |
<td class="infoboxdetail">{{Price|{{{sellprice|}}}}}</td> |
||
</tr> |
</tr> |
||
|<tr> <!-- 所有其它物品 --> |
|<tr> <!-- 所有其它物品 --> |
||
<td colspan="2" |
<td colspan="2" class="subtable"> |
||
<table> |
|||
<table style="width: 101%; margin-top: -2px; margin-left: -2px;"> |
|||
{{#switch:{{lc:{{{tag|}}}}} |
{{#switch:{{lc:{{{tag|}}}}} |
||
<!-- 根据 Tag 判断售价 --> |
<!-- 根据 Tag 判断售价 --> |
||
|depends = <!-- 代表售价取决于原料,例如果酒、腌菜、熏鱼等 --> |
|||
<tr> |
|||
<td colspan="2" class="infoboxsection">售出价格</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2" class="infoboxdetail">{{{sellprice|}}}</td> |
|||
</tr> |
|||
{{#ifeq:{{lc:{{{eng|}}}}} | honey | |
|||
<tr> |
|||
<td colspan="2" class="infoboxsection">制成品售出价格</td> |
|||
</tr> |
|||
<tr> |
|||
<td class="infoboxsection">基础售价</td> |
|||
<td class="infoboxsection no-wrap">[[File:Artisan.png|24px|link=]] [[技能#耕种|工匠]](×1.4)</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{Qualityprice|Mead|300|dsv=false}}</td> |
|||
<td>{{Qualityprice|Mead|300|pm=1.4|dsv=false}}</td> |
|||
</tr> |
|||
}} |
|||
|animal = <!-- 代表该产品属于动物制品 --> |
|animal = <!-- 代表该产品属于动物制品 --> |
||
<tr> |
<tr> |
||
| 第99行: | 第70行: | ||
<tr> |
<tr> |
||
<td class="infoboxsection">基础售价</td> |
<td class="infoboxsection">基础售价</td> |
||
<td class="infoboxsection">[[File:Rancher.png|24px|link=]] [[技能#耕种|畜牧人]](×1.2)</td> |
<td class="infoboxsection">[[File:Rancher.png|24px|link=]] [[s:技能#耕种|畜牧人]](×1.2)</td> |
||
<td class="infoboxsection">[[File:Artisan.png|24px|link=]] [[技能#耕种|工匠]](×1.4)</td> |
<td class="infoboxsection">[[File:Artisan.png|24px|link=]] [[s:技能#耕种|工匠]](×1.4)</td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
| 第120行: | 第91行: | ||
<tr> |
<tr> |
||
<td class="infoboxsection">基础售价</td> |
<td class="infoboxsection">基础售价</td> |
||
<td class="infoboxsection no-wrap">[[File:Tapper_Icon.png|24px|link=]] [[技能#采集|萃取者]](×1.25)</td> |
<td class="infoboxsection no-wrap">[[File:Tapper_Icon.png|24px|link=]] [[s:技能#采集|萃取者]](×1.25)</td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
| 第131行: | 第102行: | ||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|quality=0|pm=1.25|dsv=false}}</td> |
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|quality=0|pm=1.25|dsv=false}}</td> |
||
}} |
}} |
||
</tr> |
</tr> |
||
|smoked = <!-- 仅限于 FlavoredArtisan/Smoked 使用 --> |
|||
<tr> |
|||
<td colspan="2" class="subtable"> |
|||
<table> |
|||
<tr> |
|||
<td class="infoboxsection" colspan="3">售出价格</td> |
|||
</tr> |
|||
<tr> |
|||
<td class="infoboxsection">基础售价</td> |
|||
<td class="infoboxsection">[[File:Fisher.png|24px|link=]] [[s:技能#钓鱼|渔夫]](×1.25)</td> |
|||
<td class="infoboxsection">[[File:Angler Icon.png|24px|link=]] [[s:技能#钓鱼|垂钓者]](×1.5)</td> |
|||
</tr> |
|||
<tr> |
|||
{{#switch: {{lc:{{{quality|}}}}} |
|||
|normal,silver|0,1= |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|hide=gold,iridium|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|hide=gold,iridium|pm=1.25|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|hide=gold,iridium|pm=1.5|dsv=false}}</td> |
|||
|#default = |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|pm=1.25|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|pm=1.5|dsv=false}}</td> |
|||
}} |
|||
</tr> |
|||
<tr> |
|||
<td class="infoboxsection">[[File:Artisan.png|24px|link=]] [[s:技能#耕种|工匠]](×1.4)</td> |
|||
<td class="infoboxsection">[[File:Fisher.png|24px|link=]] + [[File:Artisan.png|24px|link=]](×1.75)</td> |
|||
<td class="infoboxsection">[[File:Angler Icon.png|24px|link=]] + [[File:Artisan.png|24px|link=]](×2.1)</td> |
|||
</tr> |
|||
<tr> |
|||
{{#switch: {{lc:{{{quality|}}}}} |
|||
|normal,silver|0,1= |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|hide=gold,iridium|pm=1.4|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|hide=gold,iridium|pm=1.75|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|hide=gold,iridium|pm=2.1|dsv=false}}</td> |
|||
|#default = |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|pm=1.4|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|pm=1.75|dsv=false}}</td> |
|||
<td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|pm=2.1|dsv=false}}</td> |
|||
}} |
|||
</tr> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
|#default = <!-- 其它任何常规的工匠产品,有固定的价格,且仅受到工匠技能加成,例如淡啤酒、鱼籽酱 --> |
|#default = <!-- 其它任何常规的工匠产品,有固定的价格,且仅受到工匠技能加成,例如淡啤酒、鱼籽酱 --> |
||
<tr> |
<tr> |
||
| 第138行: | 第153行: | ||
<tr> |
<tr> |
||
<td class="infoboxsection">基础售价</td> |
<td class="infoboxsection">基础售价</td> |
||
<td class="infoboxsection no-wrap">[[File:Artisan.png|24px|link=]] [[技能#耕种|工匠]](×1.4)</td> |
<td class="infoboxsection no-wrap">[[File:Artisan.png|24px|link=]] [[s:技能#耕种|工匠]](×1.4)</td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
| 第144行: | 第159行: | ||
|true = |
|true = |
||
<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. |
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|pm=1.4|dsv=false}}</td> |
||
|#default = |
|#default = |
||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|quality=0|dsv=false}}</td> |
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{sellprice|}}}|quality=0|dsv=false}}</td> |
||
| 第153行: | 第168行: | ||
</table> |
</table> |
||
</td> |
</td> |
||
</tr> |
</tr>}} |
||
}} |
}} |
||
<tr> |
<tr> |
||
<td colspan="2" class="infoboxsection">工匠物品</td> |
<td colspan="2" class="infoboxsection">{{#ifeq:{{lc:{{{tag|}}}}}|not|加工|工匠物品}}</td> |
||
</tr> |
</tr> |
||
{{#switch:{{lc:{{{tag|}}}}} |
{{#switch:{{lc:{{{tag|}}}}} |
||
| 第162行: | 第177行: | ||
<tr> |
<tr> |
||
<td class="infoboxsection">加工设备</td> |
<td class="infoboxsection">加工设备</td> |
||
<td class="infoboxdetail">{{ |
<td class="infoboxdetail">{{name|Tapper}} {{name|Heavy Tapper}}</td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
| 第181行: | 第196行: | ||
<td class="infoboxdetail">{{{ingredients|}}}</td> |
<td class="infoboxdetail">{{{ingredients|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if:{{ |
}}{{#if:{{{produces|}}}|<nowiki/> |
||
<tr> |
<tr> |
||
<td |
<td class="infoboxsection">产出</td> |
||
<td class="infoboxdetail">每次加工生产 {{{produces|}}}{{{name|}}}</td> |
|||
</tr> |
</tr> |
||
}}{{Infobox utils|id|name={{{name|}}}|eng={{{eng|}}}|id={{{id|}}}}} |
|||
<tr> |
|||
<td class="infoboxsection">物品编号</td> |
|||
<td class="infoboxdetail consolas">{{#var:item_id}}</td> |
|||
</tr> |
|||
}} |
|||
</table> |
</table> |
||
</div>{{InfoboxSEO |
</div>{{InfoboxSEO}}</includeonly><noinclude>{{Documentation}}</noinclude> |
||
==示例== |
|||
{{Infobox artisan |
|||
|name = 蜂蜜 |
|||
|eng = Honey |
|||
|source = [[工匠物品]] • [[绿洲]] |
|||
|ingredients = 任意[[花]] |
|||
|edibility = -300 |
|||
|sellprice = 100 + 花的基础价格 × 2 |
|||
|craftingstation = {{Name|Bee House}} |
|||
|crafttime = 4 天 |
|||
|tag = Depends |
|||
}} |
|||
{{Infobox artisan |
|||
|name = 鱼籽酱 |
|||
|eng = Caviar |
|||
|source = [[工匠物品]] |
|||
|edibility = 70 |
|||
|sellprice = 500 |
|||
|ingredients = {{name|Sturgeon Roe|1}} |
|||
|craftingstation = {{name|Preserves Jar|link=罐头瓶}} |
|||
|crafttime = 6000 分钟 |
|||
|quality = false |
|||
}} |
|||
{{Infobox artisan |
|||
|name = 枫糖浆 |
|||
|eng = Maple Syrup |
|||
|source = 采集[[枫树]] |
|||
|season = 季节 |
|||
|sellprice = 200 |
|||
|edibility = 20 |
|||
|craftingstation = {{name|Tapper}} {{name|Heavy Tapper}} |
|||
|crafttime = 9 天 |
|||
|crafttime2 = 4 天 |
|||
|ingredients = [[枫树]] |
|||
|tag = Tree |
|||
}} |
|||
{{clear}} |
|||
{{Infobox artisan |
|||
|name = 奶酪 |
|||
|eng = Cheese |
|||
|source = [[工匠物品]] • [[沙漠商人]] |
|||
|ingredients = {{Name|Milk|1|class=inline}}或{{Name|Large Milk|1}} |
|||
|edibility = 50 |
|||
|sellprice = 230 |
|||
|craftingstation = {{Name|Cheese Press|link=压酪机}} |
|||
|crafttime = 200 分钟 |
|||
|quality = true |
|||
|tag = Animal |
|||
}} |
|||
{{Infobox artisan |
|||
|name = 油 |
|||
|eng = Oil |
|||
|source = [[工匠物品]] • [[皮埃尔的杂货店]] |
|||
|ingredients = {{name|Corn|1|class=inline}}或<br />{{name|Sunflower|1|class=inline}}或{{name|Sunflower Seeds|1}} |
|||
|sellprice = 100 |
|||
|edibility = 5 |
|||
|quality = false |
|||
|crafttime = 因原料不同而时间不同 |
|||
|craftingstation = {{Name|Oil Maker}} |
|||
|tag = Not |
|||
}} |
|||
</noinclude> |
|||
2026年1月28日 (三) 20:22的最新版本
简介
此模板({{Infobox artisan}})是用于展示游戏中工匠物品(如蜂蜜、奶酪、鱼籽酱等)的信息框,其基本用法为:
{{Infobox artisan
|name = 中文名称
|eng = 英文名称
|source = 获取方式
|buff = 增益效果(若有,没有则留空)
|buffduration = 增益时长(若有,没有则留空)
|edibility = 可食用性
|sellprice = 基础售价
|ingredients = 加工原料
|craftingstation = 加工设备
|crafttime = 加工时间
|quality = 是否具有品质,若有,值为 true
|tag = Wiki 内处理不同工匠物品的识别标签,详细用法见下
}}
Tag 的用法
Tag 主要用于区分该工匠物品的类型,与游戏数据无关,主要用于方便模板进行类别辨认,不区分大小写。
根据逻辑,目前的工匠物品分类大致可以分为以下五类:
- 售价取决于原料的工匠物品,例如果酒、腌菜、熏鱼等,Tag 值为
depend - 属于动物制品的工匠物品,例如奶酪,Tag 值为
animal - 属于树液产品的工匠物品,例如枫糖浆,Tag 值为
tree - 实际上并不是工匠物品的物品,例如油,Tag 值为
not - 其他不属于上述类型的工匠物品(常规的工匠物品),例如鱼籽酱,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 artisan/doc。