Difference between revisions of "Template:Drops list"
Jump to navigation
Jump to search
m |
m |
||
Line 7: | Line 7: | ||
{{!}} {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|, }}|{{#arraymap:{{#show:{{#var:item}}|?Has item type}}|, |@@@|[[@@@]]|, }}}} | {{!}} {{#if:{{{type|}}}|{{#arraymap:{{{type}}}|, |@@@|[[{{ucfirst:{{lc:@@@}}}}]]|, }}|{{#arraymap:{{#show:{{#var:item}}|?Has item type}}|, |@@@|[[@@@]]|, }}}} | ||
{{!}} {{#if:{{#show:{{#var:item}}|?Has item rarity}}|{{rarity|{{#show:{{#var:item}}|?Has item rarity}}}}}} | {{!}} {{#if:{{#show:{{#var:item}}|?Has item rarity}}|{{rarity|{{#show:{{#var:item}}|?Has item rarity}}}}}} | ||
{{!}} {{#explode:{{#var:drop}}|,|3}}{{#ifeq:{{#vardefineecho:max_qty|{{#explode:{{#var:drop}}|,| | {{!}} {{#explode:{{#var:drop}}|,|3}}{{#ifeq:{{#vardefineecho:max_qty|{{#explode:{{#var:drop}}|,|4}}}}|?||-{{#var:max_qty}}}} | ||
|\n}} | |\n}} | ||
|}<!-- | |}<!-- |
Revision as of 15:14, 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}}
}