Difference between revisions of "Template:SkillText"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
(add documentation)
>Eave
(move docs to own page)
Line 1: Line 1:
<noinclude>
+
<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>
{{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:12, 28 April 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}}
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.
Error: Table Skills not found.
[[]] Lv. 1:
Error: Table Skills not found.