Vorlage:Qualityprice: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (sync with english template) |
(copy fix for off-by-one error from EN template; restore lower-case g for consistency with rest of wiki) |
||
Zeile 2: | Zeile 2: | ||
// Define letter/symbol used for gold in current language | // Define letter/symbol used for gold in current language | ||
− | -->{{#arraydefine:$lang_qp_gold| | + | -->{{#arraydefine:$lang_qp_gold|g}}<!-- |
// Items that get autofilled by Infobox and therefore need to be autotranslated to fill in link | // Items that get autofilled by Infobox and therefore need to be autotranslated to fill in link | ||
// (other items are tested below, but the tested values should be image names which are same on all sites) | // (other items are tested below, but the tested values should be image names which are same on all sites) | ||
Zeile 71: | Zeile 71: | ||
|{{Italics|{{{2|}}}}} | |{{Italics|{{{2|}}}}} | ||
|{{formatnum:{{#expr: | |{{formatnum:{{#expr: | ||
− | trunc( ({{#arrayprint:$qpmult}}) * | + | trunc (trunc( ({{#arrayprint:$qpmult}}) * 10 * |
trunc ( {{#switch:@qual@|Silver=1.25|Gold=1.5|Iridium=2|Normal|#default=1}} * | trunc ( {{#switch:@qual@|Silver=1.25|Gold=1.5|Iridium=2|Normal|#default=1}} * | ||
− | trunc({{#arrayprint:$qpprice}}) ) ) | + | trunc({{#arrayprint:$qpprice}}) ) ) / 10) |
}}}}{{#arrayprint:$lang_qp_gold}} | }}}}{{#arrayprint:$lang_qp_gold}} | ||
}}}} | }}}} |
Version vom 6. Mai 2021, 00:33 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 |