Editing Template:HeroIcon/docGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This template | This icon link template is used to add a small headshot of the hero with a link. | ||
== Examples == | |||
<pre style="width:50%"> | |||
{{HeroIcon|Lash}} | |||
</pre> | |||
{{HeroIcon|Lash}} | |||
<pre style="width:50%"> | |||
{{HeroIcon|Lash|Jacob}} | |||
</pre> | |||
{{HeroIcon|Lash|Jacob}} | |||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{HeroIcon| | {{HeroIcon|Abrams|Абрамс|subpage=/ru}} | ||
</pre> | </pre> | ||
{{HeroIcon| | {{HeroIcon|Abrams|Абрамс|subpage=/ru}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "2": { | ||
"description": " | "description": "Set the alternative text to display.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "icon": { | ||
" | "aliases": [ | ||
"1" | |||
], | |||
"type": "string", | "type": "string", | ||
" | "description": "Set the image file name.", | ||
"required": true | |||
}, | }, | ||
"size": { | "size": { | ||
"type": "number", | |||
"type": " | "description": "Set the size of the icon in px.", | ||
"description": " | "example": "20, 24, 32", | ||
"example": " | "default": "25" | ||
" | |||
} | } | ||
}, | }, | ||
"format": "inline", | "format": "inline", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "icon", | ||
" | "2", | ||
"size" | |||
] | |||
"size | |||
] | |||
} | } | ||
</templatedata | </templatedata><noinclude>[[Category:Template documentation]]</noinclude> | ||