Template:Hero infobox/doc

The Hero infobox is used within hero pages to quickly convey core information, such as a hero's strength, agility, intelligence, or more specific information such as their movement speed or sight range.

Should use Hero infobox wrapper for translation.

Usage
To implement the infobox, you simply add  to the top of a page - however there are numerous attributes that display by default and should be set.

To set attributes, you simply add a few lines before closing the template call (before the closing squiggly brackets - ), and add each attribute and it's values with.

Here's the code you should copy and fill in for each Hero page:

Attributes
There is an optional attribute that is only necessary when including this template on a page that is not a Hero page, and should not be set when this template is used on a Hero page.

Custom game support
Since custom games may have differently scaling stats, the template supports customizing stats like health, mana, armor, attack damage, etc gain per attribute point.

'Do not'' use these properties on the default Dota2 hero pages. They are set automatically for them.'''

TemplateData
{	"params": { "primary attribute": { "label": "Primary Attribute", "description": "A hero's primary attribute - strength, intelligence, or agility.", "example": "Strength", "type": "string", "required": true },		"title": { "label": "Title", "example": "Pudge", "type": "string", "required": true, "description": "The English name of the hero.", "autovalue": "" },		"image": { "label": "Image", "description": "The hero's image.", "example": "File:Pudge icon.png", "type": "wiki-file-name", "required": true },		"strength": { "label": "Strength", "description": "A hero's base strength value.", "example": "25", "type": "number", "required": true },		"strength growth": { "label": "Strength Growth", "description": "The rate at which a hero's strength increases.", "example": "3.5", "type": "number", "required": true },		"agility": { "label": "Agility", "description": "A hero's base agility value.", "example": "14", "type": "number", "required": true },		"agility growth": { "label": "Agility Growth", "description": "The rate at which a hero's agility increases.", "example": "1.5", "type": "number", "required": true },		"intelligence": { "label": "Intelligence", "description": "A hero's base intelligence.", "example": "14", "type": "number", "required": true },		"intelligence growth": { "label": "Intelligence Growth", "description": "The rate at which a hero's intelligence increases. ", "example": "1.5", "type": "number", "required": true },		"health": { "label": "Base Health", "description": "Customize the base health amount.", "type": "number", "default": "200", "deprecated": "Only use this for custom games." },		"custom bonus health": { "label": "Custom Bonus Health", "description": "Customize the health gain per strength point.", "type": "number", "default": "20", "deprecated": "Only use this for custom games." },		"mana": { "label": "Base Mana", "description": "Customize the base mana amount.", "type": "number", "default": "75", "deprecated": "Only use this for custom games." },		"custom bonus mana": { "label": "Custom Bonus Mana", "description": "Customize the mana gain per intelligence point.", "type": "number", "default": "12", "deprecated": "Only use this for custom games." },		"armor": { "label": "Armor", "description": "A hero's base armor (level 1, 15 and 25 are calculated automatically).", "example": "1", "type": "number", "required": true },		"custom bonus armor": { "label": "Custom Bonus Armor", "description": "Customize the armor bonus per agility point.", "example": "0.17", "type": "number", "deprecated": "Only use this for custom games." },		"custom bonus spell damage": { "label": "Custom Bonus Spell Damage", "description": "Customize the spell damage bonus per intelligence point.", "default": "(1/14)%", "type": "number", "deprecated": "Only use this for custom games." },		"attack speed": { "label": "Attack Speed", "description": "Customize the base attack speed amount.", "type": "number", "default": "100", "deprecated": "Only use this for custom games." },		"base attack time": { "label": "Base Attack Time", "description": "The period at which a hero attacks.", "example": "1.7", "type": "number", "required": true },		"custom bonus attack speed": { "label": "Custom Bonus Attack Speed", "description": "Customize the attack speed bonus per agility point.", "type": "number", "default": "1", "deprecated": "Only use this for custom games." },		"attack damage min": { "label": "Minimum Attack Damage", "description": "A hero's minimum base attack damage (level 1, 15 and 25 are calculated automatically).", "example": "27", "type": "number", "required": true },		"attack damage max": { "label": "Maximum Attack Damage", "description": "A hero's maximum base attack damage (level 1, 15 and 25 are calculated automatically).", "example": "33", "type": "number", "required": true },		"custom bonus attack damage": { "label": "Custom Bonus Attack Damage", "description": "Customize the attack damage bonus per primary attribute.", "type": "number", "default": "1", "deprecated": "Only use this for custom games." },		"magic resistance": { "label": "Magic Resistance", "description": "A hero's magic resistance.", "type": "number", "autovalue": "25%", "required": true },		"health regen": { "label": "Health Regeneration", "description": "A hero's base health regeneration (level 1, 15 and 25 are calculated automatically).", "type": "number", "default": "0.25", "autovalue": "", "required": true },		"mana regen": { "label": "Mana Regeneration", "description": "A hero's base mana regeneration (level 1, 15 and 25 are calculated automatically).", "type": "number", "default": "0.01", "required": true },		"movement speed": { "label": "Movement Speed", "description": "A hero's base movement speed.", "example": "280", "type": "number", "required": true },		"turn rate": { "label": "Turn Rate", "description": "The rate which determines how long a hero needs to turn 180°.", "example": "0.7", "type": "number", "required": true },		"sight range day": { "label": "Day Vision", "description": "The range in which a hero sees during the day.", "example": "1800", "type": "number", "required": true },		"sight range night": { "label": "Night Vision", "description": " The range in which a hero sees during the night.", "example": "800", "type": "number", "required": true },		"attack range": { "label": "Attack Range", "description": "The range in which a hero can attack. Most melee heroes have an attack range of 128. ", "example": "128", "type": "number", "required": true },		"range type": { "label": "Range Type", "description": "The hero's range type (Melee/Ranged).", "example": "Melee", "type": "string", "required": true },		"projectile speed": { "label": "Projectile Speed", "description": "The speed at which a hero's projectile travels. Do not add this parameter to melee heroes. It defaults to \"Instant\".", "type": "number", "default": "Instant", "suggested": true },		"attack point": { "label": "Attack Point", "description": "The length of the animation just before an attack.", "example": "0.5", "type": "number", "required": true },		"attack backswing": { "label": "Attack Backswing", "description": "The length of the animation just after an attack.", "example": "1.17", "suggested": true, "type": "number" },		"collision size": { "label": "Collision Size", "description": "The amount of space that a hero takes up. Most heroes have a collision size of 24.", "example": "24", "required": true, "type": "number" },		"legs": { "label": "Legs", "description": "The amount of leg's the hero has.", "example": "2", "type": "number", "suggested": true, "autovalue": "" },		"structure": { "label": "Structure", "description": "Specify how the infobox is related to the page. Defaults to main (means it is the main infobox of the page and all semantic properties will be included). If the infobox is not the main part of the page, define hidden. ", "example": "hidden", "type": "string" },		"icon": { "label": "Minimap Icon", "description": "The hero's minimap icon.", "example": "File:Pudge minimap icon.png", "type": "wiki-file-name", "required": true },		"game": { "label": "Game", "description": "Specify when the unit is part of a custom or seasonal game. Defaults to empty (means the standard Dota 2 game). ", "type": "string" },		"gib type": { "label": "Gib type", "description": "The heroes gib type. Used for some animations.", "example": "ethereal", "type": "string", "autovalue": "default", "suggested": true }	},	"paramOrder": [ "title", "icon", "image", "primary attribute", "strength", "strength growth", "agility", "agility growth", "intelligence", "intelligence growth", "health", "custom bonus health", "mana", "custom bonus mana", "armor", "custom bonus armor", "custom bonus spell damage", "attack speed", "base attack time", "custom bonus attack speed", "attack damage min", "attack damage max", "custom bonus attack damage", "magic resistance", "health regen", "mana regen", "movement speed", "turn rate", "sight range day", "sight range night", "attack range", "range type", "projectile speed", "attack point", "attack backswing", "collision size", "legs", "gib type", "game", "structure" ],	"format": "block", "description": "The Hero infobox is used within hero pages to quickly convey core information, such as a hero's strength, agility, intelligence, or more specific information such as their movement speed or sight range." }

zh:Template:Hero infobox/doc