User:Samlovesmath/Template:Infobox hero/doc: Difference between revisionsGive feedback
Samlovesmath (talk | contribs) initialization |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Samlovesmath/Infobox_hero | {{User:Samlovesmath/Template:Infobox_hero | ||
|key=hero_atlas | |key=hero_atlas | ||
|voice_actor=Samoa Joe | |voice_actor=Samoa Joe | ||
| Line 96: | Line 96: | ||
"hero_yamato" | "hero_yamato" | ||
], | ], | ||
" | "required": true, | ||
" | "default": "hero_genericperson" | ||
}, | }, | ||
"card": { | "card": { | ||
| Line 103: | Line 103: | ||
"example": "Abrams card.png", | "example": "Abrams card.png", | ||
"type": "string", | "type": "string", | ||
"aliases": [ | "aliases": [ | ||
"portrait" | "portrait" | ||
] | ], | ||
"default": "Abrams card.png" | |||
}, | }, | ||
"weapon_name": { | "weapon_name": { | ||
| Line 188: | Line 188: | ||
"no_summary": { | "no_summary": { | ||
"description": "Deprecated version of \"show_hero_tags\".", | "description": "Deprecated version of \"show_hero_tags\".", | ||
"deprecated": "Use \"show_hero_tags\" instead.", | "deprecated": "Use \"show_hero_tags\" instead.", | ||
"type": "boolean" | "type": "boolean", | ||
"default": "false" | |||
}, | }, | ||
"show_hero_tags": { | "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)", | "description": "Shows (true) or hides (false) the three-word hero tags shown in the roster screen. (ex. \"Tank, Brawler, Bull-Headed\" for Abrams)", | ||
"type": "boolean", | "type": "boolean", | ||
" | "default": "true" | ||
}, | }, | ||
"show_logo": { | "show_logo": { | ||
| Line 203: | Line 203: | ||
"description": "Shows (true) or hides (false) the name logo displayed above the hero's portrait, if any. Hiding the logo replaces it with a normal text version.", | "description": "Shows (true) or hides (false) the name logo displayed above the hero's portrait, if any. Hiding the logo replaces it with a normal text version.", | ||
"type": "boolean", | "type": "boolean", | ||
" | "default": "true" | ||
}, | }, | ||
"show_icon": { | "show_icon": { | ||
"description": "Shows (true) or hides (false) the icon used by the hero in the in-game map.", | "description": "Shows (true) or hides (false) the icon used by the hero in the in-game map.", | ||
"type": "boolean", | "type": "boolean", | ||
" | "default": "true" | ||
}, | }, | ||
"no_spirit_resist": { | "no_spirit_resist": { | ||
"type": "boolean", | "type": "boolean", | ||
"deprecated": "Now handled automatically by the module.", | "deprecated": "Now handled automatically by the module.", | ||
"description": "Deprecated toggle to hide spirit resist. Is now handled automatically by the module." | "description": "Deprecated toggle to hide spirit resist. Is now handled automatically by the module.", | ||
"default": "false" | |||
}, | }, | ||
"no_falloff": { | "no_falloff": { | ||
"description": "If set to true, disables the \"Falloff Range\" statistic. (Celeste)", | "description": "If set to true, disables the \"Falloff Range\" statistic. (Celeste)", | ||
"type": "boolean", | "type": "boolean", | ||
" | "default": "false" | ||
}, | }, | ||
"no_ammo": { | "no_ammo": { | ||
"description": "If set to true, disables the \"Ammo\" and \"Reload time\" statistics. (Silver)", | "description": "If set to true, disables the \"Ammo\" and \"Reload time\" statistics. (Silver)", | ||
"type": "boolean", | "type": "boolean", | ||
" | "default": "false" | ||
}, | }, | ||
"no_name": { | "no_name": { | ||
| Line 230: | Line 230: | ||
"deprecated": "Use \"show_logo\" instead.", | "deprecated": "Use \"show_logo\" instead.", | ||
"type": "boolean", | "type": "boolean", | ||
" | "default": "false" | ||
}, | }, | ||
"no_icon": { | "no_icon": { | ||
"description": "Deprecated version of \"show_icon\".", | "description": "Deprecated version of \"show_icon\".", | ||
"deprecated": "Use \"show_icon\" instead.", | "deprecated": "Use \"show_icon\" instead.", | ||
"type": "boolean" | "type": "boolean", | ||
"default": "false" | |||
}, | }, | ||
"bullets_per_burst": { | "bullets_per_burst": { | ||
| Line 248: | Line 248: | ||
"description": "Deprecated toggle to hide bullet resist. Is now handled automatically by the module.", | "description": "Deprecated toggle to hide bullet resist. Is now handled automatically by the module.", | ||
"type": "boolean", | "type": "boolean", | ||
" | "deprecated": true, | ||
" | "default": "false" | ||
}, | |||
"name_font_size": { | |||
"aliases": [ | |||
"font-size", | |||
"font_size" | |||
], | |||
"description": "Sets the size of the font for hero names that do not have a logo image.", | |||
"example": "25px" | |||
} | } | ||
}, | }, | ||
| Line 264: | Line 272: | ||
"no_falloff", | "no_falloff", | ||
"no_ammo", | "no_ammo", | ||
"name_font_size", | |||
"card", | "card", | ||
"icon", | "icon", | ||
Latest revision as of 20:52, 30 July 2026

| Weapon: "Case Closed" | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
BASE STATS | |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||
|
Information | |||||||||||||||||||
| |||||||||||||||||||
Summary
[edit | edit source]Template fills in most parameters in Infobox automatically with data from Data:HeroData.json, including base stats and scaling from Levels (Boons) or Spirit Power.
You need to put hero's code name or their capitalized name in English in the "key" parameter first. Code name is preferable because it loads faster.
For example this "key" fills infobox with data for Ivy
|key = hero_tengu
or
|key = Ivy
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.
Documentation
[edit | 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 codename | 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)
| Boolean | optional |
| show_icon | show_icon | Shows (true) or hides (false) the icon used by the hero in the in-game map.
| Boolean | optional |
| show_logo | show_logo show_name | Shows (true) or hides (false) the name logo displayed above the hero's portrait, if any. Hiding the logo replaces it with a normal text version.
| Boolean | optional |
| no_falloff | no_falloff | If set to true, disables the "Falloff Range" statistic. (Celeste)
| Boolean | optional |
| no_ammo | no_ammo | If set to true, disables the "Ammo" and "Reload time" statistics. (Silver)
| Boolean | optional |
| name_font_size | name_font_size font-size font_size | Sets the size of the font for hero names that do not have a logo image.
| Unknown | optional |
| card | card portrait | A file name that will be linked as the hero's portrait. NOTE: Only use for overriding automatic data.
| String | optional |
| icon | icon | A file name that will be linked as the hero's map mini-icon. NOTE: Only use for overriding automatic data.
| String | optional |
| name | name logo | A file name that will be linked as the hero's name logo. NOTE: Only use for overriding automatic data.
| String | optional |
| weapon_name | weapon_name | Name of hero's weapon. NOTE: Only use for overriding automatic data.
| String | optional |
| dps | dps | no description | Unknown | optional |
| bullet_damage | bullet_damage | no description | 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 |
| range | range | no description | Unknown | optional |
| max_range | max_range | Maximum distance the bullet can reach. (Bebop)
| Unknown | optional |
| crit_scale | crit_scale | Percentage (+ or -) that is multiplied to the critical damage (ex. headshots), increasing/reducing the critical damage inflicted to other heroes. (Mo & Krill, Rem, Seven)
| 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 |
| 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) | Unknown | optional |
| bullets_per_shot | bullets_per_shot | For heroes with shotgun-type weapons that fire multiple bullets all at once, at the same time. (Silver, Abrams, Shiv, etc.) | 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 |
| 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 |
| no_summary | no_summary | Deprecated version of "show_hero_tags".
| Boolean | deprecated |
| no_name | no_name | Deprecated version of "show_logo".
| Boolean | deprecated |
| no_icon | no_icon | Deprecated version of "show_icon".
| Boolean | deprecated |
| no_bullet_resist | no_bullet_resist | Deprecated toggle to hide bullet resist. Is now handled automatically by the module.
| Boolean | deprecated |
| no_spirit_resist | no_spirit_resist | Deprecated toggle to hide spirit resist. Is now handled automatically by the module.
| Boolean | deprecated |
