Template:HeroIcon: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
m subpage parameter |
||
| Line 1: | Line 1: | ||
<includeonly><span style="position: relative; bottom: 2px;">[[File:{{{icon|{{{1|}}}}}} MM.png|alt=|link={{{3|{{{1|}}}}}}|{{{size|25px}}}]]</span> [[{{{3|{{{1|}}}}}}|{{{2|{{{1|}}}}}}]]</includeonly><noinclude>{{Documentation}} | <includeonly><span style="position: relative; bottom: 2px;">[[File:{{{icon|{{{1|}}}}}} MM.png|alt=|link={{{3|{{{1|}}}}}}{{{subpage|}}}|{{{size|25px}}}]]</span> [[{{{3|{{{1|}}}}}}{{{subpage|}}}|{{{2|{{{1|}}}}}}]]</includeonly><noinclude>{{Documentation}} | ||
[[Category:Icon templates]]</noinclude> | [[Category:Icon templates]]</noinclude> | ||
Revision as of 00:53, 22 January 2025
Usage
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
{{HeroIcon|Trapper}}
{{HeroIcon|Dynamo|l1=Professor Dynamo}}
{{HeroIcon|Warden|size=40px}}
| 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 |