Difference between revisions of "Template:ItemDrops"
From Emps-World Wiki
Line 8: | Line 8: | ||
| {{#ifexpr: {{{rarity}}} > 1 | | {{#ifexpr: {{{rarity}}} > 1 | ||
| data-sort-value={{{rarity}}} style="background-color:lightsalmon" {{!}} Rare (1 in {{#expr: 1/{{{rarity}}}*100 round 0 }} kills) | | data-sort-value={{{rarity}}} style="background-color:lightsalmon" {{!}} Rare (1 in {{#expr: 1/{{{rarity}}}*100 round 0 }} kills) | ||
− | | data-sort-value={{{rarity}}} style="background-color:lightcoral" {{!}} Very rare (1 in {{# | + | | data-sort-value={{{rarity}}} style="background-color:lightcoral" {{!}} Very rare (1 in {{#expr: {{#formatnum: 1/{{{rarity}}}*100 round 0 }} }} kills) |
}} | }} | ||
}} | }} |
Revision as of 00:11, 27 December 2019
This template can be used to display which monsters drop a specific item.
{{ItemDropsTableHead}} {{ItemDrops|monster=Monster|combat=Combat level|quantity=Quantity|rarity=Rarity }} {{TableEnd}}
This line of code displays such table.
Monster | Combat level | Quantity | Rarity |
---|---|---|---|
Monster | Combat level | Quantity | Uncommon |