Template:LootTableInner: Difference between revisions

From HighSpell Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
! colspan="2" | '''Item'''
! colspan="2" | '''Item'''
! '''Quantity'''
! '''Quantity'''
{{#if:{{{minmax|false}}}|! '''Min''' !! '''Max'''}}
! '''Rarity'''
! '''Rarity'''
! '''Buy Price'''
! '''Buy Price'''
Line 10: Line 9:
   tables=LootTable,Items
   tables=LootTable,Items
   |join on=LootTable.Item=Items._pageName
   |join on=LootTable.Item=Items._pageName
   |fields=LootTable.Item,LootTable.Quantity,LootTable.Rarity,LootTable.RaritySort,Items.GeneralBuy,Items.GeneralSell{{#if:{{{minmax|false}}}|,LootTable.MinimumQuantity,LootTable.MaximumQuantity}}
   |fields=LootTable.Item,LootTable.MinimumQuantity,LootTable.MaximumQuantity,LootTable.Rarity,LootTable.RaritySort,Items.GeneralBuy,Items.GeneralSell
   |where=LootTable.LootKey='{{{lootkey}}}'
   |where=LootTable.LootKey='{{{lootkey}}}'
   |order by=LootTable.RaritySort ASC,LootTable.Quantity DESC
   |order by=LootTable.RaritySort ASC,LootTable.MaximumQuantity DESC
   |format=template
   |format=template
   |template=LootItem
   |template=LootItem

Revision as of 20:00, 18 May 2025