Шаблон: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>

Версия 03:09, 31 октября 2020

Для получения подробной информации о данном шаблоне обратитесь к документации на английском языке.

Применение

Этот шаблон можно использовать путем ввода следующего на соответствующей странице:

{{Qualityprice}}

Результаты в ... Шаблон:ParseInputValues

0 з.