Difference between revisions of "Template:WeaponListCategory"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>AbelToy
(Created page with "<div class="nomobile"> <div class="table-wrapper"> {| class="wikitable sortable" style="width:100%" |- ! Icon ! Name ! Rarity ! Type ! Element ! HP ! Str ! Skill {{#cargo_q...")
 
imported>Elaeagnifolia
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="nomobile">
+
<includeonly><div class="nomobile">
 
<div class="table-wrapper">
 
<div class="table-wrapper">
 
{| class="wikitable sortable" style="width:100%"
 
{| class="wikitable sortable" style="width:100%"
Line 6: Line 6:
 
! Name  
 
! Name  
 
! Rarity  
 
! Rarity  
! Type
 
 
! Element  
 
! Element  
 
! HP
 
! HP
 
! Str
 
! Str
 
! Skill
 
! Skill
{{#cargo_query:
+
{{#invoke:CargoQuery|main
tables=Weapons
+
|q?tables=Weapons
|fields=BaseId,FormId,_pageName=Name,Rarity,ElementalType,Type,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 25:
 
     ELSE 6
 
     ELSE 6
 
     END ASC,  
 
     END ASC,  
    CASE Type
 
    WHEN 'Sword' THEN 1
 
    WHEN 'Blade' THEN 2
 
    WHEN 'Dagger' THEN 3
 
    WHEN 'Axe' THEN 4
 
    WHEN 'Lance' THEN 5
 
    WHEN 'Bow' THEN 6
 
    WHEN 'Wand' THEN 7
 
    WHEN 'Staff' THEN 8
 
    ELSE 0
 
    END ASC,
 
 
     Rarity DESC, Id DESC
 
     Rarity DESC, Id DESC
|limit=300
+
|q?limit=300
 
}}
 
}}
 
|}
 
|}
Line 56: Line 42:
 
! Rty
 
! Rty
 
! Ele
 
! Ele
! Wep
 
 
! Hp
 
! Hp
 
! Atk
 
! Atk
{{#cargo_query:
+
{{#invoke:CargoQuery|main
tables=Weapons
+
|q?tables=Weapons
|fields=BaseId,FormId,_pageName=Name,Rarity,ElementalType,Type,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 76: Line 59:
 
     ELSE 6
 
     ELSE 6
 
     END ASC,  
 
     END ASC,  
    CASE Type
 
    WHEN 'Sword' THEN 1
 
    WHEN 'Blade' THEN 2
 
    WHEN 'Dagger' THEN 3
 
    WHEN 'Axe' THEN 4
 
    WHEN 'Lance' THEN 5
 
    WHEN 'Bow' THEN 6
 
    WHEN 'Wand' THEN 7
 
    WHEN 'Staff' THEN 8
 
    ELSE 0
 
    END ASC,
 
 
     Rarity DESC, Id DESC
 
     Rarity DESC, Id DESC
|limit=300
+
|q?limit=300
 
}}
 
}}
 
|}
 
|}
 
</div>
 
</div>
 
</div>
 
</div>
 +
[[Category:Weapons]]
 +
</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 14:13, 29 January 2019