Template:AbilityIcon/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m new abilityicon |
m upd |
||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This template creates a small ability icon. The label and link will be automatically translated on a language subpage. See: [[Module:Icon/data]]. | |||
== Examples == | |||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{AbilityIcon| | {{AbilityIcon|Time Wall}} | ||
{{AbilityIcon|Death Slam|l1=Slam}} | |||
{{AbilityIcon|Willpower|size=40px}} | |||
</pre> | </pre> | ||
{{AbilityIcon|Time Wall}} | |||
{{AbilityIcon|Death Slam|l1=Slam}} | |||
{{AbilityIcon|Willpower|size=40px}} | |||
{{ | <templatedata> | ||
{ | |||
"params": { | |||
"1": { | |||
"description": "Ability name.", | |||
<noinclude>[[Category:Template documentation]]</noinclude> | "type": "string", | ||
"required": true | |||
}, | |||
"l1": { | |||
"description": "Custom text.", | |||
"type": "string" | |||
}, | |||
"size": { | |||
"default": "20px", | |||
"type": "string", | |||
"description": "Icon size.", | |||
"suggestedvalues": [ | |||
"30px", | |||
"40px", | |||
"50px" | |||
] | |||
}, | |||
"no-link": { | |||
"description": "Removes the link.", | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
] | |||
}, | |||
"icon-only": { | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Hides any text." | |||
} | |||
}, | |||
"format": "inline", | |||
"description": "" | |||
} | |||
</templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |||
Revision as of 21:44, 21 May 2025
Usage
This template creates a small ability icon. The label and link will be automatically translated on a language subpage. See: Module:Icon/data.
Examples
{{AbilityIcon|Time Wall}}
{{AbilityIcon|Death Slam|l1=Slam}}
{{AbilityIcon|Willpower|size=40px}}
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Ability name. | String | required |
| l1 | l1 | Custom text. | String | optional |
| size | size | Icon size.
| String | optional |
| no-link | no-link | Removes the link.
| Boolean | optional |
| icon-only | icon-only | Hides any text.
| Boolean | optional |