Template:LootItem: Difference between revisions

No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>
<includeonly>
|-
|-
| [[File:{{lc:{{{Item}}}}}.png|32px|link={{{Item}}}]]
| [[File:{{lc:{{{1}}}}}.png|32px|link={{{1}}}]]
| [[{{{Item}}}]]
| [[{{{1}}}]]
| style="text-align: center;" | {{{Quantity|1}}}
| style="text-align: center;" | {{{2|1}}}
| style="text-align: center;" class="{{#switch:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}
| style="text-align: center;" class="{{#switch:{{#invoke:RarityHandler|getCleanValue|{{{3|Unknown}}}}}
   |Always=table-bg-always
   |Always=table-bg-always
   |Never=table-bg-fade
   |Never=table-bg-fade
   |#default={{#ifexpr:{{#pos:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|1/}} > -1  
   |#default={{#ifexpr:{{#pos:{{#invoke:RarityHandler|getCleanValue|{{{3|Unknown}}}}}|1/}} > -1  
     |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|2}} <= 25  
     |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{3|Unknown}}}}}|2}} <= 25  
       |table-bg-common
       |table-bg-common
       |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|2}} <= 50  
       |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{3|Unknown}}}}}|2}} <= 50  
         |table-bg-uncommon
         |table-bg-uncommon
         |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|2}} <= 100  
         |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{3|Unknown}}}}}|2}} <= 100  
           |table-bg-rare
           |table-bg-rare
           |table-bg-veryrare
           |table-bg-veryrare
Line 20: Line 20:
     |table-bg-common
     |table-bg-common
   }}
   }}
}}" | {{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}
}}" | {{#invoke:RarityHandler|normalizeDisplay|{{{3|Unknown}}}}}
| style="text-align: right;" | {{{GeneralSell|?}}} {{CoinIcon|size=22px}}
| style="text-align: right;" | {{{6|?}}} {{CoinIcon|size=22px}}
| style="text-align: right;" | {{{GeneralBuy|?}}} {{CoinIcon|size=22px}}
| style="text-align: right;" | {{{5|?}}} {{CoinIcon|size=22px}}
|-
|-
</includeonly>
</includeonly>