Template:LootItem: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
| | | {{#if:{{{IOU|}}} | ||
| {{ItemIcon|{{{Item}}}|size=32px|IOU=1}} | |||
| {{ItemIcon|{{{Item}}}|size=32px}} | |||
}} | |||
| [[{{{Item}}}]] | | [[{{{Item}}}]] | ||
| style="text-align: center;" | {{#if:{{{MaximumQuantity|}}} | | style="text-align: center;" | {{#if:{{{MaximumQuantity|}}} | ||
Line 13: | Line 16: | ||
|Never=table-bg-fade | |Never=table-bg-fade | ||
|#default={{#ifexpr:{{#pos:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|1/}} > -1 | |#default={{#ifexpr:{{#pos:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|1/}} > -1 | ||
|{{#ifexpr:{{# | |{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} >= 5000 | ||
|table-bg- | |table-bg-ultrarare | ||
|{{#ifexpr:{{# | |{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 100 | ||
|table-bg- | |table-bg-common | ||
|{{#ifexpr:{{# | |{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 500 | ||
|table-bg-rare | |table-bg-uncommon | ||
|{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 1000 | |||
|table-bg-rare | |||
|table-bg-veryrare | |||
}} | |||
}} | }} | ||
}} | }} | ||
Line 33: | Line 39: | ||
| {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}} | | {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}} | ||
| {{#ifeq:{{{MinimumQuantity|1}}}|1 | | {{#ifeq:{{{MinimumQuantity|1}}}|1 | ||
| {{formatnum:{{#expr: {{{GeneralBuy| | | {{formatnum:{{#expr: {{{GeneralBuy|1}}} }}|en}} {{CoinIcon|size=22px}} | ||
| <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy| | | {{#ifexpr: {{{GeneralBuy|1}}} > 1 | ||
| <abbr title="{{{GeneralBuy|1}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}</abbr> | |||
| {{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}} | |||
}} {{CoinIcon|size=22px}} | |||
}} | }} | ||
| <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy| | | {{#ifexpr: {{{GeneralBuy|1}}} > 1 | ||
| <abbr title="{{{GeneralBuy|1}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}–{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MaximumQuantity}}} }}|en}}</abbr> | |||
| {{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}–{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MaximumQuantity}}} }}|en}} | |||
}} {{CoinIcon|size=22px}} | |||
}} | }} | ||
| {{#ifeq:{{{MinimumQuantity|1}}}|1 | | {{#ifeq:{{{MinimumQuantity|1}}}|1 | ||
| {{formatnum:{{#expr: {{{GeneralBuy| | | {{formatnum:{{#expr: {{{GeneralBuy|1}}} }}|en}} {{CoinIcon|size=22px}} | ||
| <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy| | | {{#ifexpr: {{{GeneralBuy|1}}} > 1 | ||
| <abbr title="{{{GeneralBuy|1}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}</abbr> | |||
| {{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}} | |||
}} {{CoinIcon|size=22px}} | |||
}} | }} | ||
}} | }} | ||
|-</includeonly> | |-</includeonly> |