Template:HeroIcon/doc: Difference between revisions
Appearance
m example for subpage parameter |
Gammaton32 (talk | contribs) No edit summary |
||
Line 25: | Line 25: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "1": { | ||
"aliases": [ | "aliases": [ | ||
" | "icon" | ||
], | ], | ||
"type": "string", | "type": "string", | ||
Line 42: | Line 42: | ||
"format": "inline", | "format": "inline", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "1", | ||
"2", | "2", | ||
"size" | "size" |
Latest revision as of 16:51, 18 February 2025
Usage[edit source]
This icon link template is used to add a small headshot of the hero with a link.
Examples[edit source]
{{HeroIcon|Lash}}
{{HeroIcon|Lash|Jacob}}
{{HeroIcon|Abrams|Абрамс|subpage=/ru}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 icon | Set the image file name. | String | required |
2 | 2 | Set the alternative text to display. | String | optional |
size | size | Set the size of the icon in px.
| Number | optional |