Template:HeroIcon: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
East (talk | contribs)
No edit summary
Sylphoid (talk | contribs)
move docs
Line 1: Line 1:
<includeonly><span style="position: relative; bottom: 2px;">[[File:{{{Hero|{{{hero}}}}}} MM.png|link={{{Hero|{{{hero}}}}}}|{{{size|24px}}}]]</span></includeonly><noinclude>
<onlyinclude><span style="position: relative; bottom: 2px;">[[File:{{{Hero|{{{hero}}}}}} MM.png|link={{{Hero|{{{hero}}}}}}|{{{size|24px}}}]]</span></onlyinclude><noinclude>{{Documentation}}</noinclude>
 
== Code ==
<nowiki>{{HeroIcon|Hero=hero_name|size=24px}}</nowiki>
 
=== Examples ===
Code:
<nowiki>{{HeroIcon|Hero=Abrams}}</nowiki>
 
Result:<br />
{{HeroIcon|Hero=Abrams}}
 
Code:
<nowiki>{{HeroIcon|Hero=Bebop}}</nowiki>
 
Result:<br />
{{HeroIcon|Hero=Bebop}}
 
Code:
<nowiki>{{HeroIcon|Hero=Infernus|size=50px}}</nowiki>
 
Result:<br />
{{HeroIcon|Hero=Infernus|size=50px}}
 
Code:
<nowiki>{{HeroIcon|Hero=Haze|size=100px}}</nowiki>
 
Result:<br />
{{HeroIcon|Hero=Haze|size=100px}}
 
Code:
<nowiki>{{HeroIcon|Hero=Yamato|size=150px}}</nowiki>
 
Result:<br />
{{HeroIcon|Hero=Yamato|size=150px}}
 
[[Category:Icon templates]]
</noinclude>

Revision as of 06:55, 17 September 2024

[[File:{{{hero}}} MM.png|link={{{hero}}}|24px]]

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

Usage

This icon link template is used to add a small headshot of the hero with a link.

Examples

{{HeroIcon|Lash}}

[[File:{{{hero}}} MM.png|link={{{hero}}}|24px]]

{{HeroIcon|Lash|Jacob}}

[[File:{{{hero}}} MM.png|link={{{hero}}}|24px]]

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