Editing Template:Infobox hero/docGive feedback
Jump to navigation
Jump to search
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 | ||
|art=Abrams full.png | |||
|card=Abrams card.png | |||
|no_spirit_resist=true | |||
|no_bullet_resist=true | |||
|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]]. | |||
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> | ||
<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 35: | ||
"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": {}, | ||
"move_speed": {}, | "move_speed": {}, | ||
"sprint_speed": {}, | "sprint_speed": {}, | ||
"stamina": {}, | "stamina": {}, | ||
"stamina_cooldown": {}, | "stamina_cooldown": {}, | ||
" | "voice_actor": {}, | ||
"description": " | "release_date": {}, | ||
"quotes": {}, | |||
"sounds": {}, | |||
"codenames": { | |||
"description": "Alternative names used for this hero in the files" | |||
}, | |||
"no_icon": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Disables icon" | |||
}, | |||
"no_spirit_resist": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes spirit resist from the table", | |||
"suggested": true | |||
}, | |||
"no_bullet_resist": { | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes bullet resist from the table", | |||
"suggested": true | |||
}, | |||
"key": { | |||
"description": "Autofills table contents", | |||
"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": "Infobox for 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 136: | ||
"light_melee", | "light_melee", | ||
"heavy_melee", | "heavy_melee", | ||
"range", | |||
"max_range", | "max_range", | ||
"crit_scale", | |||
"max_health", | "max_health", | ||
"health_regen", | "health_regen", | ||
| Line 169: | Line 144: | ||
"bullet_resist", | "bullet_resist", | ||
"spirit_resist", | "spirit_resist", | ||
"move_speed", | "move_speed", | ||
"sprint_speed", | "sprint_speed", | ||
"stamina", | "stamina", | ||
"stamina_cooldown", | "stamina_cooldown", | ||
" | "voice_actor", | ||
"release_date", | |||
"quotes", | |||
"sounds", | |||
"codenames", | |||
"no_summary", | |||
"no_icon", | |||
"no_spirit_resist", | |||
"no_bullet_resist" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly>[[Category:Infobox templates|Hero]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Infobox templates|Hero]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||