Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m write_hero_infobox now actually evaluates the template
Tags: Mobile edit Mobile web edit
Sur (talk | contribs)
m get_json_item as p.
Line 11: Line 11:
return nil
return nil
end
end
-- returns the table of a specific item
p.get_json_item = function(frame)
name = frame.args[1]
for i,v in pairs(data) do
if (v["Name"] == name) then
return v
end
end
return nil
end


--{{#invoke:HeroData|get_hero_stat|HERO_NAME|STAT_NAME}}--
--{{#invoke:HeroData|get_hero_stat|HERO_NAME|STAT_NAME}}--