Template:LootTableInner: Difference between revisions

No edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable"
<includeonly>{| class="wikitable"
! colspan="2" | '''Item'''
! colspan="2" | Item
! '''Quantity'''
! Quantity
{{#if:{{{minmax|false}}}|! '''Min''' !! '''Max'''}}
! Rarity
! '''Rarity'''
! Value
! '''Buy Price'''
! '''Sell Price'''
|-
|-
{{#cargo_query:
{{#cargo_query:
   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