Template:LootItem: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
(95 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>|- | ||
|- | | {{#if:{{{IOU|}}} | ||
| | | {{ItemIcon|{{{Item}}}|size=32px|IOU=1}} | ||
| [[{{{Item}}}]] | | {{ItemIcon|{{{Item}}}|size=32px}} | ||
| {{{ | }} | ||
| class="{{#switch:{{{Rarity|Unknown}}}|Always=table-bg-always|Never=table-bg-fade|#default={{#if:{{# | | [[{{{Item}}}]]{{#if:{{{IOU|}}}| {{IOU}}}} | ||
| {{{ | | style="text-align: center;" | {{#if:{{{MaximumQuantity|}}} | ||
| {{{ | | {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}} | ||
|- | | {{formatnum:{{{MinimumQuantity}}}|en}} | ||
</includeonly> | | {{formatnum:{{{MinimumQuantity}}}|en}}-{{formatnum:{{{MaximumQuantity}}}|en}} | ||
}} | |||
| {{formatnum:{{{MinimumQuantity}}}|en}} | |||
}} | |||
| style="text-align: center;" class="{{#switch:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}} | |||
|Always=table-bg-always | |||
|Never=table-bg-fade | |||
|#default={{#if:{{#invoke:RarityHandler|hasSlash|{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}}} | |||
|{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} >= 5000 | |||
|table-bg-ultrarare | |||
|{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 100 | |||
|table-bg-common | |||
|{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 500 | |||
|table-bg-uncommon | |||
|{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 1000 | |||
|table-bg-rare | |||
|table-bg-veryrare | |||
}} | |||
}} | |||
}} | |||
}} | |||
|table-bg-common | |||
}} | |||
}}" | {{#ifeq:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|Always | |||
| Always | |||
| {{#replace:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|1/{{#explode:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|/|1}}|1/{{formatnum:{{#explode:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|/|1}}|en}}}} | |||
}} | |||
| style="text-align: right;" | | |||
{{#invoke:PriceCalculator|renderPrice | |||
|price={{{Price|1}}} | |||
|min={{{MinimumQuantity|1}}} | |||
|max={{{MaximumQuantity|}}} | |||
|type=sell | |||
}} | |||
|-</includeonly> |