Difference between revisions of "Template:Icon"
Jump to navigation
Jump to search
>Caledor92 |
>Caledor92 |
||
| Line 12: | Line 12: | ||
|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=', _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=', _pageName, ']] [[',_pageName,'|',Name,']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|limit=1|more results text=|default=[[{{{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=', _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=', _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}}}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=', _pageName, ']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}} | |CoAbility={{#cargo_query:tables=CoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=', _pageName, ']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}} | ||
| − | |Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" | + | |Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=', _pageName, ']] [[',_pageName,'|',Name,']]')|group by=_pageName|limit=1|more results text=|default=[[{{{2}}}]]}} |
}} | }} | ||
|{{#switch:{{{1|}}} | |{{#switch:{{{1|}}} | ||
| Line 27: | Line 27: | ||
|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=', _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=', _pageName, ']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|limit=1|more results text=|default=}}}} | |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=', _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=', _pageName, ']]')|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|limit=1|more results text=|default=}}}} | ||
|CoAbility={{#cargo_query:tables=CoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=', _pageName, ']]')|group by=_pageName|limit=1|more results text=|default=}} | |CoAbility={{#cargo_query:tables=CoAbilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=', _pageName, ']]')|group by=_pageName|limit=1|more results text=|default=}} | ||
| − | |Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" | + | |Ability={{#cargo_query:tables=Abilities|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', AbilityIconName, '.png|{{{size|80px}}}|link=', _pageName, ']]')|group by=_pageName|limit=1|more results text=|default=}} |
}} | }} | ||
}}</span></includeonly> | }}</span></includeonly> | ||
Revision as of 12:28, 28 October 2019
Current Items Icon Template Works With
- Adventurer Error: Table Adventurers not found.
- Wyrmprint 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
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
- Ability Error: Table Abilities not found.
- Afflictions
- Condition
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: Table Abilities not found.