Template:HeroRosterCard: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
added DPS
use svg hero name
Line 6: Line 6:
| {{If lang
| {{If lang
   | <!-- 1st Parameter: English/Default -->
   | <!-- 1st Parameter: English/Default -->
     <div>{{Template:Icon/White|{{#ifexist:File:{{{name|{{#var:hero}}}}}_name.png|[[File:{{{name|{{#var:hero}}}}}_name.png|x35px|link={{{name|{{#var:hero}}}}}]]|[[{{{hero_link|{{{name|{{#var:hero}}}}}}}}|<span style=font-size:40px>{{{hero_loc|{{{name|{{#var:hero}}}}}}}}</span>]]}}}}</div>
     <div>{{Template:Icon/White|{{#ifexist:File:{{{name|{{#var:hero}}}}}_name.svg|[[File:{{{name|{{#var:hero}}}}}_name.svg|x35px|link={{{name|{{#var:hero}}}}}]]|[[{{{hero_link|{{{name|{{#var:hero}}}}}}}}|<span style=font-size:40px>{{{hero_loc|{{{name|{{#var:hero}}}}}}}}</span>]]}}}}</div>
   | <!-- 2nd Parameter: Other Languages -->
   | <!-- 2nd Parameter: Other Languages -->
     '''[[{{{hero_link|{{#var:hero}}}}}{{If_lang}}|<span style=color:#000000>{{{hero_loc|{{#var:hero}}}}}</span>]]'''
     '''[[{{{hero_link|{{#var:hero}}}}}{{If_lang}}|<span style=color:#000000>{{{hero_loc|{{#var:hero}}}}}</span>]]'''

Revision as of 20:38, 19 June 2026



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

Template for roster cards in the Hero page. This template should be used with Template:Roster.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
keykey

Internal name of the Hero, used to fill all parameters.

Example
hero_atlas, hero_bebop
Unknownrequired
no_nameno_name

Use plain text for hero name instead of image (localized names don't use image by default)

Default
true
Booleanoptional
no_tagsno_tags

Don't use hero tags

Default
true
Booleanoptional
langlang

Language of descriptions. Optional.

Default
English
Example
English
Unknownoptional
hero_linkhero_link

Link for hero page. Optional

Example
Abrams
Unknownoptional
hero_lochero_loc

Override hero name. Optional.

Example
Abrams
Unknownoptional
Ability1Ability1

The name of the character's first ability.

Example
Siphon Life
Unknownoptional
Ability2Ability2

The name of the character's second ability.

Default
Shoulder Charge
Example
Shoulder Charge
Unknownoptional
Ability3Ability3

The name of the character's third ability.

Default
Infernal Resilience
Example
Infernal Resilience
Unknownoptional
Ability4Ability4

The name of the character's ultimate.

Default
Seismic Impact
Example
Seismic Impact
Unknownoptional