Difference between revisions of "Template:TooltipIcon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Mornsta-gpuser
Line 1: Line 1:
 
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div style="display:inline-block; text-align:center; margin:4px;">{{#switch:{{{1|{{{Type|}}}}}}
 
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div style="display:inline-block; text-align:center; margin:4px;">{{#switch:{{{1|{{{Type|}}}}}}
 
|Adventurer={{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}}<br/>{{#cargo_query:tables=Adventurers|fields=_pageName|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
 
|Adventurer={{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}}<br/>{{#cargo_query:tables=Adventurers|fields=_pageName|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
 +
 
|Dragon=<!--  
 
|Dragon=<!--  
  
 
### TO-DO: Change this to use FullName instead of _pageName when Cargo finishes building  
 
### TO-DO: Change this to use FullName instead of _pageName when Cargo finishes building  
-->{{Tooltip|{{Icon|Dragon|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Dragons|q?fields=_pageName=Link,_pageName=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}}<br/>{{#cargo_query:tables=Dragons|fields=_pageName|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
+
-->{{Tooltip|{{Icon|Dragon|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Dragons|q?fields=_pageName=Link,_pageName=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}}<br/>{{#cargo_query:tables=Dragons|fields=_pageName|where=FullName="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[File:Unknown.png|80px]] [[{{{2|{{{Name|}}}}}}]]}}
 
|Weapon=
 
|Weapon=
 
|Wyrmprint={{Tooltip|{{Icon|Wyrmprint|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Wyrmprints|q?fields=_pageName=Name,Rarity,MaxHp,MaxAtk,Abilities12,Abilities22,Abilities32|q?where=Name="{{{2|{{{Name|}}}}}}"|q?groupBy=_pageName|template=Wyrmprint Tooltip}} |line=false}}<br/>{{#cargo_query:tables=Wyrmprints|fields=_pageName|where=Name="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
 
|Wyrmprint={{Tooltip|{{Icon|Wyrmprint|{{{2|{{{Name|}}}}}}}}| {{#invoke:CargoQuery|main|q?tables=Wyrmprints|q?fields=_pageName=Name,Rarity,MaxHp,MaxAtk,Abilities12,Abilities22,Abilities32|q?where=Name="{{{2|{{{Name|}}}}}}"|q?groupBy=_pageName|template=Wyrmprint Tooltip}} |line=false}}<br/>{{#cargo_query:tables=Wyrmprints|fields=_pageName|where=Name="{{{2|{{{Name|}}}}}}"|group by=_pageName|default=[[{{{2|{{{Name|}}}}}}]]}}
 
|Facility=
 
|Facility=
 
}}</div></includeonly>
 
}}</div></includeonly>

Revision as of 15:34, 20 February 2019

50px Documentation

Current Items Icon Template Works With

  • Adventurer
Error: Table Adventurers not found.
Lua error: Error: Table Adventurers not found..

Error: Table Adventurers not found.
Error: Table Adventurers not found.
Lua error: Error: Table Adventurers not found..

Error: Table Adventurers not found.
Error: Table Adventurers not found.
Lua error: Error: Table Adventurers not found..

Error: Table Adventurers not found.
Error: Table Adventurers not found.
Lua error: Error: Table Adventurers not found..

Error: Table Adventurers not found.
  • Dragon
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
  • Weapon
  • Wyrmprint
Lua error: Error: Table Wyrmprints not found.. Lua error: Error: Table Wyrmprints not found..
Error: Table Wyrmprints not found.
Lua error: Error: Table Wyrmprints not found.. Lua error: Error: Table Wyrmprints not found..
Error: Table Wyrmprints not found.
Lua error: Error: Table Wyrmprints not found.. Lua error: Error: Table Wyrmprints not found..
Error: Table Wyrmprints not found.
Lua error: Error: Table Wyrmprints not found.. Lua error: Error: Table Wyrmprints not found..
Error: Table Wyrmprints not found.

Examples

{{TooltipIcon|Adventurer|Lily}}
Error: Table Adventurers not found.
Lua error: Error: Table Adventurers not found..

Error: Table Adventurers not found.
{{TooltipIcon|Dragon|Phoenix}}
Error: Table Dragons not found.
Lua error: Error: Table Dragons not found..

Error: Table Dragons not found.
{{TooltipIcon|Weapon|Roaring Weald}}