Difference between revisions of "Template:WeaponListCategory"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
imported>Elaeagnifolia
 
Line 10: Line 10:
 
! Str
 
! Str
 
! Skill
 
! Skill
{{#cargo_query:
+
{{#invoke:CargoQuery|main
tables=Weapons
+
|q?tables=Weapons
|fields=BaseId,FormId,_pageName=Name,Rarity,ElementalType,MaxHp,MaxAtk,SkillName
+
|q?fields=BaseId,FormId,_pageName=Name,Rarity,ElementalType,MaxHp,MaxAtk,SkillName
|where=WeaponName!="Zethia's Staff" AND Type="{{PAGENAME}}"
+
|q?where=WeaponName!="Zethia's Staff" AND Type="{{PAGENAME}}"
|format=template
 
 
|template=WeaponTableEntry
 
|template=WeaponTableEntry
|named args=yes
+
|q?groupBy=_pageName
|group by=_pageName
+
|q?orderBy=  
|order by=  
 
 
     CASE ElementalType
 
     CASE ElementalType
 
     WHEN 'Flame' THEN 1
 
     WHEN 'Flame' THEN 1
Line 28: Line 26:
 
     END ASC,  
 
     END ASC,  
 
     Rarity DESC, Id DESC
 
     Rarity DESC, Id DESC
|limit=300
+
|q?limit=300
 
}}
 
}}
 
|}
 
|}
Line 46: Line 44:
 
! Hp
 
! Hp
 
! Atk
 
! Atk
{{#cargo_query:
+
{{#invoke:CargoQuery|main
tables=Weapons
+
|q?tables=Weapons
|fields=BaseId,FormId,_pageName=Name,Rarity,ElementalType,MaxHp,MaxAtk
+
|q?fields=BaseId,FormId,_pageName=Name,Rarity,ElementalType,MaxHp,MaxAtk
|where=WeaponName!="Zethia's Staff"
+
|q?where=WeaponName!="Zethia's Staff"
|format=template
 
 
|template=WeaponTableEntryMobile
 
|template=WeaponTableEntryMobile
|named args=yes
+
|q?groupBy=_pageName
|group by=_pageName
+
|q?orderBy=  
|order by=  
 
 
     CASE ElementalType
 
     CASE ElementalType
 
     WHEN 'Flame' THEN 1
 
     WHEN 'Flame' THEN 1
Line 64: Line 60:
 
     END ASC,  
 
     END ASC,  
 
     Rarity DESC, Id DESC
 
     Rarity DESC, Id DESC
|limit=300
+
|q?limit=300
 
}}
 
}}
 
|}
 
|}

Latest revision as of 14:13, 29 January 2019