Template:AbilityIcon: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m new format doesnt require specifying |hero parameter |
m Migrated to Abilities/icon module |
||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke: | <includeonly>{{#invoke:Abilities/icon|write_ability_icon|{{{1}}}|{{{2|}}}}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Icon templates]] | [[Category:Icon templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 16:48, 26 October 2024
Usage
This template creates a small ability icon. The label and link will be automatically translated on a language subpage.
For more details, see Module:Icon.
Examples
{{AbilityIcon|Time Wall}}
{{AbilityIcon|Death Slam|l1=Slam}}
{{AbilityIcon|Willpower|size=40px}}
Script error: The function "write_ability_icon" does not exist. Script error: The function "write_ability_icon" does not exist. Script error: The function "write_ability_icon" does not exist.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Ability name. | String | required |
| l1 | l1 | Custom text. | String | optional |
| link | link | Custom link. | String | optional |
| image | image | Custom image.
| String | optional |
| size | size | Icon size.
| String | optional |
| no-link | no-link | Removes the target link.
| Boolean | optional |
| no-file | no-file | Removes the file image.
| Boolean | optional |
| icon-only | icon-only | Removes any text.
| Boolean | optional |