Template talk:Hero infobox/Archive1

Health Regeneration
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)

Wrong Stat Calculation
Some stats are being calculated wrong. I checked some heroes on a sheet and they are all off by some value.

For example, the damages (min and max) at levels 16 and 25 are off by exact 2 and 20, respectively.

But there's some discrepancy on other stats aswell: HP, Mana, Regens, att/sec, armor.

When i checked the template page I saw this: http://dota2.gamepedia.com/Template:Hero_infobox A hero with 0 base str and 0 str gain, magically gains 0,07 hp regen/s when he reaches lvl 16 and more 0,54 hp regen/s when he reaches lvl 25. He also gains HP, Mana, armor, among other things...

I think this template should be checked again....

PS: I don't know how to do it, or I'd do it myself.


 * The template includes, one level on lvl 16 and max level on 25 (and in case of invoker, it includes his orbs). Bu3ny (talk) 17:21, 30 November 2015 (UTC)

SMW rework incoming
Sneak peak here: http://pastebin.com/cb7pW38J

Please let me know if you prefer "attack speed" or "base attack time". ~(Currently not logged in) User:Molldust


 * Should be base attack time.  Bu3ny  (talk) 19:29, 17 March 2016 (UTC)

Problem
Plz also add to the base attack damage ( ‒ ), bugged in zh-hans --Dotalim0204 (talk) 15:01, 18 June 2016 (UTC)

Spell dmg
Maybe we can add a "+" sign at there --Dotalim0204 (talk) 12:37, 1 July 2016 (UTC)


 * What for? The table shows the total spell damage value, not additional value. And there is already little room.  Bu3ny  (talk) 17:19, 1 July 2016 (UTC)


 * sbd (newbie?) maybe dunno wht is the meaning ._. maybe they will think about oh 0% = no dmg, or maybe we can change it to spell dmg amp blablabla, i dunno --Dotalim0204 (talk) 11:23, 3 July 2016 (UTC)

All Hero Challenge
At the bottom would it be possible to show the previous and next hero in the All Hero Challenge?
 * Heroes in All-Hero Challenge are in random position for every player, so I don't think that is possible. Medok  20:19, 31 October 2016 (UTC)
 * The order isn't random just the starting position All-Hero_Challenge.
 * You have list, which sense of your suggestion? It last thing that peoples want to see on hero page, and it will take some place and page will load slower. Medok  22:18, 31 October 2016 (UTC)

Spanish Translations

 * I would like to translate to spanish (es) some texts but the template is protected, so I'll suggest the translations and hope for some admin to do it.
 * "Spell Dmg" -> "Amp. Hec."
 * "Att / Sec" -> "Atq / Seg"
 * "Turn Rate" -> "Velocidad de giro"
 * "Collision Size" -> "Tamaño de colisión"
 * "Legs" -> "Piernas"
 * "Basic values, without any attributes" -> "Valores básicos, sin atributos"
 * "Attacks per second" -> "Ataques por segundo"
 * "During the day" -> "Durante el día"
 * "During the night" -> "Durante la noche"
 * "Attack point" -> "Punto de ataque"
 * "Attack backwing" -> "Retroceso de ataque"

--ImperialPM (talk) 23:21, 13 December 2016 (UTC)


 * Molldust (talk) 10:03, 18 December 2016 (UTC)

Translation
(zh-hans):


 * Talent bonuses not included: 不包含天赋加成

--Elite stay (talk) 04:49, 18 December 2016 (UTC)
 * Medok 09:40, 18 December 2016 (UTC)

Talents
Should talents be added to hero infobox? --MrSchipunov (talk) 20:38, 29 December 2016 (UTC)
 * No, it's too complicated already. I want them separate. - Lemoncake  (talk) 20:48, 29 December 2016 (UTC)

Outdated
Needs to have flat mana regeneration changed for the new percentage based. --Sanhard (talk) 12:44, 31 October 2017 (UTC)
 * Should be working fine now. Sorry for spam publishing, template doesn't work with Preview. I just caught the spelling problem as it was changed >.< Sanhard (talk)
 * By what I mean by "working fine" is on heroes that have had their infobox value for mana regen changed to the new **GLOBAL** base of 0.9. This needs to be done for all heroes. See Alchemist for working example. Sanhard (talk)

Regeneration Amplification
The mana and health regen amp are calculated incorrectly and hundred times too small. For example Abbadon on lvl1 has 16.1% health regen amp, not 0.161% as the infobox currently displays.


 * Fixed.  Bu3ny  (talk) 02:01, 12 November 2017 (UTC)

Armor Calculation
'Armor per agility rescaled from 1/7 to 1/6' is not taken into account in the infobox values. Fabefabson (talk) 14:28, 4 November 2017 (UTC)


 * The value is updated, so it most likely is a caching issue.  Bu3ny  (talk) 14:44, 4 November 2017 (UTC)

Automating this template
What do you think about automating this template? With Scribunto we can parse the npc_heroes.txt file directly and pull all the infobox values from there. I got a working module here and an example here. The only thing that can't be pulled from npc_heroes.txt directly are attack backswings, which are stored in a table in sub-module instead.

EDIT: Just to clarify I don't mean completely automating it (it's still needed for events, ...) but rather having a wrapper that's used on the normal hero pages. -- Litzsch 22:22, 5 February 2018 (UTC)


 * A centralized text-storage of ability data is a red flag in my opinion. There's certainly a way to automate the parsing the of npc_heroes.txt and put the values directly on the according page/section. It's more work, I know, but a proof of concept is the cosmetic item section to some degree regarding the REF-ID. I don't want to go back to huge dictionary pages, they are slow, ugly to maintain by hand and do not support our SMW/Cargo principles. Molldust (talk) 12:03, 6 February 2018 (UTC)


 * I'm worried about the page history. Cargo tables can't be tracked history already (when was updated, created, deleted). --Elite stay (talk) 12:40, 6 February 2018 (UTC)


 * The only dictionary page that would be needed would be for attack backswings, but even those could be added as a parameter to the module that's defined in the article itself (I thought having it in the module would be the better solution here since those don't change very much afaik and aren't even part of the public game files). Apart from that the only thing that would have to be done after every patch/version would be to upload the npc_heroes.txt to a page on the wiki (currently User:Bu3ny/heroes) and all infoboxes would automatically update themselves with these new values. The huge advantage of this imo would be that it guarantees we always have the correct values (as they are in game).
 * Changes could still be found in the page history of the npc_heroes page and the hero/version changelogs.
 * An alternative way of guaranteeing correct values would be a pywikibot script that updates the values, but that would have to be run after each patch manually (thus not capturing undocumented changes). -- Litzsch 13:02, 6 February 2018 (UTC)


 * What do you mean by "not capturing undocumented changes"? PWB would certainly capture all changes in the npc_heroes.txt. And there's little difference between manually uploading the file or executing a script to dump the changes into the wiki. The only difference is the allocation of the processing time, which should definitely be preloaded and not be part of a module parser. Molldust (talk) 13:30, 6 February 2018 (UTC)


 * I didn't quite think that undocumented thing through :) I meant if valve accidentally changes something in a normal patch it would get updated, but since that would still require the file to be uploaded it doesn't really make a difference. I just kind of got exited by the idea of parsing the file on the wiki itself :D. I already got a pwb script that can be used, though it's pretty ugly since I haven't used python before. -- Litzsch 13:48, 6 February 2018 (UTC)