Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m nil check on previous
Sur (talk | contribs)
m rename to be prefixed with p
Line 13: Line 13:


-- returns the table of a specific item
-- returns the table of a specific item
p.get_json_item = function(frame)
p.pget_json_item = function(frame)
local name = frame.args[1]
local name = frame.args[1]
if (name == nil) then return "Name parameter missing" end
if (name == nil) then return "Name parameter missing" end