Difference between revisions of "Template:Icon"
Jump to navigation
Jump to search
>Eave m (fix chain switch case) |
>Eave (allow matching for skills with multiple IDs (agito skills)) |
||
| Line 23: | Line 23: | ||
# Weapon with Text | # Weapon with Text | ||
--> | --> | ||
| − | |Skill={{#cargo_query:tables=Skills|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR SkillId | + | |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}}}]]}}<!-- |
# Material with Text | # Material with Text | ||
| Line 81: | Line 81: | ||
# Skill without Text | # Skill without Text | ||
--> | --> | ||
| − | |Skill={{#cargo_query:tables=Skills|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" OR SkillId | + | |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 without Text | ||
Revision as of 02:25, 26 May 2020
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
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
- 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: unclosed string literal.