Template:HeroIcon/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
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..."
 
Sylphoid (talk | contribs)
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 include a head shot of the hero.
This icon link template is used to add a small headshot of the hero with a link.  


=== Examples ===
== Examples ==
<pre>{{HeroIcon|Hero=Abrams}}</pre>
<pre style="width:50%">
{{HeroIcon|Hero=Abrams}}
{{HeroIcon|Lash}}
</pre>
{{HeroIcon|Lash}}


<pre>{{HeroIcon|Hero=Bebop}}</pre>
<pre style="width:50%">
{{HeroIcon|Hero=Bebop}}
{{HeroIcon|Lash|Jacob}}
</pre>
{{HeroIcon|Lash|Jacob}}


<pre>{{HeroIcon|Hero=Infernus|size=50px}}</pre>
<templatedata>
{{HeroIcon|Hero=Infernus|size=50px}}
{
 
"params": {
<pre>{{HeroIcon|Hero=Haze|size=100px}}</pre>
"2": {
{{HeroIcon|Hero=Haze|size=100px}}
"description": "Set the alternative text to display.",
 
"type": "string"
<pre>{{HeroIcon|Hero=Yamato|size=150px}}</pre>
},
{{HeroIcon|Hero=Yamato|size=150px}}
"icon": {
<includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
"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}}

Lash

{{HeroIcon|Lash|Jacob}}

Jacob

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
iconicon 1

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