“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金 |