Template:Infobox hero/doc: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) css |
corrected wording. minimap icons are different files, they have extremely low resolution and sometimes decreased detail so using chat icons imo is preferable to correcting them to be the actual map icons |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{TS}}{{Infobox hero | {{TS}}{{TS|Infobox hero/themes.css}}{{Infobox hero | ||
|key=hero_atlas | |key=hero_atlas | ||
|voice_actor=Samoa Joe | |voice_actor=Samoa Joe | ||
|release_date=April 16, 2024 | |release_date=April 16, 2024 | ||
|codenames=Atlas; Bull | |codenames=Atlas; Bull | ||
}} | }} | ||
== Summary == | == Summary == | ||
This template fills in most parameters for an Infobox automatically with data from [[Data:HeroData.json]], including base stats | This template fills in most parameters for an Infobox automatically with data from [[Data:HeroData.json]], including base stats and scaling from Levels (Boons) or Spirit Power. Rendering is handled by [[Module:InfoboxHero]], where the row layout is defined as a configuration table at the top of the module. Per-hero colors, backgrounds and logo sizes come from [[Data:Infobox hero.json]]. | ||
The hero's code name or their capitalized English name ''must'' be entered in the "key" parameter first. Code name is preferable because it loads faster. | The hero's code name or their capitalized English name ''must'' be entered in the "key" parameter first. Code name is preferable because it loads faster. | ||
| Line 16: | Line 15: | ||
<pre>|key = Ivy</pre> | <pre>|key = Ivy</pre> | ||
Certain rows, such as Bullet Resist, Spirit Resist, Melee Resist, and Lifesteal, will automatically hide themselves if the hero has 0 base value (and no scaling) for that row's statistic. | Certain rows, such as Bullet Resist, Spirit Resist, Melee Resist, Debuff Resist, and Lifesteal, will automatically hide themselves if the hero has 0 base value (and no scaling) for that row's statistic. The "Information" section hides itself entirely unless at least one of its parameters is provided. | ||
All base values can be overwritten for rare situations that cannot be immediately automated, but should otherwise be left alone. | All base values can be overwritten for rare situations that cannot be immediately automated, but should otherwise be left alone. | ||
| Line 29: | Line 28: | ||
"params": { | "params": { | ||
"key": { | "key": { | ||
"description": "The hero's key word, used to auto-fill table contents from \"Data:HeroData.json\". Can be the hero's capitalized name in English or the hero's in-game code name.", | "description": "The hero's key word, used to auto-fill table contents from \"Data:HeroData.json\". Can be the hero's capitalized name in English or the hero's in-game code name.", | ||
"type": "string", | "type": "string", | ||
" | "example": "hero_atlas", | ||
"required": true, | "required": true, | ||
"default": "hero_targetdummy" | "default": "hero_targetdummy" | ||
}, | |||
"voice_actor": { | |||
"description": "Voice actor(s) for the hero. Footnotes providing sources can (and should) be added when possible.", | |||
"example": "Samoa Joe <ref>[https://www.imdb.com/title/tt33268153/fullcredits/Deadlock] on [https://www.imdb.com/IMDb]</ref>", | |||
"suggested": true | |||
}, | |||
"release_date": { | |||
"description": "Date of the official release of the hero.", | |||
"example": "April 24, 2024", | |||
"suggested": true | |||
}, | |||
"codenames": { | |||
"description": "Alternative names used for this hero, found inside of game files.", | |||
"example": "Atlas; Bull", | |||
"suggested": true | |||
}, | |||
"pronouns": { | |||
"description": "Character pronouns assumed from in-game text/voice-lines or other official information.", | |||
"example": "He/Him, She/Her, They/Them, He/Them, She/Them" | |||
}, | |||
"show_hero_tags": { | |||
"description": "Shows (true) or hides (false) the three-word hero tags shown in the roster screen. (ex. \"Tank, Brawler, Bull-Headed\" for Abrams). Heroes without tags omit the row automatically.", | |||
"type": "boolean", | |||
"default": "true" | |||
}, | |||
"show_icon": { | |||
"description": "Shows (true) or hides (false) the icon used by the hero in the in-game chat.", | |||
"type": "boolean", | |||
"default": "true" | |||
}, | |||
"no_ammo": { | |||
"description": "If set to true, disables the \"Ammo\" and \"Reload Time\" statistics.", | |||
"type": "boolean", | |||
"default": "false" | |||
}, | |||
"nocat": { | |||
"description": "If set to true, suppresses all automatic categories. Categories are only ever added in the main namespace, and never for disabled heroes.", | |||
"type": "boolean", | |||
"default": "false" | |||
}, | |||
"name_font_size": { | |||
"description": "Sets the size of the font for hero names that do not have a logo image. Only has an effect when \"<Name>_name.svg\" is missing, which includes every hero on languages that have no localized logos.", | |||
"example": "25px", | |||
"default": "25px" | |||
}, | }, | ||
"card": { | "card": { | ||
"description": "A file name | "description": "A file name, including the extension, used as the hero's portrait. Falls back to \"Dummy card.png\" if the file does not exist. NOTE: Only use for overriding automatic data.", | ||
"example": "Abrams card.png", | "example": "Abrams card.png", | ||
"type": "string", | "type": "string", | ||
"default": "<Hero name> card.png" | |||
"default": " | |||
}, | }, | ||
" | "icon": { | ||
"description": " | "description": "The hero's chat icon, given WITHOUT the \".png\" extension. NOTE: Only use for overriding automatic data.", | ||
"example": "Abrams", | |||
"type": "string", | "type": "string", | ||
" | "default": "<Hero name>" | ||
}, | }, | ||
"name": { | "name": { | ||
" | "description": "Overrides the hero's name. Used both for the displayed title and to locate the name logo at \"<name>_name.svg\", so give a hero name, NOT a file name. (Silver (Transformed) uses \"Silver\" to reuse Silver's logo.)", | ||
"example": "Silver", | |||
"example": " | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"dps": {}, | "dps": {}, | ||
"bullet_damage": {}, | "bullet_damage": {}, | ||
"pellets_per_shot": { | |||
"description": "For heroes with shotgun-type weapons that fire multiple bullets all at once, at the same time. (Silver, Abrams, Shiv, etc.) The row is hidden when the value is 1 or less." | |||
}, | |||
"bullets_per_burst": { | |||
"description": "For heroes with weapons that fire multiple bullets in longer bursts, instead of all at once. (Seven, Paradox, Sinclair, Lash) The row is hidden when the value is 1 or less." | |||
}, | |||
"ammo": {}, | "ammo": {}, | ||
"bullets_per_sec": {}, | "bullets_per_sec": {}, | ||
| Line 136: | Line 109: | ||
"light_melee": {}, | "light_melee": {}, | ||
"heavy_melee": {}, | "heavy_melee": {}, | ||
"max_range": { | "max_range": { | ||
"description": "Maximum distance the bullet can reach. (Bebop)", | "description": "Maximum distance the bullet can reach. The row only appears when this is provided. (Bebop)", | ||
"example": "32{{PI|2}}" | "example": "32{{PI|2}}" | ||
}, | }, | ||
"max_health": {}, | "max_health": {}, | ||
| Line 153: | Line 121: | ||
"spirit_resist": {}, | "spirit_resist": {}, | ||
"melee_resist": {}, | "melee_resist": {}, | ||
"debuff_resist": { | |||
"description": "Base debuff resistance, as a percentage. (Mina)" | |||
}, | |||
"bullet_lifesteal": { | "bullet_lifesteal": { | ||
"description": "Healing gained from bullet damage inflicted to other heroes." | "description": "Healing gained from bullet damage inflicted to other heroes." | ||
| Line 163: | Line 134: | ||
"stamina": {}, | "stamina": {}, | ||
"stamina_cooldown": {}, | "stamina_cooldown": {}, | ||
"spirit_power": { | "spirit_power": { | ||
"description": "Base spirit power and scaling." | "description": "Base spirit power and scaling." | ||
} | } | ||
}, | }, | ||
| Line 271: | Line 147: | ||
"show_hero_tags", | "show_hero_tags", | ||
"show_icon", | "show_icon", | ||
"no_ammo", | "no_ammo", | ||
"nocat", | |||
"name_font_size", | "name_font_size", | ||
"card", | "card", | ||
"icon", | "icon", | ||
"name", | "name", | ||
"dps", | "dps", | ||
"bullet_damage", | "bullet_damage", | ||
"pellets_per_shot", | |||
"bullets_per_burst", | |||
"ammo", | "ammo", | ||
"bullets_per_sec", | "bullets_per_sec", | ||
| Line 287: | Line 163: | ||
"light_melee", | "light_melee", | ||
"heavy_melee", | "heavy_melee", | ||
"max_range", | "max_range", | ||
"max_health", | "max_health", | ||
"health_regen", | "health_regen", | ||
"crit_reduction", | "crit_reduction", | ||
"bullet_resist", | "bullet_resist", | ||
"spirit_resist", | "spirit_resist", | ||
"melee_resist", | "melee_resist", | ||
"debuff_resist", | |||
"bullet_lifesteal", | "bullet_lifesteal", | ||
"spirit_lifesteal", | "spirit_lifesteal", | ||
| Line 304: | Line 177: | ||
"stamina", | "stamina", | ||
"stamina_cooldown", | "stamina_cooldown", | ||
"spirit_power | "spirit_power" | ||
], | ], | ||
"description": "Automated infobox for Deadlock heroes." | "description": "Automated infobox for Deadlock heroes." | ||
Latest revision as of 19:48, 19 August 2026

| |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||
| |||||||||||||||||||
| Information | |||||||||||||||||||
| |||||||||||||||||||
Summary
[edit source]This template fills in most parameters for an Infobox automatically with data from Data:HeroData.json, including base stats and scaling from Levels (Boons) or Spirit Power. Rendering is handled by Module:InfoboxHero, where the row layout is defined as a configuration table at the top of the module. Per-hero colors, backgrounds and logo sizes come from Data:Infobox hero.json.
The hero's code name or their capitalized English name must be entered in the "key" parameter first. Code name is preferable because it loads faster.
For example, this "key" fills the Infobox with data for Ivy:
|key = hero_tengu
or
|key = Ivy
Certain rows, such as Bullet Resist, Spirit Resist, Melee Resist, Debuff Resist, and Lifesteal, will automatically hide themselves if the hero has 0 base value (and no scaling) for that row's statistic. The "Information" section hides itself entirely unless at least one of its parameters is provided.
All base values can be overwritten for rare situations that cannot be immediately automated, but should otherwise be left alone.
If no valid hero is provided, the template will default on TargetDummy (the default character used in Sandbox modes).
Documentation
[edit source]Description:
Automated infobox for Deadlock heroes.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| key | key | The hero's key word, used to auto-fill table contents from "Data:HeroData.json". Can be the hero's capitalized name in English or the hero's in-game code name.
| String | required |
| voice_actor | voice_actor | Voice actor(s) for the hero. Footnotes providing sources can (and should) be added when possible.
| Unknown | suggested |
| release_date | release_date | Date of the official release of the hero.
| Unknown | suggested |
| codenames | codenames | Alternative names used for this hero, found inside of game files.
| Unknown | suggested |
| pronouns | pronouns | Character pronouns assumed from in-game text/voice-lines or other official information.
| Unknown | optional |
| show_hero_tags | show_hero_tags | Shows (true) or hides (false) the three-word hero tags shown in the roster screen. (ex. "Tank, Brawler, Bull-Headed" for Abrams). Heroes without tags omit the row automatically.
| Boolean | optional |
| show_icon | show_icon | Shows (true) or hides (false) the icon used by the hero in the in-game chat.
| Boolean | optional |
| no_ammo | no_ammo | If set to true, disables the "Ammo" and "Reload Time" statistics.
| Boolean | optional |
| nocat | nocat | If set to true, suppresses all automatic categories. Categories are only ever added in the main namespace, and never for disabled heroes.
| Boolean | optional |
| name_font_size | name_font_size | Sets the size of the font for hero names that do not have a logo image. Only has an effect when "<Name>_name.svg" is missing, which includes every hero on languages that have no localized logos.
| Unknown | optional |
| card | card | A file name, including the extension, used as the hero's portrait. Falls back to "Dummy card.png" if the file does not exist. NOTE: Only use for overriding automatic data.
| String | optional |
| icon | icon | The hero's chat icon, given WITHOUT the ".png" extension. NOTE: Only use for overriding automatic data.
| String | optional |
| name | name | Overrides the hero's name. Used both for the displayed title and to locate the name logo at "<name>_name.svg", so give a hero name, NOT a file name. (Silver (Transformed) uses "Silver" to reuse Silver's logo.)
| String | optional |
| dps | dps | no description | Unknown | optional |
| bullet_damage | bullet_damage | no description | Unknown | optional |
| pellets_per_shot | pellets_per_shot | For heroes with shotgun-type weapons that fire multiple bullets all at once, at the same time. (Silver, Abrams, Shiv, etc.) The row is hidden when the value is 1 or less. | Unknown | optional |
| bullets_per_burst | bullets_per_burst | For heroes with weapons that fire multiple bullets in longer bursts, instead of all at once. (Seven, Paradox, Sinclair, Lash) The row is hidden when the value is 1 or less. | Unknown | optional |
| ammo | ammo | no description | Unknown | optional |
| bullets_per_sec | bullets_per_sec | no description | Unknown | optional |
| reload_time | reload_time | no description | Unknown | optional |
| bullet_velocity | bullet_velocity | no description | Unknown | optional |
| light_melee | light_melee | no description | Unknown | optional |
| heavy_melee | heavy_melee | no description | Unknown | optional |
| max_range | max_range | Maximum distance the bullet can reach. The row only appears when this is provided. (Bebop)
| Unknown | optional |
| max_health | max_health | no description | Unknown | optional |
| health_regen | health_regen | no description | Unknown | optional |
| crit_reduction | crit_reduction | Percentage (+ or -) that is multiplied to the critical damage (ex. headshots) received from other heroes, increasing/reducing critical damage intake. (Mo & Krill, Rem, Seven) | Unknown | optional |
| bullet_resist | bullet_resist | no description | Unknown | optional |
| spirit_resist | spirit_resist | no description | Unknown | optional |
| melee_resist | melee_resist | no description | Unknown | optional |
| debuff_resist | debuff_resist | Base debuff resistance, as a percentage. (Mina) | Unknown | optional |
| bullet_lifesteal | bullet_lifesteal | Healing gained from bullet damage inflicted to other heroes. | Unknown | optional |
| spirit_lifesteal | spirit_lifesteal | Healing gained from spirit damage inflicted to other heroes. | Unknown | optional |
| move_speed | move_speed | no description | Unknown | optional |
| sprint_speed | sprint_speed | no description | Unknown | optional |
| stamina | stamina | no description | Unknown | optional |
| stamina_cooldown | stamina_cooldown | no description | Unknown | optional |
| spirit_power | spirit_power | Base spirit power and scaling. | Unknown | optional |
