Talk:The Butcher

From Heroes of the Storm Wiki
Jump to: navigation, search

Role field[edit source]

The Butcher's role on his Data Page is blank, yet it shows up in his Infobox as "Assassin".

Changing this value to literally anything does not change his role. For example, it previously said: "Damage", yet still remained "Assassin" in his Infobox.

Why?

Note: I do not intend to change the Hero's role assignments - they are correct as they are - I simply like figuring out how things work. I have followed the trail of breadcrumbs to the following 2 pages which I believe are, perhaps, the true location of every Hero's role attribute: Template:Role and Template:Role/doc.

Upon Editing the Source of Template:Role, it seems variables are being created for every hero. For example:


|the butcher=The Butcher

|butcher=Butcher


From my limited knowledge, I am guessing this is where roles are truly assigned, however I do not understand how.

P.S. I know hardly anything about Wiki-creation, however this level of obfuscation seems very counter-intuitive; it is almost as if the creator purposely wanted it to be difficult to understand? JustLetMeEdit (talk) 01:30, 27 July 2015 (UTC)

From what I can tell, its actually from the Template:Hero infobox. I very much agree that this whole infobox process is very counter-intuitive and I've been starting to work on a sandbox version to make it much more accessible, but since my coding knowledge is somewhat limited, I'm waiting for the original creator to help me out with cleaning this up. --Celellach (talk) 13:26, 27 July 2015 (UTC)
Omg, yep, I think you found it! There is a switch going on in that page:
| [[#switch: [[#if:[[#var:role|]]|[[lc:#var:role]]|unknown]]
it changes "damage" to "Assassin" or "siege" to "Specialist", etc
I checked out your template as well - looks great and much more inclusive. JustLetMeEdit (talk) 12:23, 29 July 2015 (UTC)