Jump to content

Template:MonsterDrops: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Repurpose as drops display template instead of Cargo declaration (via update-page on MediaWiki MCP Server)
Dane (talk | contribs)
Switch to Lua module (via update-page on MediaWiki MCP Server)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable"
<includeonly>{{#invoke:MonsterDrops|display}}</includeonly><noinclude>
|-
! !! Item !! Quantity !! Rarity
{{#cargo_query:tables=ItemSource
|where=source="{{PAGENAME}}" AND source_type="Monster"
|fields=item,rarity,min,max
|format=template
|template=MonsterDropRow
|named args=yes
}}
|}</includeonly><noinclude>
Displays a table of items dropped by this monster.
Displays a table of items dropped by this monster.
== Usage ==
<pre>{{MonsterDrops}}</pre>
Uses the current page name as the source. Queries ItemSource table and looks up sprites from Items table.
[[Category:Utility templates]]
[[Category:Utility templates]]
</noinclude>
</noinclude>

Latest revision as of 00:48, 28 January 2026

Displays a table of items dropped by this monster.

{{MonsterDrops}}

Uses the current page name as the source. Queries ItemSource table and looks up sprites from Items table.