Template:LootItem: Difference between revisions

From HighSpell Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>|-
|-
| [[File:{{lc:{{{Item}}}}}.png|32px|link={{{Item}}}]]
| [[File:{{lc:{{{Item}}}}}.png|48px|link={{{Item}}}]]
| [[{{{Item}}}]]
| [[{{{Item}}}]]
| style="text-align: center;" | {{{Quantity|1}}}
| style="text-align: center;" | {{#if:{{{MaximumQuantity|}}}
| style="text-align: center;" class="{{#switch:{{{Rarity|Unknown}}}
  | {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}}
      | {{formatnum:{{{MinimumQuantity}}}|en}}
      | {{formatnum:{{{MinimumQuantity}}}|en}}-{{formatnum:{{{MaximumQuantity}}}|en}}
    }}
  | {{formatnum:{{{MinimumQuantity}}}|en}}
}}
| 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:{{#pos:{{{Rarity}}}|1/}} > -1  
   |#default={{#ifexpr:{{#pos:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|1/}} > -1
     |{{#ifexpr:{{#sub:{{{Rarity}}}|2}} <= 25
     |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|2}} <= 100
       |table-bg-common
       |table-bg-common
       |{{#ifexpr:{{#sub:{{{Rarity}}}|2}} <= 50
       |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|2}} <= 250
         |table-bg-uncommon
         |table-bg-uncommon
         |{{#ifexpr:{{#sub:{{{Rarity}}}|2}} <= 100
         |{{#ifexpr:{{#sub:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|2}} <= 500
           |table-bg-rare
           |table-bg-rare
           |table-bg-veryrare
           |table-bg-veryrare
Line 20: Line 25:
     |table-bg-common
     |table-bg-common
   }}
   }}
}}" | {{{Rarity|Unknown}}}
}}" | {{#ifeq:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|Always
| style="text-align: right;" | {{{GeneralBuy|?}}}
  | Always
| style="text-align: right;" | {{{GeneralSell|?}}}
  | {{#replace:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|1/{{#explode:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|/|1}}|1/{{formatnum:{{#explode:{{#invoke:RarityHandler|normalizeDisplay|{{{Rarity|Unknown}}}}}|/|1}}|en}}}}
|-
}}
</includeonly>
| style="text-align: right;" |  
{{#if:{{{MaximumQuantity|}}}
  | {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}}
      | {{#ifeq:{{{MinimumQuantity|1}}}|1
          | {{formatnum:{{#expr: {{{GeneralBuy|0}}} }}|en}} {{CoinIcon|size=22px}}
          | <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|0}}} * {{{MinimumQuantity}}} }}|en}}</abbr> {{CoinIcon|size=22px}}
        }}
      | <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|0}}} * {{{MinimumQuantity}}} }}|en}}-{{formatnum:{{#expr: {{{GeneralBuy|0}}} * {{{MaximumQuantity}}} }}|en}}</abbr> {{CoinIcon|size=22px}}
    }}
  | {{#ifeq:{{{MinimumQuantity|1}}}|1
      | {{formatnum:{{#expr: {{{GeneralBuy|0}}} }}|en}} {{CoinIcon|size=22px}}
      | <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|0}}} * {{{MinimumQuantity}}} }}|en}}</abbr> {{CoinIcon|size=22px}}
    }}
}}
|-</includeonly>

Revision as of 08:37, 19 May 2025