Module:HeroData: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) moved get_hero_key function from Module:HeroData/Name |
Gammaton32 (talk | contribs) 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( | 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 | ||