Difference between revisions of "Template:Adventurer Tooltip"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
>Caledor92
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Tooltip Templates]]</noinclude><includeonly>{| class="wikitable" style="width: 100%;"
+
<noinclude>{{doc}}[[Category:Tooltip Templates]]</noinclude><includeonly>{{#ifeq: {{{Abilities13|}}} | 0 | {{#ifeq: {{{Abilities12|}}} | 0 | {{#vardefine:maxAb1Lv|1}} | {{#vardefine:maxAb1Lv|2}} }} | {{#vardefine:maxAb1Lv|3}} }}{{#ifeq: {{{Abilities23|}}} | 0 | {{#ifeq: {{{Abilities22|}}} | 0 | {{#vardefine:maxAb2Lv|1}} | {{#vardefine:maxAb2Lv|2}} }} | {{#vardefine:maxAb2Lv|3}} }}{{#ifeq: {{{Abilities33|}}} | 0 | {{#ifeq: {{{Abilities32|}}} | 0 | {{#vardefine:maxAb3Lv|1}} | {{#vardefine:maxAb3Lv|2}} }} | {{#vardefine:maxAb3Lv|3}} }}<!--
 +
-->{| class="wikitable" style="width: 100%;"
 
|+<div style="white-space:nowrap;">{{{Rarity|}}} {{InlineIcon|Icon Rarity|{{{Rarity|}}}}}{{InlineIcon|Icon Element|{{{Element|}}}}}{{InlineIcon|Icon Weapon|{{{Weapon|}}}}} {{{Name|}}}<br/>HP: {{#expr:{{{MaxHp|}}}+{{{PlusHp0|}}}+{{{PlusHp1|}}}+{{{PlusHp2|}}}+{{{PlusHp3|}}}+{{{PlusHp4|}}}+{{{McFullBonusHp5|}}}}}&emsp;Strength: {{#expr:{{{MaxAtk|}}}+{{{PlusAtk0|}}}+{{{PlusAtk1|}}}+{{{PlusAtk2|}}}+{{{PlusAtk3|}}}+{{{PlusAtk4|}}}+{{{McFullBonusAtk5|}}}}}</div>
 
|+<div style="white-space:nowrap;">{{{Rarity|}}} {{InlineIcon|Icon Rarity|{{{Rarity|}}}}}{{InlineIcon|Icon Element|{{{Element|}}}}}{{InlineIcon|Icon Weapon|{{{Weapon|}}}}} {{{Name|}}}<br/>HP: {{#expr:{{{MaxHp|}}}+{{{PlusHp0|}}}+{{{PlusHp1|}}}+{{{PlusHp2|}}}+{{{PlusHp3|}}}+{{{PlusHp4|}}}+{{{McFullBonusHp5|}}}}}&emsp;Strength: {{#expr:{{{MaxAtk|}}}+{{{PlusAtk0|}}}+{{{PlusAtk1|}}}+{{{PlusAtk2|}}}+{{{PlusAtk3|}}}+{{{PlusAtk4|}}}+{{{McFullBonusAtk5|}}}}}</div>
 
! Skills || Abilities
 
! Skills || Abilities
Line 6: Line 7:
 
| {{#cargo_query:tables=CoAbilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[',_pageName,'|',Name,']] (Co-ability)</div>')|where=Id="{{{ExAbilityData5|-}}}"|default=|order by=Id}}
 
| {{#cargo_query:tables=CoAbilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[',_pageName,'|',Name,']] (Co-ability)</div>')|where=Id="{{{ExAbilityData5|-}}}"|default=|order by=Id}}
 
<div class="mp-menu-item-body" style="margin-top:1px;border-top:solid 1px lightgrey">
 
<div class="mp-menu-item-body" style="margin-top:1px;border-top:solid 1px lightgrey">
{{#cargo_query:tables=Abilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[', _pageName, '|', Name, ']]</div>')|where=Id={{{Abilities12|0}}}|default=|order by=_pageName|delimiter=}}{{#cargo_query:tables=Abilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[', _pageName, '|', Name, ']]</div>')|where=Id={{{Abilities22|0}}}|default=|order by=_pageName|delimiter=}}{{#ifeq:{{{Abilities32|}}} | 0 | {{#cargo_query:tables=Abilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[', _pageName, '|', Name, ']]</div>')|where=Id={{{Abilities31|0}}}|default=|order by=_pageName|delimiter=}} | {{#cargo_query:tables=Abilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[', _pageName, '|', Name, ']]</div>')|where=Id={{{Abilities32|0}}}|default=|order by=_pageName|delimiter=}} }}
+
{{#cargo_query:tables=Abilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[', _pageName, '|', Name, ']]</div>')|where=Id={{{Abilities1{{#var:maxAb1Lv}}|0}}}|default=|order by=_pageName|delimiter=}}{{#cargo_query:tables=Abilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[', _pageName, '|', Name, ']]</div>')|where=Id={{{Abilities2{{#var:maxAb2Lv}}|0}}}|default=|order by=_pageName|delimiter=}}{{#cargo_query:tables=Abilities|fields=CONCAT('<div style="white-space:nowrap;">[[File:', AbilityIconName, '.png|32px|link=', _pageName, ']] [[', _pageName, '|', Name, ']]</div>')|where=Id={{{Abilities3{{#var:maxAb3Lv}}|0}}}|default=|order by=_pageName|delimiter=}}
 
</div>
 
</div>
 
|}</includeonly>
 
|}</includeonly>

Revision as of 13:38, 26 December 2019

50px Documentation

Usage

Typically used via Template:TooltipIcon of type 'Adventurer' instead of invoking directly.

{{TooltipIcon|Adventurer|Audric}}
{{TooltipIcon|Adventurer|The Prince}}
{{TooltipIcon|Adventurer|Botan}}

Example

Unknown.png
Error: Table Adventurers not found.
Unknown.png
Error: Table Adventurers not found.
Unknown.png
Error: Table Adventurers not found.