Module:HeroData: Difference between revisions

Jump to navigation Jump to search
moved get_hero_key function from Module:HeroData/Name
No edit summary
Line 33: Line 33:


-- returns the key of the specified hero's english name
-- returns the key of the specified hero's english name
function p.get_hero_key(name)
function p.get_hero_key(frame)
     local hero_name_input = frame.args[1] -- Get the hero name from the template argument
     local hero_name_input = frame.args[1] -- Get the hero name from the template argument
     if not hero_name_input then
     if not hero_name_input then