Différences entre versions de « Modèle:Qualityprice »

De Stardew Valley Wiki
Sauter à la navigation Sauter à la recherche
m (sync with english template)
m (sync with english template)
Ligne 55 : Ligne 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-->
Ligne 73 : Ligne 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>

Version du 31 octobre 2020 à 00:25

Voir la page de documentation en anglais pour plus d'informations sur ce modèle.

Utiliser

Ce modèle peut être utilisé en entrant ce qui suit dans une page pertinente.

{{Qualityprice}}

Produit ... Modèle:ParseInputValues

0po