Vorlage:Qualityprice: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (portability changes) |
K (sync with english template) |
||
Zeile 55: | Zeile 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--> | ||
Zeile 73: | Zeile 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 vom 30. Oktober 2020, 23:56 Uhr
Details zur Vorlage finden Sie auf der englischsprachigen Dokumentationsseite.
Verwendung
Diese Vorlage kann verwendet werden, indem Sie auf eine relevante Seite folgendes eingeben.
{{Qualityprice}}
Ergibt... Vorlage:ParseInputValues
0G |