「テンプレート:Qualityprice」の版間の差分
ナビゲーションに移動
検索に移動
細 (sync with english template) |
Margotbean (トーク | 投稿記録) (fix for aged roe) |
||
29行目: | 29行目: | ||
|#default = {{#iferror:{{#expr:{{{prof_mult}}}*1}}|1|{{{prof_mult}}}}}}}}}<!-- | |#default = {{#iferror:{{#expr:{{{prof_mult}}}*1}}|1|{{{prof_mult}}}}}}}}}<!-- | ||
// Set price to {{{2}}} or derive from srcprice if {{{auto}}}, srcprice is valid, and item name is recognized | // Set price to {{{2}}} or derive from srcprice if {{{auto}}}, srcprice is valid, and item name is recognized | ||
− | // (extra complication for roe: allow [color]_roe to be recognized | + | // (extra complication for roe: allow [color]_roe / [color]_aged_roe to be recognized) |
-->{{#arraydefine:$qpprice | -->{{#arraydefine:$qpprice | ||
|{{#ifexpr:{{#if:{{{auto|}}}|1|0}} and {{#if:{{{srcprice|}}}|1|0}} and {{#iferror:{{#expr:{{{srcprice}}}*1}}|0|1}} | |{{#ifexpr:{{#if:{{{auto|}}}|1|0}} and {{#if:{{{srcprice|}}}|1|0}} and {{#iferror:{{#expr:{{{srcprice}}}*1}}|0|1}} | ||
− | |{{# | + | |{{#ifeq:{{lc:{{#sub:{{{1|}}}|-3|3}}}}|roe |
− | + | |{{#ifeq:{{lc:{{#sub:{{{1|}}}|-8|4}}}}|aged | |
+ | |{{#expr:2*trunc(30+trunc({{{srcprice}}})/2)}}{{#arraydefine:$qpqual|Normal}} | ||
+ | |{{#expr:30+trunc({{{srcprice}}})/2}}{{#arraydefine:$qpqual|Normal}}}} | ||
|{{#switch:{{lc:{{{1|}}}}}| | |{{#switch:{{lc:{{{1|}}}}}| | ||
|wine = {{#expr:trunc({{{srcprice}}})*3}} | |wine = {{#expr:trunc({{{srcprice}}})*3}} |
2020年11月10日 (火) 22:58時点における版
このテンプレートの詳細については、英語のドキュメントページを参照してください。
使用法
このテンプレートは、関連するページに以下を入力することによって使用できます。
{{Qualityprice}}
結果は... テンプレート:ParseInputValues
0g |