Template:MobsThatDrop: Difference between revisions

From Wynncraft Wiki
Jump to navigation Jump to search
mNo edit summary
Aws40404 (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#cargo_query:tables=MobDrops
<includeonly>{{#cargo_query:tables=MobDrops
|fields=CONCAT("[[",_pageName,"{{!}}",mob,"]]")=Mob
|fields=CONCAT("[[",{{{mob|_pageName}}},"{{!}}",mob,"]]")=Mob
|where=item="{{{1}}}"
|where=item="{{{1}}}"
|format=ul
|format=ul
}}</includeonly>
}}</includeonly><noinclude>{{Doc}}</noinclude>
<noinclude>{{Doc}}</noinclude>

Revision as of 22:48, 12 July 2020

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:

{{MobsThatDrop|Rotten Flesh|Zombie Eye}}

Produces:

{{MobsThatDrop|Unobtainium}}

Produces: No results

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