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