Difference between revisions of "Template:Drops list"
Jump to navigation
Jump to search
m |
m |
||
Line 5: | Line 5: | ||
-->{{#ifeq:{{#vardefineecho:fate|{{#explode:{{#var:drop}}|,|2}}}}|?|| [[File:Notorious monster FATE (map icon).png|24px|This item is dropped by the fate {{#var:fate}}.|link={{#var:fate}}]]}}<!-- | -->{{#ifeq:{{#vardefineecho:fate|{{#explode:{{#var:drop}}|,|2}}}}|?|| [[File:Notorious monster FATE (map icon).png|24px|This item is dropped by the fate {{#var:fate}}.|link={{#var:fate}}]]}}<!-- | ||
-->{{#ifeq:{{#explode:{{#var:drop}}|,|1}}|true| [[File:Starred Bag.png|20px|This item is guaranteed to drop.|link=]]}} | -->{{#ifeq:{{#explode:{{#var:drop}}|,|1}}|true| [[File:Starred Bag.png|20px|This item is guaranteed to drop.|link=]]}} | ||
{{!}} | {{!}} {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|, }}|{{#arraymap:{{#show:{{{1}}}|?Has item type}}|, |@@@|[[@@@]]|, }}}}<!-- | ||
-->{{!!}} {{#if:{{#show:{{{1}}}|?Has item rarity}}|{{rarity|{{#show:{{{1}}}|?Has item rarity}}}}|<!-- | |||
-->{{#if:{{{rarity|}}}|{{#arraymap:{{#show:{{{1}}}|?Has subobject|link=none}}|, |@@@|{{#ifeq:{{#show:@@@|?Has item rarity}}|{{ucfirst:{{lc:{{{rarity}}}}}}}|{{#if:{{#varexists:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}||{{rarity|{{#show:@@@|?Has item rarity}}{{#vardefine:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}}}}}}}}}<!-- | |||
-->{{!}}{{#arraymap:{{#show:{{{1}}}|?Has subobject|link=none}}|, |@@@|{{#if:{{#varexists:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}||{{rarity|{{#show:@@@|?Has item rarity}}{{#vardefine:dtr{{{1}}}{{#show:@@@|?Has item rarity}}}}}}}}|, }}}}}}<!-- | |||
-->{{!!}} style="text-align:center;" | {{#if:{{{2|}}}|{{{2}}}|1}}<!-- | |||
{{!}} b | {{!}} b | ||
{{!}} c | {{!}} c |
Revision as of 15:03, 28 September 2018
Usage
Generates a list of drops for a certain creature. Uses {{Drops table header}} for header.
{{Drops list}} {{Drops list|show-levels=}}
Parameters
- Unnamed parameter 1
- Query term. Defaults to
{{PAGENAME}}
. - show-levels
- Optional. Adds a column header for Creature level. Default is hidden if there is only one level for the creature.
Examples
{{Drops list|JustATempPage}}
{{#if:|
Name | Type | Item Level | Rarity | Quantity |
---|