Difference between revisions of "Template:SkillDisplayEntry"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
>Caledor92
 
(25 intermediate revisions by 3 users not shown)
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}}
 
{{#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,SkillLv4IconName,Description1=Lv1,Description2=Lv2,Description3=Lv3,Description4=Lv4,Sp=Sp,SPLv2=SpLv2,SPLv3=SpLv3,SPLv4=SpLv4,SpEdit,SpLv2Edit,SpLv3Edit,SpLv4Edit,SpRegen,MaxAmmo,AmmoUsage,CONCAT('{{{Shareable|}}}')=Shareable,CONCAT('{{{ShareCost|}}}')=ShareCost
|q?where=SkillId={{{ID|}}}
+
|q?where={{#ifeq: {{{ID|0}}} | 0 | Name='{{EscQ|{{{Name|}}} }}' | SkillId LIKE '%{{{ID}}}%' }}
 
|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>[[Category:Templates]]</noinclude>
 

Latest revision as of 12:40, 29 May 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..