Template:HeroIcon/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
cleanup, add templatedata |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This icon link template is used to add a small headshot of the hero with a link. | |||
== Examples == | |||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{HeroIcon| | {{HeroIcon|Lash}} | ||
</pre> | </pre> | ||
{{HeroIcon|Lash}} | |||
{{HeroIcon| | <pre style="width:50%"> | ||
{{HeroIcon|Lash|Jacob}} | |||
</pre> | |||
{{HeroIcon|Lash|Jacob}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
<noinclude>[[Category:Template documentation]]</noinclude> | "2": { | ||
"description": "Set the alternative text to display.", | |||
"type": "string" | |||
}, | |||
"icon": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"type": "string", | |||
"description": "Set the image file name.", | |||
"required": true | |||
}, | |||
"size": { | |||
"type": "number", | |||
"description": "Set the size of the icon in px.", | |||
"example": "20, 24, 32", | |||
"default": "25" | |||
} | |||
}, | |||
"format": "inline", | |||
"paramOrder": [ | |||
"icon", | |||
"2", | |||
"size" | |||
] | |||
} | |||
</templatedata><noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 21:57, 7 October 2024
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}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
icon | icon 1 | 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 |