Template:AbilityIcon/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m new abilityicon |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| 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. | |||
For more details, see [[Module:Icon]]. | |||
== 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" | |||
}, | |||
"link": { | |||
"description": "Custom link.", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"description": "Custom image.", | |||
"type": "string", | |||
"example": "Image.png, Image.svg" | |||
}, | |||
"size": { | |||
"default": "20px", | |||
"type": "string", | |||
"description": "Icon size.", | |||
"example": "30px, 40px, 50px" | |||
}, | |||
"no-link": { | |||
"description": "Removes the target link.", | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
] | |||
}, | |||
"no-file": { | |||
"description": "Removes the file image.", | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
] | |||
}, | |||
"icon-only": { | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes any text." | |||
} | |||
}, | |||
"format": "inline", | |||
"paramOrder": [ | |||
"1", | |||
"l1", | |||
"link", | |||
"image", | |||
"size", | |||
"no-link", | |||
"no-file", | |||
"icon-only" | |||
], | |||
"description": " " | |||
} | |||
</templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |||
Latest revision as of 21:26, 18 May 2026
Usage
[edit source]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
[edit source]{{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 |
| 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 |