Jump to content

Template:LootEntry: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Created page with "<!-- Template:LootEntry --> <includeonly>{{#cargo_store:_table=MonsterDrops |monster={{{monster|{{PAGENAME}}}}} |item={{{1}}} |rarity={{{rarity|common}}} }}[[{{{1}}}]]</includeonly><noinclude> Stores a loot drop relationship and links to the item. Usage: <code>{{LootEntry|Item Name|rarity=rare}}</code> Category:Utility templates </noinclude>"
 
Dane (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:LootEntry -->
<!-- Template:LootEntry -->
<includeonly>{{#cargo_store:_table=MonsterDrops
<includeonly>{{#cargo_store:_table=ItemSource
|monster={{{monster|{{PAGENAME}}}}}
|item={{{1}}}
|item={{{1}}}
|source={{{monster|{{PAGENAME}}}}}
|source_type=Monster
|rarity={{{rarity|common}}}
|rarity={{{rarity|common}}}
}}[[{{{1}}}]]</includeonly><noinclude>
|min={{{min|1}}}
Stores a loot drop relationship and links to the item.
|max={{{max|}}}
}}</includeonly>
<noinclude>
{{#cargo_attach:_table=ItemSource}}
Stores item drop data to the ItemSource Cargo table. Does not produce visible output.
 
== Usage ==
<pre>
{{LootEntry|Item Name|rarity=common|min=1|max=2}}
{{LootEntry|Item Name|rarity=rare}}
</pre>


Usage: <code>{{LootEntry|Item Name|rarity=rare}}</code>
[[Category:Utility templates]]
[[Category:Utility templates]]
</noinclude>
</noinclude>

Latest revision as of 18:00, 30 January 2026


This template adds rows to the table "ItemSource", which is declared by the template ItemSource. View table. Stores item drop data to the ItemSource Cargo table. Does not produce visible output.

{{LootEntry|Item Name|rarity=common|min=1|max=2}}
{{LootEntry|Item Name|rarity=rare}}