模板:Infobox cooking:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
SummerFleur(留言 | 贡献) 兼容可食用物品 |
SummerFleur(留言 | 贡献) 误操作修复 |
||
| 第4行: | 第4行: | ||
|ID={{ID|{{English|{{{name|{{PAGENAME}}}}}}}}} | |ID={{ID|{{English|{{{name|{{PAGENAME}}}}}}}}} | ||
|Description={{{description|{{Description|{{PAGENAME}}}}}}} | |Description={{{description|{{Description|{{PAGENAME}}}}}}} | ||
|Image={{{image|}}} | |||
|Source={{{source|}}} | |||
|Buff={{{buff|}}} | |||
|Duration={{{duration|}}} | |||
|Edibility={{#iferror:{{#expr:{{{edibility|}}}}}||{{{edibility|}}}}} | |||
|Edibility2={{#iferror:{{#expr:{{{edibility|}}}}}|{{{edibility|}}}|}} | |||
|Health={{{health|}}} | |||
|Sellprice={{#iferror:{{#expr:{{{sellprice|}}}}}||{{{sellprice|}}}}} | |||
|Sellprice2={{#iferror:{{#expr:{{{sellprice|}}}}}|{{{sellprice|}}}|}} | |||
|Qiseasoning={{{qiseasoning|}}} | |||
|Recipe={{{recipe|}}} | |Recipe={{{recipe|}}} | ||
| | |Ingredients={{{ingredients|}}} | ||
| | |Produces={{{produces|}}} | ||
}}{{#vardefine:item_id|{{{id|{{ID|{{{English|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}}}}<div id="infoboxborder"> | |||
{| id="infoboxtable" class="infobox{{#vardefineecho:infobox_count|{{#expr:{{#var:infobox_count|0}}+1}}}}" | |||
|colspan="2" id="infoboxheader"{{#if: {{English|{{{name|{{PAGENAME}}}}}}}| class="infoboxheaderzh"|}}|{{{name|{{PAGENAME}}}}} | |||
{{#if: {{English|{{{name|{{PAGENAME}}}}}}}| | |||
<tr> | <tr> | ||
<td colspan="2" id="infoboxheader" | <td colspan="2" id="infoboxheader" class="infoboxheaderen">{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}</td> | ||
</tr> | </tr> | ||
| | |||
}} | |||
|- | |||
|colspan="2" style="padding-bottom: 5px;"|[[File:{{{image|Blank icon.png}}}|center]] | |||
|- | |||
|colspan="2" id="infoboxdetail" style="text-align: center; padding-right: 3px;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | |||
|- | |||
|colspan="2" id="infoboxsection" style="text-align:center; padding-left: 0; padding-right: 0;"|信息 | |||
|- | |||
|id="infoboxsection"|获取渠道 | |||
|id="infoboxdetail"|{{#if: {{{source|}}} | {{{source|}}} | [[烹饪]]}}<!-- | |||
-->{{#if:{{{buff|}}}|<nowiki /> | |||
{{!}}- | |||
{{#if:{{{source|}}}| | {{!}}id="infoboxsection"{{!}}增益效果 | ||
{{!}}id="infoboxdetail"{{!}}{{{buff|}}} | |||
{{!}}- | |||
{{!}}id="infoboxsection"{{!}}增益时长 | |||
{{!}}id="infoboxdetail"{{!}}{{duration|{{{duration|}}}}} | |||
|}}<!-- | |||
-->{{#if:{{{edibility|}}}|<nowiki /> | |||
<tr> | <tr> | ||
<td id="infoboxsection">[[能量]] / [[生命值]]</td> | <td id="infoboxsection">[[能量]] / [[生命值]]</td> | ||
| 第51行: | 第51行: | ||
</td> | </td> | ||
</tr> | </tr> | ||
}}{{#if:{{{price|}}}|<nowiki/> | }}<!-- | ||
-->{{#if:{{{sellprice|}}}|<nowiki /> | |||
{{!}}- | |||
{{!}}id="infoboxsection"{{!}}售出价格 | |||
{{!}}id="infoboxdetail"{{!}}{{#ifeq:{{{qiseasoning|}}}|false|{{price|{{{sellprice|}}}}}|{{Qualityprice|{{#sub:{{{image|Blank icon.png|}}}|0|-4}}|{{{sellprice|}}}|quality=0|dsv=false}}}} | |||
}}<!-- | |||
-->{{#ifeq:{{{qiseasoning|}}}|false| |<nowiki /> | |||
{{!}}- | |||
{{!}}id="infoboxsection" class="no-wrap" style="padding-left: 12px; vertical-align: middle;"{{!}}[[File:Qi Seasoning.png|24px|link=]][[齐氏调味料]] | |||
{{!}}id="infoboxdetail"{{!}} | |||
<table style="padding: 0; margin: 0 0 2px 0; border-spacing: 0;"> | |||
<tr> | <tr> | ||
<td | <td>{{EdibilityGrid|{{#sub:{{{image|Blank icon.png|}}}|0|-4}}|{{{edibility|0}}}|quality=gold|dsv=false}}</td> | ||
<td | <td style="width: 6px;"></td> | ||
<td>{{Qualityprice|{{#sub:{{{image|Blank icon.png|}}}|0|-4}}|{{{sellprice|0}}}|quality=gold|dsv=false}}</td> | |||
</tr> | </tr> | ||
</table> | |||
}} | }} | ||
|- | |||
|colspan="2" id="infoboxsection" style="text-align:center; padding-left: 0; padding-right: 0;"|{{#if:{{#pos:{{{source|}}}|打造}}|配方|食谱}} | |||
|- | |||
|id="infoboxsection" class="no-wrap"|{{#if:{{#pos:{{{source|}}}|打造}}|配方来源|食谱来源}} | |||
|id="infoboxdetail" | {{{recipe|}}} | |||
|- | |||
|id="infoboxsection"|所需原料 | |||
|id="infoboxdetail"|{{{ingredients|}}}<!-- | |||
-->{{#if:{{{produces|}}} |<nowiki /> | |||
{{!}}- | |||
{{!}}id="infoboxsection"{{!}}产出 | |||
{{!}}id="infoboxdetail"{{!}}{{{produces|}}} |}} | |||
{{#if: {{#var:item_id}}| | |||
{{#if:{{#var:item_id}}| | |||
<tr> | <tr> | ||
<td colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0; padding-right: 0;">高级</td> | <td colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0; padding-right: 0;">高级</td> | ||
| 第92行: | 第89行: | ||
<td id="infoboxdetail" class="consolas">{{#var:item_id}}</td> | <td id="infoboxdetail" class="consolas">{{#var:item_id}}</td> | ||
</tr> | </tr> | ||
| | |||
}} | }} | ||
|}</div>{{InfoboxSEO}}{{InfoboxCategory}}</includeonly><noinclude>{{Englishdoc}}{{Clear}} | |||
</div>{{InfoboxSEO}}{{InfoboxCategory}}</includeonly><noinclude>{{ | |||
==示例== | ==示例== | ||
{{ | {{Infobox cooking | ||
|name | |name = 幸运午餐 | ||
| | |image = Lucky Lunch.png | ||
|description = {{Description| | |description = {{Description|Lucky Lunch}} | ||
| | |buff = {{Name|Luck|+3}} | ||
|sellprice | |duration = 11分11秒 | ||
|recipe | |dsvduration = 1111 | ||
|ingredients = {{Name| | |edibility = 40 | ||
| | |sellprice = 250 | ||
|recipe = {{CookingChannel|偶数年春28日}} | |||
|ingredients = {{Name|Sea Cucumber|1}}{{Name|Tortilla|1}}{{Name|Blue Jazz|1}} | |||
}} | }} | ||
</noinclude> | </noinclude> | ||