Jump to content

Template:LootTableRow: Difference between revisions

From Apogea Wiki
Quasindro (talk | contribs)
Fix the quantity
Quasindro (talk | contribs)
Fix the expression error
 
Line 11: Line 11:
| [[{{{item|{{{1|}}}}}}]]
| [[{{{item|{{{1|}}}}}}]]
| data-sort-value="{{#if:{{{max}}}|{{{max}}}|{{{min|1}}}}}"|<!--
| data-sort-value="{{#if:{{{max}}}|{{{max}}}|{{{min|1}}}}}"|<!--
-->{{#if:{{{max}}}<!--
-->{{#if:{{{max|}}}<!--
     -->|{{#ifexpr:{{{min|1}}} = {{{max}}}|{{{min|1}}}|{{{min|1}}}-{{{max}}}}}<!--
     -->|{{#ifexpr:{{{min|1}}} = {{{max}}}|{{{min|1}}}|{{{min|1}}}-{{{max}}}}}<!--
     -->|{{{min|1}}}<!--
     -->|{{{min|1}}}<!--

Latest revision as of 15:23, 3 February 2026

This template adds rows to the table "ItemSource", which is declared by the template ItemSource. View table. Stores loot item data to Cargo and outputs a table row. Use with Template:Tl and Template:Tl.

{{LootTableHeader}}
{{LootTableRow|item=Wood Twigs|rarity=common|max=2}}
{{LootTableRow|Leather Boots|rarity=semirare}}
{{LootTableFooter}}

Parameters

[edit source]
  • item - The item in the drop table (required)
  • sprite - The sprite used for the item (defaults to item name)
  • min - Minimum quantity dropped (defaults to 1)
  • max - Maximum quantity dropped (omit if static quantity)
  • rarity - Drop rarity: common, semirare, rare, veryrare, ultrarare (defaults to common)