Template:MobsThatDrop: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
FrozenEarth (talk | contribs) (changed "no results found" message) |
||
(19 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# |
<includeonly>{{#invoke:CargoQuery|main |
||
|tables=MobDrops |
|||
|fields=CONCAT("[[",_pageName,"{{!}}",mob,"]]")=Mob |
|||
|fields=_pageName=link,mob,is_guaranteed=guaranteed |
|||
|where=item="{{{1}}}" |
|||
|where={{#fornumargs: number |
|||
⚫ | |||
| value |
|||
| {{#ifexpr: {{#var:number}} != 1 | OR }} item LIKE "{{#var:value}}" |
|||
}} |
|||
⚫ | |||
|intro={{{intro|The following mobs can drop {{#fornumargs: number |
|||
| value |
|||
| {{#ifexpr: {{#var:number}} != 1 |, }} {{#var:value}} |
|||
}}:}}}<ul> |
|||
|outro=</ul> |
|||
|default=Failed to load mobs! Let a [[Wynncraft_Wiki:Community_portal|community administrator]] know about this issue.|template=MobsThatDrop/display |
|||
|named args=yes |
|||
|limit={{{limit|20}}} |
|||
}}</includeonly> |
}}</includeonly> |
||
< |
<noinclude> |
||
{{Doc}} |
|||
</noinclude> |
Latest revision as of 02:04, 28 October 2022
Description
Displays an unordered list of all the mobs that drop the specified ingredient.
Arguments
{{MobsThatDrop
| # = *
| intro =
| limit =
}}
Note: The #
symbol represets an infinite number of unnamed arguments. (Minimum of 1)
Argument | Description | Default Value |
---|---|---|
# *
|
The items to search for | |
intro
|
The intro text to use before the list | The following mobs drop <item_name>: |
limit
|
Sets the maximum amount of results to show | 20 |
Examples
{{MobsThatDrop|Pink Wool}}
Produces:
The following mobs can drop Pink Wool:- Pink Sheep of Greatness (Guaranteed)
- Sheep
{{MobsThatDrop|Rotten Flesh|Zombie Eye}}
Produces:
The following mobs can drop Rotten Flesh, Zombie Eye:- Abnormal Miner
- Drenched Zombie
- Greedy Zombie
- Lion Trainer
- Miner Chef
- Miner Zombie (Lv. 7)
- Miner Zombie (Lv. 8)
- Miner Zombie (Lv. 9)
- Miner Zombie Patron
- Roaming Zombie
- Weak Zombie
- Zombie (Lv. 10)
- Zombie (Lv. 13)
- Zombie (Lv. 15)
- Zombie (Lv. 17)
- Zombie (Lv. 25)
- Zombie (Lv. 3)
- Zombie (Lv. 5)
- Zombie (Lv. 7)
- Zombie Berserker
{{MobsThatDrop|Unobtainium}}
Produces: Failed to load mobs! Let a community administrator know about this issue.
The above documentation is transcluded from Template:MobsThatDrop/doc. (edit | history)
Displays a list of all known mobs that drop the supplied item
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item Name | 1 | The name of the item to search
| String | required |
Intro Text | intro | The intro text to use before the list.
| String | optional |
Result Limit | limit | Sets the maximum amount of results to show
| Number | optional |