Difference between revisions of "Template:AbilitySimpleTableEntry"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Mornsta-gpuser
Line 33: Line 33:
 
     END ASC,  
 
     END ASC,  
 
     Rarity DESC, Id DESC}}
 
     Rarity DESC, Id DESC}}
| {{#cargo_query:tables=Weapons|fields=CONCAT('[[File:',BaseId,' 01 ',FormId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11="{{{Id|}}}" OR Abilities21="{{{Id|}}}"|format=ul|group by=_pageName|default=-}}
+
| {{#cargo_query:tables=Weapons|fields=CONCAT('[[File:',BaseId,' 01 ',FormId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11="{{{Id|}}}" OR Abilities21="{{{Id|}}}"|format=ul|group by=_pageName|default=-|order by=
 +
    CASE ElementalType
 +
    WHEN 'Flame' THEN 1
 +
    WHEN 'Water' THEN 2
 +
    WHEN 'Wind' THEN 3
 +
    WHEN 'Light' THEN 4
 +
    WHEN 'Shadow' THEN 5
 +
    ELSE 6
 +
    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}}
 
|-
 
|-
 
</includeonly>
 
</includeonly>

Revision as of 10:33, 27 February 2019