"틀:Qualityprice"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
Nebulous Maestress (토론 | 기여) 잔글 (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일 (화) 23:00 판
이 틀 대한 자세한 내용은 영어 설명서 페이지를 참조하십시오.
용도
이 틀은 관련된 페이지에 다음과 같이 입력하여 사용할 수 있습니다:
{{Qualityprice}}
결과... 틀:ParseInputValues
0골드 |