Template:HeroIcon: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
No edit summary
Mixorio (talk | contribs)
mNo edit summary
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude><span style="position: relative; bottom: 2px;">[[File:{{{Hero}}} MM.png|link={{{Hero}}}|{{{size|24px}}}]]</span></onlyinclude>
<includeonly><span style="position: relative; bottom: 2px;">[[File:{{{icon|{{{1|}}}}}} MM.png|alt=|link={{{3|{{{1|}}}}}}|{{{size|25px}}}]]</span> [[{{{3|{{{1|}}}}}}|{{{2|{{{1|}}}}}}]]</includeonly><noinclude>{{Documentation}}
 
[[Category:Icon templates]]</noinclude>
== Code ==
<nowiki>{{HeroIcon|Hero=hero_name|size=24px}}</nowiki>
 
==== Examples ====
{{HeroIcon|Hero=Abrams}} Abrams
 
{{HeroIcon|Hero=Bebop}} Bebop
 
{{HeroIcon|Hero=Infernus|size=50px}} Infernus
 
{{HeroIcon|Hero=Haze}} Haze
 
{{HeroIcon|Hero=Yamato}} Yamato

Latest revision as of 10:51, 20 October 2024

Template documentation [view] [edit] [history] [purge]

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[Edit template data]

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