Template:HeroIcon/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Usage == This icon link template is used to include a head shot of the hero. === Examples === <pre>{{HeroIcon|Hero=Abrams}}</pre> {{HeroIcon|Hero=Abrams}} <pre>{{HeroIcon|Hero=Bebop}}</pre> {{HeroIcon|Hero=Bebop}} <pre>{{HeroIcon|Hero=Infernus|size=50px}}</pre> {{HeroIcon|Hero=Infernus|size=50px}} <pre>{{HeroIcon|Hero=Haze|size=100px}}</pre> {{HeroIcon|Hero=Haze|size=100px}} <pre>{{HeroIcon|Hero=Yamato|size=150px}}</pre> {{HeroIcon|Hero=Yamato|size=150px}} <inclu..." |
cleanup, add templatedata |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This icon link template is used to | This icon link template is used to add a small headshot of the hero with a link. | ||
== Examples == | |||
<pre>{{HeroIcon| | <pre style="width:50%"> | ||
{{HeroIcon| | {{HeroIcon|Lash}} | ||
</pre> | |||
{{HeroIcon|Lash}} | |||
<pre>{{HeroIcon| | <pre style="width:50%"> | ||
{{HeroIcon| | {{HeroIcon|Lash|Jacob}} | ||
</pre> | |||
{{HeroIcon|Lash|Jacob}} | |||
< | <templatedata> | ||
{ | { | ||
"params": { | |||
"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 |