Still landing on the old Fandom wiki? Install the HighSpell Wiki Redirector browser extension to automatically redirect all
highspell.fandom.com
links to highspell.wiki
. Works on both Firefox and Chrome, and is open-source. → Learn more and install it now!Template:LootItem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Manual revert |
||
(58 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}}} | ||
Line 12: | Line 15: | ||
|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|{{{Rarity|Unknown}}}}}|1/}} > -1 | ||
|{{#ifexpr:{{# | |{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} >= 5000 | ||
|table-bg- | |table-bg-ultrarare | ||
|{{#ifexpr:{{# | |{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 100 | ||
|table-bg- | |table-bg-common | ||
|{{#ifexpr:{{# | |{{#ifexpr:{{#explode:{{#invoke:RarityHandler|getCleanValue|{{{Rarity|Unknown}}}}}|/|1}} <= 500 | ||
|table-bg-rare | |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;" | | | style="text-align: right;" | | ||
{{#if:{{{MaximumQuantity|}}} | {{#if:{{{MaximumQuantity|}}} | ||
| {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}} | | {{#ifeq:{{{MinimumQuantity}}}|{{{MaximumQuantity}}} | ||
| {{#ifeq:{{{MinimumQuantity|1}}}|1 | | {{#ifeq:{{{MinimumQuantity|1}}}|1 | ||
| {{formatnum:{{#expr: {{{GeneralBuy| | | {{formatnum:{{#expr: {{{GeneralBuy|1}}} }}|en}} {{CoinIcon|size=22px}} | ||
| <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy| | | {{#ifexpr: {{{GeneralBuy|1}}} > 1 | ||
| <abbr title="{{{GeneralBuy|1}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}</abbr> | |||
| {{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}} | |||
}} {{CoinIcon|size=22px}} | |||
}} | }} | ||
| <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy| | | {{#ifexpr: {{{GeneralBuy|1}}} > 1 | ||
| <abbr title="{{{GeneralBuy|1}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}–{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MaximumQuantity}}} }}|en}}</abbr> | |||
| {{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}–{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MaximumQuantity}}} }}|en}} | |||
}} {{CoinIcon|size=22px}} | |||
}} | }} | ||
| {{#ifeq:{{{MinimumQuantity|1}}}|1 | | {{#ifeq:{{{MinimumQuantity|1}}}|1 | ||
| {{formatnum:{{#expr: {{{GeneralBuy| | | {{formatnum:{{#expr: {{{GeneralBuy|1}}} }}|en}} {{CoinIcon|size=22px}} | ||
| <abbr title="{{{GeneralBuy}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy| | | {{#ifexpr: {{{GeneralBuy|1}}} > 1 | ||
| <abbr title="{{{GeneralBuy|1}}} coins each">{{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}}</abbr> | |||
| {{formatnum:{{#expr: {{{GeneralBuy|1}}} * {{{MinimumQuantity}}} }}|en}} | |||
}} {{CoinIcon|size=22px}} | |||
}} | }} | ||
}} | }} | ||
|-</includeonly> | |-</includeonly> |