Template:LootItem: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
| [[{{{Item}}}]] | | [[{{{Item}}}]] | ||
| {{{Quantity|1}}} | | {{{Quantity|1}}} | ||
| class="{{#switch:{{{Rarity|Unknown}}}|Always=table-bg-always|Never=table-bg-fade|#default={{# | | class="{{#switch:{{{Rarity|Unknown}}} | ||
|Always=table-bg-always | |||
|Never=table-bg-fade | |||
|#default={{#ifexpr:{{#pos:{{{Rarity}}}|1/}} > -1 | |||
|{{#ifexpr:{{#sub:{{{Rarity}}}|2}} <= 25 | |||
|table-bg-common | |||
|{{#ifexpr:{{#sub:{{{Rarity}}}|2}} <= 50 | |||
|table-bg-uncommon | |||
|{{#ifexpr:{{#sub:{{{Rarity}}}|2}} <= 100 | |||
|table-bg-rare | |||
|table-bg-veryrare | |||
}} | |||
}} | |||
}} | |||
|table-bg-common | |||
}} | |||
}}" | {{{Rarity|Unknown}}} | |||
| {{{GeneralBuy|?}}} | | {{{GeneralBuy|?}}} | ||
| {{{GeneralSell|?}}} | | {{{GeneralSell|?}}} | ||
|- | |- | ||
</includeonly> | </includeonly> |