「Template:RecipeRow」修訂間的差異
跳至導覽
跳至搜尋
Margotbean(對話 | 貢獻) 小 (文本替换 - 替换“{{englishdoc}}”为“{{Englishdoc}}”) |
Margotbean(對話 | 貢獻) (+data sort values for buffs) |
||
第2行: | 第2行: | ||
|- | |- | ||
|[[File:{{{image|}}}|center]] | |[[File:{{{image|}}}|center]] | ||
− | |{{#if:{{{name|}}} | class="no-wrap"{{!}} [[{{{name|}}}]] | | + | |{{#if:{{{name|}}} | class="no-wrap"{{!}} [[{{{name|}}}]] | }} |
− | |style="min-width: 100px;"|{{{description|}}} | + | |style="min-width: 100px;"|{{#if:{{{description|}}} | {{{description|}}} | {{Description|{{{name|}}}}} }} |
|{{{ingredients|}}} | |{{{ingredients|}}} | ||
{{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}" class="no-wrap"{{!}}[[File:Energy.png|24px|link=]] {{#expr:ceil({{{edibility|}}}*2.5)}}<br />[[File:Health.png|24px|link=]] {{#if:{{{health|}}}|{{{health|}}}|{{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}} }}| {{!}}style="text-align: center;"{{!}}不适用}} | {{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}" class="no-wrap"{{!}}[[File:Energy.png|24px|link=]] {{#expr:ceil({{{edibility|}}}*2.5)}}<br />[[File:Health.png|24px|link=]] {{#if:{{{health|}}}|{{{health|}}}|{{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}} }}| {{!}}style="text-align: center;"{{!}}不适用}} | ||
− | {{#if:{{{buff|}}} | {{!}}{{{buff|}}} | {{!}}style="text-align: center;"{{!}}不适用}} | + | {{#if:{{{buff|}}} | {{!}}{{{buff|}}} | {{!}}data-sort-value="Z" style="text-align: center;"{{!}}不适用}} |
− | {{#if:{{{duration|}}} | {{!}}{{#if:{{{dsvduration|}}}|data-sort-value="{{{dsvduration|}}}"{{!}}|}} {{Duration|{{{duration|}}}}} | {{!}}style="text-align: center;"{{!}}不适用}} | + | {{#if:{{{duration|}}} | {{!}}{{#if:{{{dsvduration|}}}|data-sort-value="{{{dsvduration|}}}"{{!}}|}} {{Duration|{{{duration|}}}}} | {{!}}data-sort-value="0" style="text-align: center;"{{!}}不适用}} |
|{{{recipe|}}} | |{{{recipe|}}} | ||
|data-sort-value="{{padleft:{{{sellprice|}}}|4}}"{{!}}{{Price|{{{sellprice|}}}}} | |data-sort-value="{{padleft:{{{sellprice|}}}|4}}"{{!}}{{Price|{{{sellprice|}}}}} | ||
− | |-</includeonly> | + | |-</includeonly><noinclude>{{Englishdoc}}</noinclude> |
− | <noinclude>{{Englishdoc}}</noinclude> |
於 2022年12月20日 (二) 03:04 的修訂
有關此模板的詳細信息,請參閱英語語言文檔頁。
用法
可以通過在相關頁面上輸入以下內容來使用此模板。
{{RecipeRow}}
結果是...
|-
|[[File:|center]]
|
|style="min-width: 100px;"|
|
|style="text-align: center;"|不適用
|data-sort-value="Z" style="text-align: center;"|不適用
|data-sort-value="0" style="text-align: center;"|不適用
|
|data-sort-value="0000"|金
|-