Template talk:Hero infobox

I'm thinking Base Hitpoint Regeneration should be listed in the infoboxes. Although not a listed stat on the Playdota pages, it is a stat that I think is significant enough to mention in the infobox. I didn't edit it in myself because I'm not sure how to preserve the translation coding. Func door 04:11, 30 August 2011 (CDT)
 * Sure, it's definetly an important stat, and I agree, when creating/modifying templates translation should be preserved or created if there isn't. Also this may be a bit offtopic but, should we put the stats from Playdota while we wait for the beta to start? ChocolateWaffle 06:37, 30 August 2011 (CDT)

Adding information
When changing the infobox to show additional information, consider these questions: would this information change an encounter with this hero? Is this something I might need to quickly reference? Does this fit better in the article than in the infobox? Does the information fit in the infobox at all? -Lancey 11:30, 20 September 2011 (CDT)

Proposed parameter name changes
I propose to change the name of the following parameters: I'll wait for several hours before doing this, so any comments in favor or opposed are appreciated. If there are any other parameters you think could be renamed, suggest those too. The chief reason for doing this is the horribly-named "main", but as long as we're changing that one, a bot can do some others at the same time. --Kroocsiogsi 18:19, 5 May 2012 (UTC)
 * "move speed" -> "movement speed"
 * "main" -> "primary attribute"
 * "team" -> "faction"
 * "attack speed" -> "BAT"
 * Sounds good! The only one that seems odd is BAT since it'd be the only acronym, but it's more accurate than attack speed and "base attack time" is probably too long so I'm fine with it. --Pigbuster 18:27, 5 May 2012 (UTC)
 * Yeah, Nickoladze mentioned the same issue. --Kroocsiogsi 19:06, 5 May 2012 (UTC)

Stats slider
Is it possible to have a hero infobox stats slider like Strife.

Health regen infos are missing
Since many heroes have varying base health regen, I think they should be added into the info boxes aswell (for unit and hero info box). Bu3ny (talk) 11:42, 4 November 2014 (UTC)

Witch Doctor level 16 damage
Not sure if this belongs here or the Witch Doctor page, but Witch Doctor's hero infobox is showing his level 16 damage as "96-82". His max damage should be 10 more than his min damage, not 14 less, so obviously something's wrong with the damage calculation on this template for him. Anyone want to take a crack at finding the bug? --98.221.77.150 13:42, 29 May 2015 (UTC)


 * Tiny typo on int hero's lvl 16 dmg calculation. Should be fixed now. Bu3ny (talk) 20:36, 29 May 2015 (UTC)

Usinc trunc in the formulas results in wrong numbers
Appereantly, trunc cuts off decimals in all numbers, and not just in the result. This leads to the infobox displaying wrong numbers.

For example, the mana calculation formula looks like this

If we apply this on e.g. Storm Spirit, who has 23 int and 2.6 int game, it calculates this

Without cutting off the demicals, the exact result would be 1370.2 and with cutting, it should be 1370. This is what the infobox is expected to display.

But instead, it already cuts off the decimals of the result of 2.6*24, changing 62,4 into 62, so it calculates (20+23+62)*13, which results in 1365 and it displays 1365 in the infobox.

So instead of truncating the final result, it truncates all interim results within the formula as well. So for every hero, the hp/mana display in the infobox is wrong on lvl 16 and 25.

How can we make it so it only truncates the final result? Bu3ny (talk) 12:48, 15 June 2015 (UTC)


 * Nevermind, solved it. Moving the bracket from before to after trunc fixed it. Bu3ny (talk) 13:43, 15 June 2015 (UTC)