Difference between revisions of "Template:TooltipIcon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
(entire block: set max width, vertical align:top)
>Caledor92
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Tooltip Templates]]</noinclude><includeonly><div style="display:inline-block; text-align:center; margin:4px; max-width: 120px; vertical-align:top">{{#switch:{{{1|{{{Type|}}}}}}
+
<noinclude>{{doc}}[[Category:Tooltip Templates]]</noinclude><includeonly><div style="display:inline-block; text-align:center; padding: 4px; width: 80px; vertical-align:top">{{#switch:{{{1|{{{Type|}}}}}}
 
|Adventurer={{#ifexist:{{#cargo_query:tables=Adventurers|where=_pageName="{{{2|{{{Name|}}}}}}" OR FullName="{{{2|{{{Name|}}}}}}"|fields=CONCAT('File:', Id, ' 0', VariationId, ' r0', Rarity, '.png')|group by=_pageName|limit=1|more results text=|no html}}|{{Tooltip|{{Icon|Adventurer|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Adventurers|q?fields=_pageName=Link,FullName=Name,ElementalType=Element,WeaponType=Weapon,Rarity,MaxHp,PlusHp0,PlusHp1,PlusHp2,PlusHp3,PlusHp4,McFullBonusHp5,MaxAtk,PlusAtk0,PlusAtk1,PlusAtk2,PlusAtk3,PlusAtk4,McFullBonusAtk5,Abilities11,Abilities12,Abilities21,Abilities22,Abilities31,Abilities32,Skill1Name,Skill2Name,ExAbilityData5|q?where=FullName="{{{2|{{{Name|}}}}}}"|q?groupBy=_pageName|template=Adventurer Tooltip}} |line=false}}|[[File:Unknown.png|80px|link={{{2|{{{Name|}}}}}}]]}}<br/>{{#cargo_query:tables=Adventurers|fields=_pageName|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
 
|Adventurer={{#ifexist:{{#cargo_query:tables=Adventurers|where=_pageName="{{{2|{{{Name|}}}}}}" OR FullName="{{{2|{{{Name|}}}}}}"|fields=CONCAT('File:', Id, ' 0', VariationId, ' r0', Rarity, '.png')|group by=_pageName|limit=1|more results text=|no html}}|{{Tooltip|{{Icon|Adventurer|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Adventurers|q?fields=_pageName=Link,FullName=Name,ElementalType=Element,WeaponType=Weapon,Rarity,MaxHp,PlusHp0,PlusHp1,PlusHp2,PlusHp3,PlusHp4,McFullBonusHp5,MaxAtk,PlusAtk0,PlusAtk1,PlusAtk2,PlusAtk3,PlusAtk4,McFullBonusAtk5,Abilities11,Abilities12,Abilities21,Abilities22,Abilities31,Abilities32,Skill1Name,Skill2Name,ExAbilityData5|q?where=FullName="{{{2|{{{Name|}}}}}}"|q?groupBy=_pageName|template=Adventurer Tooltip}} |line=false}}|[[File:Unknown.png|80px|link={{{2|{{{Name|}}}}}}]]}}<br/>{{#cargo_query:tables=Adventurers|fields=_pageName|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
 
|Dragon={{#ifexist:{{#cargo_query:tables=Dragons|fields=CONCAT('File:', BaseId, ' 0', VariationId, '.png')|where=_pageName="{{{2|{{{Name|}}}}}}" OR FullName="{{{2|{{{Name|}}}}}}"|limit=1|more results text=|no html}}|{{Tooltip|{{Icon|Dragon|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Dragons|q?fields=_pageName=Link,FullName=Name,Rarity,ElementalType=Element,MaxHp,MaxAtk,BaseId,SkillName,Abilities11,Abilities12,Abilities21,Abilities22|q?where=FullName="{{{2|{{{Name|}}}}}}"|q?groupBy=_pageName|template=Dragon Tooltip}} |line=false}}|[[File:Unknown.png|80px|link={{{2|{{{Name|}}}}}}]]}}<br/>{{#cargo_query:tables=Dragons|fields=CONCAT('[[',_pageName,'|',FullName,']]')|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
 
|Dragon={{#ifexist:{{#cargo_query:tables=Dragons|fields=CONCAT('File:', BaseId, ' 0', VariationId, '.png')|where=_pageName="{{{2|{{{Name|}}}}}}" OR FullName="{{{2|{{{Name|}}}}}}"|limit=1|more results text=|no html}}|{{Tooltip|{{Icon|Dragon|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Dragons|q?fields=_pageName=Link,FullName=Name,Rarity,ElementalType=Element,MaxHp,MaxAtk,BaseId,SkillName,Abilities11,Abilities12,Abilities21,Abilities22|q?where=FullName="{{{2|{{{Name|}}}}}}"|q?groupBy=_pageName|template=Dragon Tooltip}} |line=false}}|[[File:Unknown.png|80px|link={{{2|{{{Name|}}}}}}]]}}<br/>{{#cargo_query:tables=Dragons|fields=CONCAT('[[',_pageName,'|',FullName,']]')|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}

Revision as of 11:30, 3 December 2019

50px Documentation

Current Items Icon Template Works With

  • Adventurer
Unknown.png
Error: Table Adventurers not found.
Unknown.png
Error: Table Adventurers not found.
Unknown.png
Error: Table Adventurers not found.
Unknown.png
Error: Table Adventurers not found.
  • Dragon
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
Unknown.png
Error: Table Dragons not found.
  • Weapon
Unknown.png
Error: Table Weapons not found.
Unknown.png
Error: Table Weapons not found.
Unknown.png
Error: Table Weapons not found.
Unknown.png
Error: Table Weapons not found.
  • Wyrmprint
Unknown.png
Error: Table Wyrmprints not found.
Unknown.png
Error: Table Wyrmprints not found.
Unknown.png
Error: Table Wyrmprints not found.
Unknown.png
Error: Table Wyrmprints not found.

Examples

{{TooltipIcon|Adventurer|Lily}}
Unknown.png
Error: Table Adventurers not found.
{{TooltipIcon|Dragon|Phoenix}}
Unknown.png
Error: Table Dragons not found.
{{TooltipIcon|Weapon|Roaring Weald}}
Unknown.png
Error: Table Weapons not found.