Jump to content

Template:HeroIcon/doc: Difference between revisions

From Deadlock Wiki
Sur (talk | contribs)
m example for subpage parameter
Gammaton32 (talk | contribs)
No edit summary
 
Line 25: Line 25:
"type": "string"
"type": "string"
},
},
"icon": {
"1": {
"aliases": [
"aliases": [
"1"
"icon"
],
],
"type": "string",
"type": "string",
Line 42: Line 42:
"format": "inline",
"format": "inline",
"paramOrder": [
"paramOrder": [
"icon",
"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}}

Lash

{{HeroIcon|Lash|Jacob}}

Jacob

{{HeroIcon|Abrams|Абрамс|subpage=/ru}}

Абрамс

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11 icon

Set the image file name.

Stringrequired
22

Set the alternative text to display.

Stringoptional
sizesize

Set the size of the icon in px.

Default
25
Example
20, 24, 32
Numberoptional