Difference between revisions of "Template:SkillTooltip"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
>Eave
(make the #if HideLevel3 statement more robust against someone explicitly filling out it's value as false)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly>{{#ifeq:{{#cargo_query:tables=Skills|where=Name="{{{1|{{{Name|}}}}}}"|default=0|no html}} | 0 | None | {{TooltipLong|{{Icon|Skill|{{{1|{{{Name|}}}}}}|size=24px}} [[{{{1|{{{Name|}}}}}}]]|{{#if:{{#cargo_query:tables=Skills|fields=HideLevel3|where=Name="{{{1|{{{Name|}}}}}}"|default=0|no html}} |
+
<noinclude>
<u>'''Lv. 1'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description1,' [',Sp,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}<br/><br/><u>'''Lv. 2'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description2,' [',SPLv2,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}
+
{{doc}}
 +
[[Category:Templates]]
 +
</noinclude><includeonly>{{#ifeq:{{#cargo_query:tables=Skills|where=Name="{{{1|{{{Name|}}}}}}"|default=0|no html}} | 0 | None <!-- Skill wasn't found --> | {{TooltipLong
 +
|{{Icon|Skill|{{{1|{{{Name|}}}}}}|size=24px}} [[{{{1|{{{Name|}}}}}}]]
 +
|{{#if:{{#cargo_query:tables=Skills|fields=HideLevel3|where=Name="{{{1|{{{Name|}}}}}}" AND HideLevel3|default=|no html}} |
 +
<!-- When HideLevel3 is TRUE
 +
--><u>'''Lv. 1'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description1,' [',Sp,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}<br/><br/><!--
 +
--><u>'''Lv. 2'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description2,' [',SPLv2,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}
 
|
 
|
<u>'''Lv. 1'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description1,' [',Sp,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}<br/><br/><u>'''Lv. 2'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description2,' [',SPLv2,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}<br/><br/><u>'''Lv. 3'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description3,' [',SPLv2,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}
+
<!-- When HideLevel3 is FALSE
 +
--><u>'''Lv. 1'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description1,' [',Sp,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}<br/><br/><!--
 +
--><u>'''Lv. 2'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description2,' [',SPLv2,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}<br/><br/><!--
 +
--><u>'''Lv. 3'''</u>: {{#cargo_query:tables=Skills|fields=CONCAT('',Description3,' [',SPLv2,' SP]')|where=Name="{{{1|{{{Name|}}}}}}"|default=-}}
 
}}}}}}</includeonly>
 
}}}}}}</includeonly>

Revision as of 08:09, 5 November 2019

50px Documentation

Example

{{SkillTooltip|Pumpkin Prank}}
* {{SkillTooltip|Celestial Ascent}}
* {{SkillTooltip|Akashic Repose}}
* {{SkillTooltip|Vital Gate}}
* {{SkillTooltip|Brave Bastion}}
* {{SkillTooltip|Blazing Circlet}}
* {{SkillTooltip|302601011}}
* {{SkillTooltip|301603011}}
* {{SkillTooltip|308605011}}
Error: Table Skills not found.
Pumpkin Prank Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.
Lv. 1:
Error: Table Skills not found.


Lv. 2:
Error: Table Skills not found.