Difference between revisions of "Template:Icon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
(migrate Wyrmprint to using Module:Icon instead. this makes it possible to store output from Template:icon inside of cargo table rows)
>Eave
m (Undo revision 91507 by Eave (talk) (didn't work))
 
(41 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><span style="display:inline-block;">{{#ifeq:{{{text|0}}}|1|{{#switch:{{{1|}}}
+
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><span style="display:inline-block;">{{#ifeq:{{{text|0}}}|1|{{#switch:{{{1|}}}<!--
|Adventurer={{#cargo_query:tables=Adventurers|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, ' 0', VariationId, ' r0', Rarity, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',FullName,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
 
|Wyrmprint={{#invoke:Icon|Wyrmprint|{{{2}}}|size={{{size|}}}|link={{{link|}}}|text=1}}
+
Adventurer with Text
|Dragon={{#cargo_query:tables=Dragons|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', BaseId, ' 01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',FullName,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
-->
|Weapon={{#cargo_query:tables=Weapons|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', BaseId, ' 01 ', FormId, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',WeaponName,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
|Adventurer={{#cargo_query:tables=Adventurers|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, ' 0', VariationId, ' r0', {{{rarity|Rarity}}}, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',FullName,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
|Consumable={{#cargo_query:tables=Consumables|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
 
|Skill={{#cargo_query:tables=Skills|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR SkillId="{{{2}}}"|fields=CONCAT('[[File:', SkillLv1IconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
# Wyrmprint with Text
|Material={{#cargo_query:tables=Materials|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
-->
|Gift={{#cargo_query:tables=Gifts|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
|Wyrmprint={{#invoke:Icon|Wyrmprint|{{{2}}}|size={{{size|}}}|link={{{link|}}}|text=1}}<!--
|Resource=[[File:Icon_Resource_{{{2|}}}.png|{{{size|80px}}}|link=',{{{link|{{{2|}}}}}},']] [[{{{2}}}]]
+
 
|Currency=[[File:Icon_{{{2|}}}.png|{{{size|80px}}}|link=',{{{link|{{{2|}}}}}},']] [[{{{2}}}]]
+
# Dragon with Text
|Facility={{#ifexist:{{#cargo_query:tables=Facilities|fields=CONCAT('File:TW02_', Id, '_IMG_01_01.png')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|no html}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|limit=1|more results text=|default=[[{{{2}}}]]}}}}
+
-->
|CoAbility={{#cargo_query:tables=CoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
|Dragon={{#cargo_query:tables=Dragons|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', BaseId, ' 01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',FullName,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
|Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
+
 
}}
+
# Weapon with Text
|{{#switch:{{{1|}}}
+
-->
|Adventurer={{#cargo_query:tables=Adventurers|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, ' 0', VariationId, ' r0', Rarity, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
|Weapon={{#cargo_query:tables=Weapons|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', BaseId, ' 01 ', FormId, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',WeaponName,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
|Wyrmprint={{#invoke:Icon|Wyrmprint|{{{2}}}|size={{{size|}}}|link={{{link|}}}}}
+
 
|Dragon={{#cargo_query:tables=Dragons|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
# Consumable with Text
|Weapon={{#cargo_query:tables=Weapons|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 01 ', FormId, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
-->
|Consumable={{#cargo_query:tables=Consumables|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
|Consumable={{#cargo_query:tables=Consumables|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
|Skill={{#cargo_query:tables=Skills|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR SkillId="{{{2}}}"|fields=CONCAT('[[File:', SkillLv1IconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
 
|Material={{#cargo_query:tables=Materials|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
# Skill with Text
|Gift={{#cargo_query:tables=Gifts|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
-->
|Resource=[[File:Icon_Resource_{{{2|}}}.png|{{{size|80px}}}|link=',{{{link|{{{2|}}}}}},']]
+
|Skill={{#cargo_query:tables=Skills|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR SkillId LIKE "%{{{2}}}%"|fields=CONCAT('[[File:', SkillLv1IconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
|Currency=[[File:Icon_{{{2|}}}.png|{{{size|80px}}}|link=',{{{link|{{{2|}}}}}},']]
+
 
|Facility={{#ifexist:{{#cargo_query:tables=Facilities|fields=CONCAT('File:TW02_', Id, '_IMG_01_01.png')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|no html}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|default=}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|limit=1|more results text=|default=}}}}
+
# Material with Text
|CoAbility={{#cargo_query:tables=CoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
-->
|Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}
+
|Material={{#cargo_query:tables=Materials|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
 +
 
 +
# Gift with Text
 +
-->
 +
|Gift={{#cargo_query:tables=Gifts|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
 +
 
 +
# Resource with Text
 +
-->
 +
|Resource=[[File:Icon_Resource_{{{2|}}}.png|{{{size|80px}}}|link={{{link|{{{2|}}}}}}]] [[{{{2}}}]]<!--
 +
 
 +
# Currency with Text
 +
-->
 +
|Currency=[[File:Icon_{{{2|}}}.png|{{{size|80px}}}|link={{{link|{{{2|}}}}}}]] [[{{{2}}}]]<!--
 +
 
 +
# Facility with Text
 +
-->
 +
|Facility={{#ifexist:{{#cargo_query:tables=Facilities|fields=CONCAT('File:TW02_', Id, '_IMG_01_01.png')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|no html}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|limit=1|more results text=|default=[[{{{2}}}]]}}}}<!--
 +
 
 +
# CoAbility with Text
 +
-->
 +
|CoAbility={{#cargo_query:tables=CoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
 +
 
 +
# Chain CoAbility with Text
 +
-->
 +
|ChainCoAbility={{#cargo_query:tables=ChainCoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
 +
 
 +
# Ability with Text
 +
-->
 +
|Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}<!--
 +
 
 +
# Affliction with Text
 +
-->
 +
|Affliction=[[File:Affliction {{lc:{{{2|}}}}} large icon.png|{{{size|80px}}}|link={{{2|}}}]] [[{{{2|}}}]]<!--
 +
 
 +
# Condition with Text
 +
-->
 +
|Condition={{#cargo_query:tables=Conditions|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Icon, '|{{{size|80px}}}|link=',{{{link|_pageName}}}, ']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}}
 
}}  
 
}}  
 +
|{{#switch:{{{1|}}}<!--
 +
 +
# Adventurer without Text
 +
-->
 +
|Adventurer={{#cargo_query:tables=Adventurers|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, ' 0', VariationId, ' r0', {{{rarity|Rarity}}}, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Wyrmprint without Text
 +
-->
 +
|Wyrmprint={{#invoke:Icon|Wyrmprint|{{{2}}}|size={{{size|}}}|link={{{link|}}}}}<!--
 +
 +
# Dragon without Text
 +
-->
 +
|Dragon={{#cargo_query:tables=Dragons|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Weapon without Text
 +
-->
 +
|Weapon={{#cargo_query:tables=Weapons|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 01 ', FormId, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Consumable without Text
 +
-->
 +
|Consumable={{#cargo_query:tables=Consumables|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Skill without Text
 +
-->
 +
|Skill={{#cargo_query:tables=Skills|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR SkillId LIKE "%{{{2}}}%"|fields=CONCAT('[[File:', SkillLv1IconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Material without Text
 +
-->
 +
|Material={{#cargo_query:tables=Materials|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Gift without Text
 +
-->
 +
|Gift={{#cargo_query:tables=Gifts|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Resource without Text
 +
-->
 +
|Resource=[[File:Icon_Resource_{{{2|}}}.png|{{{size|80px}}}|link={{{link|{{{2|}}}}}}]]<!--
 +
 +
# Currency without Text
 +
-->
 +
|Currency=[[File:Icon_{{{2|}}}.png|{{{size|80px}}}|link={{{link|{{{2|}}}}}}]]<!--
 +
 +
# Facility without Text
 +
-->
 +
|Facility={{#ifexist:{{#cargo_query:tables=Facilities|fields=CONCAT('File:TW02_', Id, '_IMG_01_01.png')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|no html}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|group by=_pageName|limit=1|more results text=|default=}}|{{#cargo_query:tables=Facilities|fields=CONCAT('[[File:TW02_', Id, '_IMG_01.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|limit=1|more results text=|default=}}}}<!--
 +
 +
# CoAbility without Text
 +
-->
 +
|CoAbility={{#cargo_query:tables=CoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Chain CoAbility without Text
 +
-->
 +
|ChainCoAbility={{#cargo_query:tables=ChainCoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Ability without Text
 +
-->
 +
|Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR Id="{{{2}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}<!--
 +
 +
# Affliction without Text
 +
-->
 +
|Affliction=[[File:Affliction {{lc:{{{2|}}}}} large icon.png|{{{size|80px}}}|link={{{2|}}}]]<!--
 +
 +
# Condition without Text
 +
-->
 +
|Condition={{#cargo_query:tables=Conditions|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Icon, '|{{{size|80px}}}|link=',{{{link|_pageName}}}, ']]')|group by=_pageName|limit=1|more results text=|default=}}
 +
}}
 
}}</span></includeonly>
 
}}</span></includeonly>

Latest revision as of 06:35, 24 July 2020

50px Documentation

Current Items Icon Template Works With

  • Adventurer
    Error: Table Adventurers not found.
  • Wyrmprint Lua error: Error: Table Wyrmprints not found..
  • Dragon
    Error: Table Dragons not found.
  • Weapon
    Error: Table Weapons not found.
  • Material
    Error: Table Materials not found.
  • Gift
    Error: Table Gifts not found.
  • Resource Icon Resource Mana.png Mana
  • Consumable
    Error: Table Consumables not found.
  • Facility
    • Error: Table Facilities not found.
    • Error: Table Facilities not found.
    • Error: Table Facilities not found.
  • Skill
    Error: Table Skills not found.
  • CoAbility
    Error: Table CoAbilities not found.
  • Chain CoAbility
    Error: Table ChainCoAbilities not found.
  • Ability
    Error: Table Abilities not found.
  • Afflictions Affliction poison large icon.png Poison
  • Condition
    Error: Table Conditions not found.

Examples

{{Icon|Adventurer|Lily}}
Error: Table Adventurers not found.
{{Icon|Adventurer|Lily|text=1}}, {{Icon|Adventurer|Lily|text=1}}, {{Icon|Adventurer|Pipple|text=1|rarity=5}}
Error: Table Adventurers not found.
,
Error: Table Adventurers not found.
,
Error: Table Adventurers not found.
{{Icon|Adventurer|Lily|size=42px}}
Error: Table Adventurers not found.

With and without custom Link

{{Icon|Ability|Dragon's Claws I|size=32px|text=1}}
{{Icon|Ability|Dragon's Claws I|size=32px|text=1|link="Dragon's Claws"}}
{{Icon|Ability|Dragon's Claws I|size=32px|text=1|link=Dragon's Claws}} <-- no quotes: errors out
Error: Table Abilities not found.
Error: Table Abilities not found.
Error: unclosed string literal.