|
|
| (未显示2个用户的19个中间版本) |
| 第1行: |
第1行: |
| <includeonly>{{#set: | | <includeonly><div class="infoboxborder"> |
| |Name={{{name|{{PAGENAME}}}}}
| | <table class="infoboxtable"> |
| |Eng={{English|{{{name|{{PAGENAME}}}}}}}
| | <tr class="infoboxtitle"> |
| |ID={{ID|{{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> |
| |Description={{{description|{{Description|{{PAGENAME}}}}}}}
| | </tr>{{#if:{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}|<tr class="infoboxtitle"><td colspan="2" class="infoboxheader">{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}</td></tr>|}} |
| |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|}}}
| |
| |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" class="infoboxheaderen">{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}</td> | | <td colspan="2">[[File:{{{eng|Blank icon}}}.png|link=]]</td> |
| </tr> | | </tr> |
| |
| | <tr> |
| }}
| | <td colspan="2" class="infoboxdetail">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{{name|{{PAGENAME}}}}}}}}}</td> |
| |-
| | </tr> |
| |colspan="2" style="padding-bottom: 5px;"|[[File:{{{image|Blank icon.png}}}|center]]
| | <tr> |
| |-
| | <td colspan="2" class="infoboxsection">信息</td> |
| |colspan="2" id="infoboxdetail" style="text-align: center; padding-right: 3px;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}
| | </tr> |
| |-
| | <tr> |
| |colspan="2" id="infoboxsection" style="text-align:center; padding-left: 0; padding-right: 0;"|信息
| | <td class="infoboxsection">来源</td> |
| |-
| | <td class="infoboxdetail">[[烹饪]]{{#if:{{{source|}}}| • {{{source|}}}}}</td> |
| |id="infoboxsection"|获取渠道
| | </tr> |
| |id="infoboxdetail"|{{#if: {{{source|}}} | {{{source|}}} | [[烹饪]]}}<!--
| | {{#if:{{{buff|}}}|<nowiki /> |
| -->{{#if:{{{buff|}}}|<nowiki />
| |
| {{!}}-
| |
| {{!}}id="infoboxsection"{{!}}增益效果
| |
| {{!}}id="infoboxdetail"{{!}}{{{buff|}}}
| |
| {{!}}-
| |
| {{!}}id="infoboxsection"{{!}}增益时长
| |
| {{!}}id="infoboxdetail"{{!}}{{duration|{{{duration|}}}}}
| |
| |}}<!--
| |
| -->{{#if:{{{edibility|}}}|<nowiki />
| |
| <tr> | | <tr> |
| <td id="infoboxsection">[[能量]] / [[生命值]]</td> | | <td class="infoboxsection">增益效果</td> |
| <td id="infoboxdetail">{{#if:{{{health|}}} | | <td class="infoboxdetail">{{{buff|}}}</td> |
| |{{EdibilityGrid|{{#sub:{{{image|Blank icon.png|}}}|0|-4}}|{{{edibility|}}}|quality=0|dsv=false|health={{{health|}}}}}
| |
| |{{EdibilityGrid|{{#sub:{{{image|Blank icon.png|}}}|0|-4}}|{{{edibility|}}}|quality=0|dsv=false}} }}
| |
| </td>
| |
| </tr> | | </tr> |
| }}<!--
| |
| -->{{#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>{{EdibilityGrid|{{#sub:{{{image|Blank icon.png|}}}|0|-4}}|{{{edibility|0}}}|quality=gold|dsv=false}}</td> | | <td class="infoboxsection">持续时间</td> |
| <td style="width: 6px;"></td> | | <td class="infoboxdetail">{{Duration|{{{duration|}}}}}{{#if:{{{duration2|}}}|{{Duration|{{{duration2|}}}}}}}</td> |
| <td>{{Qualityprice|{{#sub:{{{image|Blank icon.png|}}}|0|-4}}|{{{sellprice|0}}}|quality=gold|dsv=false}}</td>
| |
| </tr> | | </tr> |
| </table>
| | }}{{#if:{{{edibility|}}}|<nowiki /> |
| }}
| |
| |-
| |
| |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}}|
| |
| <tr> | | <tr> |
| <td colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0; padding-right: 0;">高级</td> | | <td class="infoboxsection">能量 / 生命值</td> |
| | <td class="infoboxdetail">{{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|quality=0|dsv=false}}</td> |
| </tr> | | </tr> |
| <tr> | | }}{{#if:{{{sellprice|}}}|<nowiki /> |
| <td id="infoboxsection">物品编号</td>
| | <tr> |
| <td id="infoboxdetail" class="consolas">{{#var:item_id}}</td>
| | <td class="infoboxsection">售出价格</td> |
| </tr> | | <td class="infoboxdetail">{{Price|{{{sellprice|}}}}}</td> |
| |
| | </tr> |
| | <tr> |
| | <td class="infoboxsection no-wrap" style="vertical-align: middle;">[[File:Qi Seasoning.png|24px|link=]][[s:齐氏调味料|齐氏调味料]]</td> |
| | <td class="infoboxdetail"> |
| | <table style="padding: 0; margin: 0 0 2px 0; border-spacing: 0;"> |
| | <tr> |
| | <td>{{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|quality=gold|dsv=false}}</td> |
| | <td style="width: 5px;"></td> |
| | <td>{{Qualityprice|{{{eng|}}}|{{{sellprice|}}}|quality=gold|dsv=false}}</td> |
| | </tr> |
| | </table> |
| | </td> |
| | </tr> |
| }} | | }} |
| |}</div>{{InfoboxSEO}}{{InfoboxCategory}}</includeonly><noinclude>{{Englishdoc}}{{Clear}} | | <tr> |
| | <td colspan="2" class="infoboxsection">食谱</td> |
| | </tr> |
| | <tr> |
| | <td class="infoboxsection no-wrap">食谱来源</td> |
| | <td class="infoboxdetail">{{{recipe|}}}</td> |
| | </tr> |
| | <tr> |
| | <td class="infoboxsection">所需原料</td> |
| | <td class="infoboxdetail">{{{ingredients|}}}</td> |
| | </tr> |
| | {{#if:{{{produces|}}} |<nowiki /> |
| | <tr> |
| | <td class="infoboxsection">产出</td> |
| | <td class="infoboxdetail">{{{produces|}}}</td> |
| | </tr> |
| | }}{{Infobox utils|id|name={{{name|}}}|eng={{{eng|}}}|id={{{id|}}}}} |
| | </table> |
| | </div>{{InfoboxSEO}}</includeonly> |
| | <noinclude>{{Clear}} |
| ==示例== | | ==示例== |
| {{Infobox cooking | | {{Infobox cooking |
| |name = 幸运午餐 | | |name = 香酥面糊炸鲳鱼 |
| |image = Lucky Lunch.png | | |eng = Glazed Butterfish |
| |description = {{Description|Lucky Lunch}} | | |buff = {{Name|Fishing|+2}}{{Name|Luck|+2}} |
| |buff = {{Name|Luck|+3}}
| | |duration = 5分36秒 |
| |duration = 11分11秒 | | |dsvduration = 0536 |
| |dsvduration = 1111 | | |sellprice = 800 |
| |edibility = 40
| | |recipe = {{NPC|Gus|在[[s:星之果实酒吧]]花{{Price|4000}}购买 需要 7+ [[File:HeartIconLarge.png|16px|link=]]}} |
| |sellprice = 250 | | |ingredients = <ul><li>{{Name|Butterfish|1}}</li><li>{{Name|Wheat Flour|1}}</li><li>{{Name|Oil|1}}</li></ul> |
| |recipe = {{CookingChannel|偶数年春28日}} | | |edibility = 80 |
| |ingredients = {{Name|Sea Cucumber|1}}{{Name|Tortilla|1}}{{Name|Blue Jazz|1}} | | }}</noinclude> |
| }} | |
| </noinclude> | |