模板:Infobox resource:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
SummerFleur(留言 | 贡献) 创建页面 |
m 导入16个版本 |
||
| (未显示2个用户的15个中间版本) | |||
| 第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}}}}}}}}} |
|||
| ⚫ | |||
|Description={{{description|{{Description|{{PAGENAME}}}}}}} |
|||
|Price={{{price|}}} |
|||
|Sellprice={{#iferror:{{#expr:{{{sellprice|}}}}}||{{{sellprice|}}}}} |
|||
|Source={{{source|}}} |
|||
|Recipe={{{recipe|}}} |
|||
|Ingredients={{{ingredients|}}} |
|||
|Produces={{{produces|}}} |
|||
|Crafttime={{{crafttime|}}} |
|||
|Reingredients={{{reingredients|}}} |
|||
}}<!-- 模板代码从这里开始往下 |
|||
-->{{#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" |
<td colspan="2">[[File:{{{eng|Blank icon}}}.png|link=]]</td> |
||
| ⚫ | |||
{{#if: {{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}| |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
<td colspan="2" style="padding-bottom: 5px; text-align: center;">[[File:{{{eng|Blank icon}}}{{#if:{{{ext|}}}|.{{{ext|}}}|.png}}|link=]]{{#if:{{{image2|}}}|{{#ifeq:{{lc:{{{image2spacing|}}}}}|true| | }}[[File:{{{image2|}}}.png|link=]]|}}{{#if:{{{image3|}}}| [[File:{{{image3|}}}.png|link=]]|}}{{#if:{{{image4|}}}| [[File:{{{image4|}}}.png|link=]]|}}{{#if:{{{image5|}}}| [[File:{{{image5|}}}.png|link=]]|}}</td> |
|||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
| 第37行: | 第17行: | ||
<td class="infoboxsection">来源</td> |
<td class="infoboxsection">来源</td> |
||
<td class="infoboxdetail">{{{source|}}}</td> |
<td class="infoboxdetail">{{{source|}}}</td> |
||
| ⚫ | |||
}}{{#if:{{{monster|}}}|<nowiki/> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}}{{#if:{{{seed|}}}|<nowiki/> |
|||
| ⚫ | |||
| ⚫ | |||
<td class="infoboxdetail">{{{seed|}}}</td> |
|||
| ⚫ | |||
}}{{#if:{{{growth|}}}|<nowiki/> |
|||
| ⚫ | |||
<td class="infoboxsection">成熟需</td> |
|||
<td class="infoboxdetail">{{{growth|}}}</td> |
|||
| ⚫ | |||
}}{{#if:{{{season|}}}|<nowiki/> |
|||
| ⚫ | |||
<td class="infoboxsection">季节</td> |
|||
<td class="infoboxdetail">{{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }}</td> |
|||
</tr> |
|||
}}{{#if:{{{xp|}}}|<nowiki /> |
|||
<tr> |
|||
<td class="infoboxsection">经验值</td> |
|||
<td class="infoboxdetail">{{{xp|}}}</td> |
|||
</tr> |
</tr> |
||
}}{{#if:{{{price|}}}|<nowiki/> |
}}{{#if:{{{price|}}}|<nowiki/> |
||
| 第45行: | 第50行: | ||
}}{{#ifeq:{{lc:{{{tag|}}}}} | metalbar |
}}{{#ifeq:{{lc:{{{tag|}}}}} | metalbar |
||
|<tr> <!-- 金属锭 --> |
|<tr> <!-- 金属锭 --> |
||
<td colspan="2" |
<td colspan="2" class="subtable"> |
||
| ⚫ | |||
<table style="width: 101%; margin-top: -2px; margin-left: -2px;"> |
|||
<tr> |
<tr> |
||
<td colspan="2" class="infoboxsection">售出价格</td> |
<td colspan="2" class="infoboxsection">售出价格</td> |
||
| 第104行: | 第109行: | ||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
<td class="infoboxsection">{{ |
<td class="infoboxsection">{{~|[[File:Heavy Furnace.png|16px|link=]] [[重型熔炉]]}}</td> |
||
<td>{{#switch:{{lc:{{{tag|}}}}} |
<td>{{#switch:{{lc:{{{tag|}}}}} |
||
|metalbar = {{Name|{{{reingredients|}}}|25}} {{Name|Coal|3}} |
|metalbar = {{Name|{{{reingredients|}}}|25}} {{Name|Coal|3}} |
||
|quartz = {{Name|quartz|class=inline}}或{{Name|Fire Quartz|class=inline|5}} {{Name|Coal| |
|quartz = {{Name|quartz|class=inline}}或{{Name|Fire Quartz|class=inline|5}} {{Name|Coal|3}} }} |
||
</td> |
</td> |
||
<!-- <td>{{#switch:{{lc:{{{tag|}}}}} |
<!-- <td>{{#switch:{{lc:{{{tag|}}}}} |
||
| 第118行: | 第123行: | ||
<td class="infoboxdetail">{{duration|{{{crafttime|}}}}}</td> |
<td class="infoboxdetail">{{duration|{{{crafttime|}}}}}</td> |
||
</tr> |
</tr> |
||
}}{{Infobox utils|id|name={{{name|}}}|eng={{{eng|}}}|id={{{id|}}}}}</table> |
|||
}}{{#if:{{#var:item_id}}| |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}} |
|||
| ⚫ | |||
| ⚫ | |||
2026年1月28日 (三) 18:36的最新版本
简介
此模板({{Infobox resource}})是用于展示游戏中资源和怪物战利品的信息框,其基本用法为:
{{Infobox resource
|name = 中文名称
|eng = 英文名称
|source = 获取方式
|monster = 可掉落该物品的怪物
|seed = 对应的种子,仅限于纤维
|growth = 生长时间,仅限于纤维
|season = 生长季节,仅限于纤维
|xp = 收获获得的经验值,仅限于纤维
|price = 购买价格(若可购买,没有则留空)
|sellprice = 售出价格
|recipe = 打造配方来源,仅限于金属锭
|ingredients = 打造所需原料,仅限于金属锭
|produces = 每次打造产出数量,仅限于金属锭
|reingredients = 在熔炉中放入什么可以熔炼成该物品
|crafttime = 在熔炉中熔炼所需的时间
|tag = Wiki 内处理不同资源和怪物战利品的识别标签
}}
Tag 的用法
Tag 主要用于区分该资源和怪物战利品的分类,与游戏数据无关,主要用于方便模板进行类别辨认,不区分大小写。
根据逻辑,目前的资源和怪物战利品大致可以分为以下三类:
- 金属锭,例如铱锭、金锭,享受铁匠职业的 1.5 倍售价加成,Tag 值为
metalbar - 石英,单独划分一个 Tag 用于特殊处理,Tag 值为
quartz - 其它所有物品,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 resource/doc。