“Template:Qualityprice”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
(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 class="sortkey" style="display:none;">{{#iferror:
+
--><span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true
   {{#expr:{{#arrayprint:$qpprice}}>0}}
+
   |{{#iferror:{{#expr:{{#arrayprint:$qpprice}}>0}}
 
      |0
 
      |0
      |{{#expr:trunc(({{#arrayprint:$qpmult}})*trunc({{#arrayprint:$qpprice}}))}}}}</span><!--
+
      |{{#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金