Template:MobsThatDrop: Difference between revisions

From Wynncraft Wiki
Jump to navigation Jump to search
mNo edit summary
(changed "no results found" message)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#cargo_query:tables=MobDrops
<includeonly>{{#invoke:CargoQuery|main
|tables=MobDrops
|fields=CONCAT("[[",_pageName,"{{!}}",mob,"]]")=Mob
|fields=_pageName=link,mob,is_guaranteed=guaranteed
|where=item="{{{1}}}"
|where={{#fornumargs: number
|format=ul
| value
| {{#ifexpr: {{#var:number}} != 1 | OR }} item LIKE "{{#var:value}}"
}}
|format=template
|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>
<noinclude>
{{Doc}}
</noinclude>

Latest revision as of 02:04, 28 October 2022


Template-info.png Documentation

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:


{{MobsThatDrop|Rotten Flesh|Zombie Eye}}

Produces:

The following mobs can drop Rotten Flesh, Zombie Eye:More results...


{{MobsThatDrop|Unobtainium}}

Produces: Failed to load mobs! Let a community administrator know about this issue.

Displays a list of all known mobs that drop the supplied item

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Item Name1

The name of the item to search

Example
Rotten Flesh
Stringrequired
Intro Textintro

The intro text to use before the list.

Default
The following mobs can drop <item>:
Example
The following mobs can drop Rotten Flesh:
Stringoptional
Result Limitlimit

Sets the maximum amount of results to show

Default
20
Example
20
Numberoptional