Template:HeroRosterCard: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
simplified variables to call for name from hero key
No edit summary
Line 34: Line 34:
{
{
"params": {
"params": {
"hero": {
"description": "The name of the Hero. Used to write the title, summary and get the render image.",
"example": "Abrams",
"default": "Abrams",
"required": true
},
"lang": {
"lang": {
"description": "Language of descriptions. Optional.",
"description": "Language of descriptions. Optional.",
Line 55: Line 49:
"Ability1": {
"Ability1": {
"description": "The name of the character's first ability.",
"description": "The name of the character's first ability.",
"example": "Siphon Life",
"example": "Siphon Life"
"required": true
},
},
"Ability2": {
"Ability2": {
"description": "The name of the character's second ability.",
"description": "The name of the character's second ability.",
"example": "Shoulder Charge",
"example": "Shoulder Charge",
"default": "Shoulder Charge",
"default": "Shoulder Charge"
"required": true
},
},
"Ability3": {
"Ability3": {
"description": "The name of the character's third ability.",
"description": "The name of the character's third ability.",
"example": "Infernal Resilience",
"example": "Infernal Resilience",
"default": "Infernal Resilience",
"default": "Infernal Resilience"
"required": true
},
},
"Ability4": {
"Ability4": {
"description": "The name of the character's ultimate.",
"description": "The name of the character's ultimate.",
"example": "Seismic Impact",
"example": "Seismic Impact",
"default": "Seismic Impact",
"default": "Seismic Impact"
"required": true
},
},
"key": {
"key": {
"description": "Internal name of the Hero, used to grab summary and role.",
"description": "Internal name of the Hero, used to fill all parameters.",
"example": "hero_atlas, hero_bebop"
"example": "hero_atlas, hero_bebop",
"required": true
},
},
"no_name": {
"no_name": {
Line 93: Line 84:
"paramOrder": [
"paramOrder": [
"key",
"key",
"hero",
"lang",
"lang",
"hero_link",
"hero_link",

Revision as of 15:07, 8 February 2026

Error: Unknown name . - Error: Unknown name . - Error: Unknown name .


Hook - Bomb - Punch

Teamplay - Initiator - Clutch

Precision - Hunter - Area Denial

Assassin - Stealthy - Lethal

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
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
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