Difference between revisions of "Template:SkillText"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Eave
(add documentation)
Line 1: Line 1:
<noinclude>{{doc}}[[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>
+
<noinclude>
 +
{{doc/start}}
 +
==Example==
 +
<pre>
 +
{{SkillText
 +
|Name=Pumpkin Prank
 +
|Level=1}}
 +
 
 +
{{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>

Revision as of 05:05, 5 November 2019

50px Documentation

Example

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

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

{{SkillText
|Name=Akashic Repose
|Level=1}}
Error: Table Skills not found.
Pumpkin Prank Lv. 1:
Error: Table Skills not found.
Error: Table Skills not found.
Pumpkin Prank Lv. 2:
Error: Table Skills not found.
Error: Table Skills not found.
Akashic Repose Lv. 1:
Error: Table Skills not found.