Blinding Light icon.png
Eh, what was I doing?
Search is currently offline.
This is due to the ongoing MediaWiki 1.33 update. Search is being re-indexed as we are upgrading to Elasticsearch 6.

Template:Hero infobox/doc

From Dota 2 Wiki
Jump to: navigation, search

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

Should use {{Hero infobox wrapper}} for translation.

Usage[edit]

Wild Template Hero
Unknown Hero icon.png
Strength attribute symbol.png
Agility attribute symbol.png
Intelligence attribute symbol.png
0 + 0
0 + 0
0 + 0
Level 0 1 15 25 30
Health 200 200 200 200 200
Health regen 0 0 0 0 0
Magic res. 25% 25% 25% 25% 25%
Mana 75 75 75 75 75
Mana regen 0 0 0 0 0
Spell dmg 0% 0% 0% 0% 0%
Armor 0 0 0 0 0
Att/sec 0.59 0.59 0.59 0.59 0.59
Move sp amp. 0% 0% 0% 0% 0%
Damage 0‒0 0‒0 0‒0 0‒0 0‒0
Movement speed 0
Attack speed 100
Turn rate 0
Vision range 0/0
Attack range 0
Projectile speed Instant
Attack animation 0+0
Base attack time 0
Damage block 0
Collision size 0

To implement the infobox, you simply add {{Hero infobox}} 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 | attribute = value.

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

{{Hero infobox
| title = 
| icon = 
| image = 
| primary attribute = 
| strength = 
| strength growth = 
| agility = 
| agility growth = 
| intelligence = 
| intelligence growth = 
| attack damage min = 
| attack damage max = 
| health regen = 
| armor = 
| magic resistance = 
| movement speed = 
| turn rate = 
| attack range = 
| range type = 
| attack point = 
| attack backswing = 
| base attack time = 
| projectile speed = 
| sight range day = 
| sight range night = 
| collision size = 
| legs = 
| gib type = 
}}

Attributes[edit]

Attribute Description
Note: Health, mana, mana regeneration and attacks per second are all calculated automatically.
faction The team a hero is affiliated with. Radiant, Dire, or Neutral. Defaults to Neutral.
primary attribute A hero's primary attribute - strength, intelligence, or agility.
strength A hero's base strength value.
strength growth The rate at which a hero's strength increases.
agility A hero's base agility value.
agility growth The rate at which a hero's agility increases.
intelligence A hero's base intelligence.
intelligence growth The rate at which a hero's intelligence increases.
attack damage min A hero's minimum base attack damage (level 1, 15 and 25 are calculated automatically).
attack damage max A hero's maximum base attack damage (level 1, 15 and 25 are calculated automatically).
health regen A hero's base health regeneration, defaults to 0.25 if no value is given (level 1, 15 and 25 are calculated automatically).
mana regen A hero's base mana regeneration, defaults to 0.01 if no value is given (level 1, 15 and 25 are calculated automatically).
armor A hero's base armor (level 1, 15 and 25 are calculated automatically).
magic resistance A hero's magic resistance. Normally 25%.
movement speed A hero's base movement speed.
turn rate The rate which determines how long a hero needs to turn 180°.
attack range The range in which a hero can attack. Most melee heroes have an attack range of 128.
attack point The length of the animation just before an attack.
attack backswing The length of the animation just after an attack.
base attack time Base Attack Time: the period at which a hero attacks.
missile speed The speed at which a hero's missile travels. Do not add this parameter to melee heroes. It defaults to "Instant".
sight range day The range in which a hero sees during the day.
sight range night The range in which a hero sees during the night.
collision size The amount of space that a hero takes up. Most heroes have a collision size of 24.

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.

Attribute Description
title The English name of the hero. (On hero pages, the name of the hero will be deduced from BASEPAGENAME if not given.)
game See Template:Unit infobox.
structure See Template:Unit infobox.

Custom game support[edit]

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.

Attribute Description
health Customize the base health amount (default: 200)
custom bonus health Customize the health gain per strength point (default: 20)
custom bonus health regen Customize the health regen gain per strength point (default: 0.1)
mana Customize the base mana amount (default: 75)
custom bonus mana Customize the mana gain per intelligence point (default: 12)
custom bonus mana regen Customize the mana regen gain per intelligence point (default: 0.05)
custom bonus spell damage Customize the spell damage bonus per intelligence point (default: 0.07%)
custom bonus armor Customize the armor bonus per agility point (default: 0.16)
attack speed Customize the base attack speed amount (default: 100)
custom bonus attack speed Customize the attack speed bonus per agility point (default: 1)
custom bonus attack damage Customize the attack damage bonus per primary attribute (default: 1)

TemplateData[edit]

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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

The English name of the hero.

Example
Pudge
Auto value
{{subst:BASEPAGENAME}}
Stringrequired
Minimap Iconicon

The hero's minimap icon.

Example
File:Pudge minimap icon.png
Filerequired
Imageimage

The hero's image.

Example
File:Pudge icon.png
Filerequired
Primary Attributeprimary attribute

A hero's primary attribute - strength, intelligence, or agility.

Example
Strength
Stringrequired
Strengthstrength

A hero's base strength value.

Example
25
Numberrequired
Strength Growthstrength growth

The rate at which a hero's strength increases.

Example
3.5
Numberrequired
Agilityagility

A hero's base agility value.

Example
14
Numberrequired
Agility Growthagility growth

The rate at which a hero's agility increases.

Example
1.5
Numberrequired
Intelligenceintelligence

A hero's base intelligence.

Example
14
Numberrequired
Intelligence Growthintelligence growth

The rate at which a hero's intelligence increases.

Example
1.5
Numberrequired
Base Healthhealth

Customize the base health amount.

Default
200
Numberdeprecated
Custom Bonus Healthcustom bonus health

Customize the health gain per strength point.

Default
20
Numberdeprecated
Base Manamana

Customize the base mana amount.

Default
75
Numberdeprecated
Custom Bonus Manacustom bonus mana

Customize the mana gain per intelligence point.

Default
12
Numberdeprecated
Armorarmor

A hero's base armor (level 1, 15 and 25 are calculated automatically).

Example
1
Numberrequired
Custom Bonus Armorcustom bonus armor

Customize the armor bonus per agility point.

Example
0.17
Numberdeprecated
Custom Bonus Spell Damagecustom bonus spell damage

Customize the spell damage bonus per intelligence point.

Default
(1/14)%
Numberdeprecated
Attack Speedattack speed

Customize the base attack speed amount.

Default
100
Numberdeprecated
Base Attack Timebase attack time

The period at which a hero attacks.

Example
1.7
Numberrequired
Custom Bonus Attack Speedcustom bonus attack speed

Customize the attack speed bonus per agility point.

Default
1
Numberdeprecated
Minimum Attack Damageattack damage min

A hero's minimum base attack damage (level 1, 15 and 25 are calculated automatically).

Example
27
Numberrequired
Maximum Attack Damageattack damage max

A hero's maximum base attack damage (level 1, 15 and 25 are calculated automatically).

Example
33
Numberrequired
Custom Bonus Attack Damagecustom bonus attack damage

Customize the attack damage bonus per primary attribute.

Default
1
Numberdeprecated
Magic Resistancemagic resistance

A hero's magic resistance.

Auto value
25%
Numberrequired
Health Regenerationhealth regen

A hero's base health regeneration (level 1, 15 and 25 are calculated automatically).

Default
0.25
Auto value
Numberrequired
Mana Regenerationmana regen

A hero's base mana regeneration (level 1, 15 and 25 are calculated automatically).

Default
0.01
Numberrequired
Movement Speedmovement speed

A hero's base movement speed.

Example
280
Numberrequired
Turn Rateturn rate

The rate which determines how long a hero needs to turn 180°.

Example
0.7
Numberrequired
Day Visionsight range day

The range in which a hero sees during the day.

Example
1800
Numberrequired
Night Visionsight range night

The range in which a hero sees during the night.

Example
800
Numberrequired
Attack Rangeattack range

The range in which a hero can attack. Most melee heroes have an attack range of 128.

Example
128
Numberrequired
Range Tyoerange type

The hero's range type (Melee/Ranged).

Example
Melee
Stringrequired
Missile Speedmissile speed

The speed at which a hero's missile travels. Do not add this parameter to melee heroes. It defaults to "Instant".

Default
Instant
Numbersuggested
Attack Pointattack point

The length of the animation just before an attack.

Example
0.5
Numberrequired
Attack Backswingattack backswing

The length of the animation just after an attack.

Example
1.17
Numbersuggested
Collision Sizecollision size

The amount of space that a hero takes up. Most heroes have a collision size of 24.

Example
24
Numberrequired
Legslegs

The amount of leg's the hero has.

Example
2
Auto value
Numbersuggested
Gib typegib type

The heroes gib type. Used for some animations.

Example
ethereal
Auto value
default
Stringsuggested
Gamegame

Specify when the unit is part of a custom or seasonal game. Defaults to empty (means the standard Dota 2 game).

Stringoptional
Structurestructure

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
Stringoptional