Template:DropSourceTable: Difference between revisions

Created page with "{| class="wikitable" ! '''NPC''' ! '''Quantity''' ! '''Rarity''' {{#cargo_query: tables=NpcDrops |fields=NPC,Quantity,Rarity |where=Item='{{FULLPAGENAME}}' |format=template |order by=Rarity |template=DropSourceItem |named args=yes }} |}"
 
m Sources -> Item Sources header
 
(36 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="wikitable"
== Item Sources ==
! '''NPC'''
{{#if: {{{note|}}} | {{{note}}} }}
! '''Quantity'''
{| class="wikitable sortable"
! '''Rarity'''
! Source
! Quantity
! Rarity
|-
{{#cargo_query:
{{#cargo_query:
   tables=NpcDrops
   tables=LootTable
   |fields=NPC,Quantity,Rarity
   |fields=_pageName=Page,Source,MinimumQuantity,MaximumQuantity,Rarity
   |where=Item='{{FULLPAGENAME}}'
   |where=Item="{{{lootkey}}}"
  |order by=RaritySort ASC,Item ASC
   |format=template
   |format=template
  |order by=Rarity
   |template=DropSourceItem
   |template=DropSourceItem
   |named args=yes
   |named args=yes
  |cacheable=yes
}}
}}
|}
|}