Jump to content

Template:ItemDrops: Difference between revisions

From Emps-World Wiki
Kaarel 123 (talk | contribs)
No edit summary
Tulrak (talk | contribs)
No edit summary
 
(103 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<table class="wikitable sortable item-drops" style="text-align:center; margin-left:15px;">
<includeonly>
<tr>
| [[{{{monster|Monster}}}]] || {{{combat|Combat level}}} || {{{quantity|Quantity}}} || {{#ifexpr: {{{rarity}}} = 100
<th>Monster</th>
| data-sort-value={{{rarity}}} style="background-color:lightblue" {{!}} Always
<th>Combat level</th>
| {{#ifexpr: {{{rarity}}} > 10
<th>Quantity</th>
| data-sort-value={{{rarity}}} style="background-color:palegreen" {{!}} Common
<th>Rarity</th>
| {{#ifexpr: {{{rarity}}} > 5
</tr>
| data-sort-value={{{rarity}}} style="background-color:khaki" {{!}} Uncommon
<tr>
| {{#ifexpr: {{{rarity}}} > 1
<td width: 30px; text-align: center;  " colspan="1"> [[{{{monster|Monster}}}]]
| data-sort-value={{{rarity}}} style="background-color:lightsalmon" {{!}} Rare (1 in {{#expr: 1/{{{rarity}}}*100 round 0 }} kills)
</td>
| data-sort-value={{{rarity}}} style="background-color:lightcoral" {{!}} Very rare (1 in {{#expr: 1/{{{rarity}}}*100 round 0 }} kills)
<td width: 30px; text-align: center; " colspan="1"> {{{combat|Combat level}}}
}}
</td>
}}
<td width: 30px; text-align: center; " colspan="1"> {{{quantity|Quantity}}}
}}
</td>
}}
<td {{#switch: rarity
|-
| Always = style="background-color:lightblue";
</includeonly>
| Common = style="background-color:palegreen";
<noinclude>
| Uncommon = style="background-color:khaki";
{{Template:ItemDrops/doc}}
| Rare = style="background-color:lightsalmon";
</noinclude>
| Very rare = style="background-color:lightcoral";
| style="background-color:lightcoral";
}} width: 30px; text-align: center; " colspan="1"> {{{rarity|Rare}}}
</td>
</tr>

Latest revision as of 00:16, 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