Template:HeroIcon/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 73: | Line 73: | ||
"no-file", | "no-file", | ||
"icon-only" | "icon-only" | ||
] | ], | ||
"description": " " | |||
} | } | ||
</templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 21:23, 18 May 2026
Usage
[edit source]This template creates a small hero icon. The label and link will be automatically translated on a language subpage.
For more details, see Module:Icon.
Examples
[edit source]{{HeroIcon|Trapper}}
{{HeroIcon|Dynamo|l1=Professor Dynamo}}
{{HeroIcon|Warden|size=40px}}
Trapper Professor Dynamo Warden
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Hero 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 |