Template:LootItem: Difference between revisions
No edit summary |
No edit summary |
||
(64 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
| | | {{#if:{{{IOU|}}} | ||
| [[{{{Item}}}]] | | {{ItemIcon|{{{Item}}}|size=32px|IOU=1}} | ||
| {{ItemIcon|{{{Item}}}|size=32px}} | |||
}} | |||
| [[{{{Item}}}]]{{#if:{{{IOU|}}}| {{IOU}}}} | |||
| style="text-align: center;" | {{#if:{{{MaximumQuantity|}}} | | style="text-align: center;" | {{#if:{{{MaximumQuantity|}}} | ||
| {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}} | | {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}} | ||
| {{{MinimumQuantity}}} | | {{formatnum:{{{MinimumQuantity}}}|en}} | ||
| {{{MinimumQuantity}}}-{{{MaximumQuantity}}} | | {{formatnum:{{{MinimumQuantity}}}|en}}-{{formatnum:{{{MaximumQuantity}}}|en}} | ||
}} | }} | ||
| {{{MinimumQuantity}}} | | {{formatnum:{{{MinimumQuantity}}}|en}} | ||
}} | }} | ||
| style="text-align: center;" class="{{#switch:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}} | | style="text-align: center;" class="{{#switch:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}} | ||
|Always=table-bg-always | |Always=table-bg-always | ||
|Never=table-bg-fade | |Never=table-bg-fade | ||
|#default={{#ifexpr:{{# | |#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 | |||
}} | |||
}} | }} | ||
}} | }} | ||
Line 25: | Line 31: | ||
|table-bg-common | |table-bg-common | ||
}} | }} | ||
}}" | {{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}} | }}" | {{#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> | |-</includeonly> |