Difference between revisions of "Template:SkillText"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
(support also taking skill ID instead of name)
>Eave
(allow matching for multiple skill IDs)
 
Line 2: Line 2:
 
-->{{#invoke:CargoQuery|main
 
-->{{#invoke:CargoQuery|main
 
   |q?tables=Skills
 
   |q?tables=Skills
   |q?where={{#if: {{{Name|}}} | Name="{{{Name|}}}" | SkillId="{{{Id|}}}" }}
+
   |q?where={{#if: {{{Name|}}} | Name="{{{Name|}}}" | SkillId LIKE "%{{{Id}}}%" }}
 
   |q?fields=_pageName=Link,SkillId,Description{{{Level|}}}=Description,{{#switch:{{{Level}}}|1=Sp|2=SPLv2|Sp}}=Sp
 
   |q?fields=_pageName=Link,SkillId,Description{{{Level|}}}=Description,{{#switch:{{{Level}}}|1=Sp|2=SPLv2|Sp}}=Sp
 
   |q?groupBy=_pageName
 
   |q?groupBy=_pageName
 
   |template=vardefine}}<!--
 
   |template=vardefine}}<!--
 
-->{{Icon|Skill|{{#var:SkillId}}|size=24px}}'''[[{{#var:Link}}]] Lv. {{{Level|}}}''': {{#var:Description}} [{{#var:Sp}} SP]</includeonly>
 
-->{{Icon|Skill|{{#var:SkillId}}|size=24px}}'''[[{{#var:Link}}]] Lv. {{{Level|}}}''': {{#var:Description}} [{{#var:Sp}} SP]</includeonly>

Latest revision as of 02:24, 26 May 2020

50px Documentation

Example

{{SkillText
|Name=Pumpkin Prank
|Level=1}}

{{SkillText
|Name=Pumpkin Prank
|Level=2}}

{{SkillText
|Name=Akashic Repose
|Level=1}}

{{SkillText
|Id=301603011
|Level=1}}
Lua error: Error: Table Skills not found..
Error: Table Skills not found.
[[]] Lv. 1: [ SP] Lua error: Error: Table Skills not found..
Error: Table Skills not found.
[[]] Lv. 2: [ SP] Lua error: Error: Table Skills not found..
Error: Table Skills not found.
[[]] Lv. 1: [ SP] Lua error: Error: Table Skills not found..
Error: Table Skills not found.
[[]] Lv. 1: [ SP]