Difference between revisions of "Template:SkillDisplayEntry"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Boblers
(querying MaxAmmo and AmmoUsage)
>Eave
(simplify the query to match ID or name (without a separate if) and pass through other level icon names)
Line 1: Line 1:
<includeonly>{{#vardefine:fieldparams
+
<includeonly>{{#invoke:CargoQuery|main
|_pageName=PageName,Name,MaxSkillLevel,SkillLv1IconName=icon,Description1=Lv1,Description2=Lv2,Description3=Lv3,Description4=Lv4,Sp=Sp,SPLv2=SpLv2,SpRegen,MaxAmmo,AmmoUsage}}
 
{{#if:{{{ID|}}}|
 
{{#invoke:CargoQuery|main
 
 
|q?tables=Skills
 
|q?tables=Skills
|q?fields={{#var:fieldparams}}
+
|q?fields=_pageName=PageName,Name,MaxSkillLevel,SkillLv1IconName=icon,SkillLv2IconName,SkillLv3IconName,Description1=Lv1,Description2=Lv2,Description3=Lv3,Description4=Lv4,Sp=Sp,SPLv2=SpLv2,SpRegen,MaxAmmo,AmmoUsage
|q?where=SkillId={{{ID|}}}
+
|q?where=SkillId='{{{ID|}}}' OR Name='{{EscQ|{{{Name|}}} }}'
 
|q?groupBy=_pageName
 
|q?groupBy=_pageName
 
|template=SkillDisplay
 
|template=SkillDisplay
|default=
+
|default={{#if:{{{Name|}}} | [[{{{Name|}}}]] }}
}}|
+
}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
{{#invoke:CargoQuery|main
 
|q?tables=Skills
 
|q?fields={{#var:fieldparams}}
 
|q?where=Name='{{#replace:{{{Name|}}}|'|\'}}'
 
|q?groupBy=_pageName
 
|template=SkillDisplay
 
|default=[[{{{Name|}}}]]
 
}}}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
 

Revision as of 02:39, 15 April 2020

50px Documentation
{{SkillDisplayEntry|Name=Flash of Unity}}

Lua error: Error: Table Skills not found..

{{SkillDisplayEntry|Name=Blazing Circlet}}

Lua error: Error: Table Skills not found..

{{SkillDisplayEntry|ID=104503022}}

Lua error: Error: Table Skills not found..

{{SkillDisplayEntry|Name=Elder Cure|Shareable=1|ShareCost=3}}

Lua error: Error: Table Skills not found..