「Template:Qualityprice」修訂間的差異
跳至導覽
跳至搜尋
小 (sync with english template) |
小 (sync with english template) |
||
第55行: | 第55行: | ||
|{{#ifeq:{{{link|}}}|1||{{{link|{{#ifeq:{{CONTENTLANG}}|en|{{{1|}}}}}}}}}}}}}}}}<!-- | |{{#ifeq:{{{link|}}}|1||{{{link|{{#ifeq:{{CONTENTLANG}}|en|{{{1|}}}}}}}}}}}}}}}}<!-- | ||
// Display sort key (0 for text/non-numeric price so it doesn't mess up table) | // Display sort key (0 for text/non-numeric price so it doesn't mess up table) | ||
− | --><span | + | --><span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true |
− | + | |{{#iferror:{{#expr:{{#arrayprint:$qpprice}}>0}} | |
|0 | |0 | ||
− | |{{#expr:trunc(({{#arrayprint:$qpmult}})*trunc({{#arrayprint:$qpprice}}))}}}} | + | |{{#expr:trunc(({{#arrayprint:$qpmult}})*trunc({{#arrayprint:$qpprice}}))}}}} |
+ | |{{{sortkey}}}}}}}"><!-- | ||
// Start table and loop through each requested quality | // Start table and loop through each requested quality | ||
// Display icon using Quality template and calculate/display price--> | // Display icon using Quality template and calculate/display price--> | ||
第73行: | 第74行: | ||
}}}}{{#arrayprint:$lang_qp_gold}} | }}}}{{#arrayprint:$lang_qp_gold}} | ||
}}}} | }}}} | ||
− | {{!}}}<!-- | + | {{!}}}</span><!-- |
--></includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/> | --></includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/> | ||
{{{{FULLPAGENAME}}/doc}} }}</noinclude> | {{{{FULLPAGENAME}}/doc}} }}</noinclude> |
於 2020年10月31日 (六) 03:40 的修訂
有關此模板的詳細信息,請參閱英語語言文檔頁。
用法
可以通過在相關頁面上輸入以下內容來使用此模板。
{{Qualityprice}}
結果是... Template:ParseInputValues
0金 |