Difference between revisions of "Template:AbilityIconTooltip"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
>Caledor92
(Allow up to 5 abilities)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Tooltip Templates]]</noinclude><includeonly>{{#vardefine:genericName|{{#cargo_query:tables=Abilities|fields=GenericName|where=Id="{{{1|}}}" OR Name="{{{1|}}}"|default=Ability|{{{1|}}}|no html|group by=Name}}}}<!--
+
<noinclude>{{doc}}[[Category:Tooltip Templates]]</noinclude><includeonly><!--
  
-->{{TooltipLong|{{Icon|Ability|{{{1|}}}|size=24px|link="{{#var:genericName}}"}} [[{{#var:genericName}}]]|{{#ifeq:{{{3|0}}} | 0 |
+
-->{{#ifeq:{{{1|0}}} | 0 | | {{#vardefine:highestParam|{{{1}}}}}}}{{#ifeq:{{{2|0}}} | 0 | | {{#vardefine:highestParam|{{{2}}}}}}}{{#ifeq:{{{3|0}}} | 0 | | {{#vardefine:highestParam|{{{3}}}}}}}{{#ifeq:{{{4|0}}} | 0 | | {{#vardefine:highestParam|{{{4}}}}}}}{{#ifeq:{{{5|0}}} | 0 | | {{#vardefine:highestParam|{{{5}}}}}}}<!--
{{#ifeq: {{{2|0}}} | 0 |<!--
+
 
--><u>'''Lv. 1'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{1|}}}" OR Name="{{{1|}}}"|default=-|group by=Name}}
+
-->{{#vardefine:genericName|
|<u>'''Lv. 1'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{1|}}}" OR Name="{{{1|}}}"|default=-|group by=Name}}<br/><br/><!--
+
    {{#cargo_query:tables=Abilities|fields=GenericName
--><u>'''Lv. 2'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{2|}}}" OR Name="{{{2|}}}"|default=-|group by=Name}}
+
        |where=Id="{{#var:highestParam}}" OR Name="{{#var:highestParam}}"
}}
+
        |default=Ability|no html|group by=Name}}}}<!--
|<u>'''Lv. 1'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{1|}}}" OR Name="{{{1|}}}"|default=-|group by=Name}}<br/><br/><!--
+
 
--><u>'''Lv. 2'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{2|}}}" OR Name="{{{2|}}}"|default=-|group by=Name}}<br/><br/><!--
+
-->{{TooltipLong
--><u>'''Lv. 3'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{3|}}}" OR Name="{{{3|}}}"|default=-|group by=Name}}
+
  |{{Icon|Ability|{{{1|}}}|size=24px|link="{{#var:genericName}}"}} [[{{#var:genericName}}]]<!--
}}}}</includeonly>
+
-->|<u>'''Lv. 1'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{1|}}}" OR Name="{{{1|}}}"|default=-|group by=Name}}<!--
 +
    -->{{#ifeq: {{{2|0}}} | 0 | |<br/><br/><u>'''Lv. 2'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{2|}}}" OR Name="{{{2|}}}"|default=-|group by=Name}} }}<!--
 +
    -->{{#ifeq: {{{3|0}}} | 0 | |<br/><br/><u>'''Lv. 3'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{3|}}}" OR Name="{{{3|}}}"|default=-|group by=Name}} }}<!--
 +
    -->{{#ifeq: {{{4|0}}} | 0 | |<br/><br/><u>'''Lv. 4'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{4|}}}" OR Name="{{{4|}}}"|default=-|group by=Name}} }}<!--
 +
    -->{{#ifeq: {{{5|0}}} | 0 | |<br/><br/><u>'''Lv. 5'''</u>: {{#cargo_query:tables=Abilities|fields=Details|where=Id="{{{5|}}}" OR Name="{{{5|}}}"|default=-|group by=Name}} }}<!--
 +
-->}}</includeonly>

Latest revision as of 05:49, 30 July 2020

50px Documentation

Also see Template:AbilityTooltip.

Examples

{{AbilityIconTooltip|Critical Rate +5%|Critical Rate +6%}}
{{AbilityIconTooltip|410|309|310}}
* {{AbilityIconTooltip|Critical Rate +5%|Critical Rate +6%}}
{{AbilityIconTooltip|Critical Rate +5%|Critical Rate +6%}}
{{AbilityIconTooltip|Primed Strength +5%|Primed Strength +8%|Primed Strength +10%}}
* {{AbilityIconTooltip|Critical Rate +5%|Critical Rate +6%}}
* {{AbilityIconTooltip|Dragon's Claws I|Dragon's Claws II|Dragon's Claws III}}
* {{AbilityIconTooltip|Paralysis Res +25%|Paralysis Res +50%|Potent Paralysis Res +100%}}
* {{AbilityIconTooltip|Skill Prep +50%|Skill Prep +100% & Skill Charge}}
Error: Table Abilities not found.
[[
Error: Table Abilities not found.
]]Lv. 1:
Error: Table Abilities not found.


Lv. 2:
Error: Table Abilities not found.
Error: Table Abilities not found.
[[
Error: Table Abilities not found.
]]Lv. 1:
Error: Table Abilities not found.


Lv. 2:
Error: Table Abilities not found.


Lv. 3:
Error: Table Abilities not found.
  • Error: Table Abilities not found.
    [[
    Error: Table Abilities not found.
    ]]Lv. 1:
    Error: Table Abilities not found.


    Lv. 2:
    Error: Table Abilities not found.
Error: Table Abilities not found.
[[
Error: Table Abilities not found.
]]Lv. 1:
Error: Table Abilities not found.


Lv. 2:
Error: Table Abilities not found.
Error: Table Abilities not found.
[[
Error: Table Abilities not found.
]]Lv. 1:
Error: Table Abilities not found.


Lv. 2:
Error: Table Abilities not found.


Lv. 3:
Error: Table Abilities not found.
  • Error: Table Abilities not found.
    [[
    Error: Table Abilities not found.
    ]]Lv. 1:
    Error: Table Abilities not found.


    Lv. 2:
    Error: Table Abilities not found.
  • Error: Table Abilities not found.
    [[
    Error: Table Abilities not found.
    ]]Lv. 1:
    Error: Table Abilities not found.


    Lv. 2:
    Error: Table Abilities not found.


    Lv. 3:
    Error: Table Abilities not found.
  • Error: Table Abilities not found.
    [[
    Error: Table Abilities not found.
    ]]Lv. 1:
    Error: Table Abilities not found.


    Lv. 2:
    Error: Table Abilities not found.


    Lv. 3:
    Error: Table Abilities not found.
  • Error: Table Abilities not found.
    [[
    Error: Table Abilities not found.
    ]]Lv. 1:
    Error: Table Abilities not found.


    Lv. 2:
    Error: Table Abilities not found.


    Lv. 3:
    Error: Table Abilities not found.
  • Error: Table Abilities not found.
    [[
    Error: Table Abilities not found.
    ]]Lv. 1:
    Error: Table Abilities not found.


    Lv. 2:
    Error: Table Abilities not found.