Difference between revisions of "Template:CoAbilitySimpleTableEntry"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>FlareKyn
(Hiding fields that shouldn't exist yet, but could be used in the future)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>[[Category:Templates]]</noinclude><includeonly>
 
<noinclude>[[Category:Templates]]</noinclude><includeonly>
| [[{{{Name|}}}]]
+
| {{Icon|CoAbility|{{{Name|}}}|size=24px|text=1}}
| {{#cargo_query:tables=Adventurers|fields=CONCAT('[[File:',Id,' 0',VariationId,' r0',Rarity,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=ExAbilityData1="{{{Id|}}}" OR ExAbilityData2="{{{Id|}}}" OR ExAbilityData3="{{{Id|}}}" OR ExAbilityData4="{{{Id|}}}" OR ExAbilityData5="{{{Id|}}}"|format=ul|group by=_pageName|default=-|order by=  
+
| {{{PartyPowerWeight|}}}
    CASE ElementalType
+
| {{#cargo_query:tables=Adventurers|fields=CONCAT('[[File:',Id,' 0',VariationId,' r0',Rarity,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=ExAbilityData1="{{{Id|}}}" OR ExAbilityData2="{{{Id|}}}" OR ExAbilityData3="{{{Id|}}}" OR ExAbilityData4="{{{Id|}}}" OR ExAbilityData5="{{{Id|}}}"|format=ul|group by=_pageName|default=-|order by=ElementalTypeId ASC, WeaponTypeId ASC, Rarity DESC, Id DESC, FullName ASC}}<!-- Hiding these as there currently aren't any Wyrmprints or Dragons with co-abilities, but there is the possibility of them being added in the future
    WHEN 'Flame' THEN 1
+
| {{#cargo_query:tables=Wyrmprints|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,'|',Name,']]')|where=Abilities11="{{{Id|}}}" OR Abilities12="{{{Id|}}}" OR Abilities21="{{{Id|}}}" OR Abilities22="{{{Id|}}}" OR Abilities31="{{{Id|}}}" OR Abilities32="{{{Id|}}}"|format=ul|group by=_pageName|default=-|order by= Rarity DESC, ReleaseDate DESC, BaseId DESC}}
    WHEN 'Water' THEN 2
+
| {{#cargo_query:tables=Dragons|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,'|',Name,']]')|where=Abilities11="{{{Id|}}}" OR Abilities12="{{{Id|}}}" OR Abilities21="{{{Id|}}}" OR Abilities22="{{{Id|}}}"|format=ul|group by=_pageName|default=-|order by= ElementalTypeId ASC, Rarity DESC, Id DESC, FullName ASC}}-->
    WHEN 'Wind' THEN 3
 
    WHEN 'Light' THEN 4
 
    WHEN 'Shadow' THEN 5
 
    ELSE 0
 
    END ASC,  
 
    CASE WeaponType
 
    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}}
 
| {{#cargo_query:tables=Wyrmprints|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11="{{{Id|}}}" OR Abilities12="{{{Id|}}}" OR Abilities21="{{{Id|}}}" OR Abilities22="{{{Id|}}}" OR Abilities31="{{{Id|}}}" OR Abilities32="{{{Id|}}}"|format=ul|group by=_pageName|default=-|order by= Rarity DESC, ReleaseDate DESC, BaseId DESC}}
 
| {{#cargo_query:tables=Dragons|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11="{{{Id|}}}" OR Abilities12="{{{Id|}}}" OR Abilities21="{{{Id|}}}" OR Abilities22="{{{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 0
 
    END ASC,  
 
    Rarity DESC, Id DESC}}
 
 
|-
 
|-
 
</includeonly>
 
</includeonly>

Latest revision as of 10:59, 17 May 2020