Template:LootTableRow: Difference between revisions
Created page with "<includeonly>{{#cargo_store:_table=ItemSource | item = {{{item|{{{1|}}}}}} | source = {{{monster|{{PAGENAME}}}}} | source_type = Monster | rarity = {{{rarity|common}}} | min = {{{min|1}}} | max = {{{max|}}} }} |- | style="text-align:center;" | {{Sprite|{{{item|{{{1|}}}}}}|x2}} | [[{{{item|{{{1|}}}}}}]] | data-sort-value="{{#if:{{{max}}}|{{{max}}}|{{{min|1}}}}}" | {{#if:{{{min|}}}|{{#if:{{{max}}}|{{#ifexpr:{{{min|1}}} = {{{max}}}|{{{min|1}}}|{{{min|1}}}-{{{max}}}}}|{{{min..." |
Fix the quantity |
||
| Line 10: | Line 10: | ||
| style="text-align:center;" | {{Sprite|{{{item|{{{1|}}}}}}|x2}} | | style="text-align:center;" | {{Sprite|{{{item|{{{1|}}}}}}|x2}} | ||
| [[{{{item|{{{1|}}}}}}]] | | [[{{{item|{{{1|}}}}}}]] | ||
| data-sort-value="{{#if:{{{max}}}|{{{max}}}|{{{min|1}}}}}" | | | data-sort-value="{{#if:{{{max}}}|{{{max}}}|{{{min|1}}}}}"|<!-- | ||
-->{{#if:{{{max}}}<!-- | |||
-->|{{#ifexpr:{{{min|1}}} = {{{max}}}|{{{min|1}}}|{{{min|1}}}-{{{max}}}}}<!-- | |||
-->|{{{min|1}}}<!-- | |||
-->}} | |||
| data-sort-value="{{#switch:{{lc:{{{rarity|common}}}}}|common=1|semirare=2|rare=3|veryrare=4|ultrarare=5|#default=99}}" | {{{rarity|common}}}</includeonly><noinclude> | | data-sort-value="{{#switch:{{lc:{{{rarity|common}}}}}|common=1|semirare=2|rare=3|veryrare=4|ultrarare=5|#default=99}}" | {{{rarity|common}}}</includeonly><noinclude> | ||
{{#cargo_attach:_table=ItemSource}} | {{#cargo_attach:_table=ItemSource}} | ||
Revision as of 15:20, 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.
Usage
{{LootTableHeader}}
{{LootTableRow|item=Wood Twigs|rarity=common|max=2}}
{{LootTableRow|Leather Boots|rarity=semirare}}
{{LootTableFooter}}
Parameters
- 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)