Editing Template:Infobox hero/docGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
{{Infobox hero | |||
|key=hero_atlas | |key=hero_atlas | ||
|card=Abrams card.png | |||
|voice_actor=Samoa Joe | |voice_actor=Samoa Joe | ||
|release_date=April 16, 2024 | |release_date=April 16, 2024 | ||
|codenames=Atlas; Bull | |codenames=Atlas; Bull | ||
}} | }} | ||
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 | For example this "key" fills infobox with data for {{HeroIcon|Ivy}} | ||
<pre>|key = hero_tengu</pre> | <pre>|key = hero_tengu</pre> | ||
or | or | ||
<pre>|key = Ivy</pre> | <pre>|key = Ivy</pre> | ||
Rows for Bullet Resist, Spirit Resist, Melee Resist, and Lifesteal will automatically hide themselves if the hero has 0 base value and no scaling for that stat. | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "name": {}, | ||
"card": { | "card": { | ||
"description": " | "description": "Adds hero's portrait", | ||
"example": "Abrams card.png | "example": "Abrams card.png" | ||
}, | }, | ||
"weapon_name": {}, | |||
"dps": {}, | "dps": {}, | ||
"bullet_damage": {}, | "bullet_damage": {}, | ||
"ammo": {}, | "ammo": {}, | ||
"bullets_per_sec": {}, | "bullets_per_sec": {}, | ||
| Line 109: | Line 34: | ||
"light_melee": {}, | "light_melee": {}, | ||
"heavy_melee": {}, | "heavy_melee": {}, | ||
"range": {}, | |||
"max_range": { | "max_range": { | ||
"description": " | "description": "For Bebop" | ||
" | }, | ||
"crit_scale": { | |||
"description": "If the hero has crit scale (Kelvin and Vyper)" | |||
}, | }, | ||
"max_health": {}, | "max_health": {}, | ||
"health_regen": {}, | "health_regen": {}, | ||
"crit_reduction": { | "crit_reduction": { | ||
"description": " | "description": "If the hero has crit reduction (Seven and Mo & Krill)" | ||
}, | }, | ||
"bullet_resist": {}, | "bullet_resist": {}, | ||
"spirit_resist": {}, | "spirit_resist": {}, | ||
"melee_resist | "melee_resist": { | ||
"description": "Melee damage resistance percentage" | |||
"description": " | |||
}, | }, | ||
"bullet_lifesteal": { | "bullet_lifesteal": { | ||
"description": "Healing gained from bullet damage | "description": "Healing gained from bullet damage" | ||
}, | }, | ||
"spirit_lifesteal": { | "spirit_lifesteal": { | ||
"description": "Healing gained from spirit damage | "description": "Healing gained from spirit damage" | ||
}, | }, | ||
"move_speed": {}, | "move_speed": {}, | ||
| Line 134: | Line 61: | ||
"stamina": {}, | "stamina": {}, | ||
"stamina_cooldown": {}, | "stamina_cooldown": {}, | ||
"voice_actor": {}, | |||
"release_date": { | |||
"suggestedvalues": [ | |||
"Unreleased" | |||
] | |||
}, | |||
"codenames": { | |||
"description": "Alternative names used for this hero in the files" | |||
}, | |||
"no_icon": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Disables the small hero icon in the header", | |||
"type": "boolean", | |||
"default": "true" | |||
}, | |||
"no_spirit_resist": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Manual toggle to hide spirit resist. Now handled automatically by the module.", | |||
"type": "boolean" | |||
}, | |||
"no_bullet_resist": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Manual toggle to hide bullet resist. Now handled automatically by the module.", | |||
"type": "boolean" | |||
}, | |||
"key": { | |||
"description": "Autofills table contents from HeroData.json", | |||
"suggestedvalues": [ | |||
"hero_atlas", | |||
"hero_bebop", | |||
"hero_dynamo", | |||
"hero_orion", | |||
"hero_haze", | |||
"hero_inferno", | |||
"hero_tengu", | |||
"hero_kelvin", | |||
"hero_ghost", | |||
"hero_lash", | |||
"hero_forge", | |||
"hero_mirage", | |||
"hero_krill", | |||
"hero_chrono", | |||
"hero_synth", | |||
"hero_gigawatt", | |||
"hero_shiv", | |||
"hero_hornet", | |||
"hero_viscous", | |||
"hero_warden", | |||
"hero_wraith", | |||
"hero_yamato", | |||
"hero_astro", | |||
"hero_nano", | |||
"hero_wrecker", | |||
"hero_kali", | |||
"hero_cadence" | |||
], | |||
"required": true, | |||
"type": "string" | |||
}, | |||
"icon": {}, | |||
"no_summary": { | |||
"type": "boolean", | |||
"autovalue": "true", | |||
"description": "Disables the Role/Playstyle summary tags at the bottom" | |||
}, | |||
"pronouns": { | |||
"description": "Character pronouns (e.g. He/Him, They/Them)" | |||
}, | |||
"no_name": { | |||
"description": "Uses standard text name instead of the hero logo image", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"true" | |||
] | |||
}, | |||
"font-size": { | |||
"description": "Override for hero name font size if wrapping occurs (default 25px)" | |||
}, | |||
"weapon-font-size": { | |||
"description": "Override for weapon name font size if wrapping occurs (default 19px)" | |||
}, | |||
"no_falloff": { | |||
"description": "If the weapon has no falloff (Celeste)", | |||
"type": "boolean", | |||
"default": "true" | |||
}, | |||
"spirit_power": { | "spirit_power": { | ||
"description": "Base spirit power and scaling." | "description": "Base spirit power and scaling" | ||
}, | |||
"no_ammo": { | |||
"description": "if the gun has no ammo count and no reload (Silver)", | |||
"type": "boolean", | |||
"default": "true" | |||
}, | |||
"bullets_per_burst": { | |||
"description": "For heroes with weapons that fire in bursts (Seven, Paradox, Sinclair, Lash)." | |||
} | } | ||
}, | }, | ||
"description": "Automated infobox for Deadlock heroes.", | |||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"key", | "key", | ||
"card", | "card", | ||
"weapon_name", | |||
"icon", | "icon", | ||
"name", | "name", | ||
"dps", | "dps", | ||
"bullet_damage", | "bullet_damage", | ||
"ammo", | "ammo", | ||
"bullets_per_sec", | "bullets_per_sec", | ||
| Line 163: | Line 181: | ||
"light_melee", | "light_melee", | ||
"heavy_melee", | "heavy_melee", | ||
"range", | |||
"max_range", | "max_range", | ||
"crit_scale", | |||
"max_health", | "max_health", | ||
"health_regen", | "health_regen", | ||
| Line 170: | Line 190: | ||
"spirit_resist", | "spirit_resist", | ||
"melee_resist", | "melee_resist", | ||
"bullet_lifesteal", | "bullet_lifesteal", | ||
"spirit_lifesteal", | "spirit_lifesteal", | ||
| Line 177: | Line 196: | ||
"stamina", | "stamina", | ||
"stamina_cooldown", | "stamina_cooldown", | ||
"spirit_power" | "voice_actor", | ||
"release_date", | |||
"codenames", | |||
"pronouns", | |||
"font-size", | |||
"weapon-font-size", | |||
"spirit_power", | |||
"no_summary", | |||
"no_name", | |||
"no_icon", | |||
"no_spirit_resist", | |||
"no_bullet_resist", | |||
"no_falloff", | |||
"no_ammo", | |||
"bullets_per_burst" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly>[[Category:Infobox templates|Hero]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Infobox templates|Hero]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||