Difference between revisions of "Template:SkillText"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
(add documentation)
>Eave
(allow matching for multiple skill IDs)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
{{doc/start}}
+
-->{{#invoke:CargoQuery|main
==Example==
+
  |q?tables=Skills
<pre>
+
  |q?where={{#if: {{{Name|}}} | Name="{{{Name|}}}" | SkillId LIKE "%{{{Id}}}%" }}
{{SkillText
+
  |q?fields=_pageName=Link,SkillId,Description{{{Level|}}}=Description,{{#switch:{{{Level}}}|1=Sp|2=SPLv2|Sp}}=Sp
|Name=Pumpkin Prank
+
  |q?groupBy=_pageName
|Level=1}}
+
  |template=vardefine}}<!--
 
+
-->{{Icon|Skill|{{#var:SkillId}}|size=24px}}'''[[{{#var:Link}}]] Lv. {{{Level|}}}''': {{#var:Description}} [{{#var:Sp}} SP]</includeonly>
{{SkillText
 
|Name=Pumpkin Prank
 
|Level=2}}
 
 
 
{{SkillText
 
|Name=Akashic Repose
 
|Level=1}}</pre>
 
 
 
{{SkillText|Name=Pumpkin Prank|Level=1}}
 
 
 
{{SkillText|Name=Pumpkin Prank|Level=2}}
 
 
 
{{SkillText|Name=Akashic Repose|Level=1}}
 
[[Category:Templates]]</noinclude><includeonly>{{Icon|Skill|{{{Name|}}}|size=24px}}'''[[{{{Name|}}}]] Lv. {{{Level|}}}''': {{#cargo_query:tables=Skills|where=Name="{{{Name|}}}"|fields=CONCAT('',Description{{{Level|}}},' [',{{#switch:{{{Level}}}|1=Sp|2=SPLv2|Sp}},' SP]')|group by=_pageName}}</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]