Module:Women in Green event: Difference between revisions

Content deleted Content added
only return if number is valid
simplify
Line 3:
 
p.main = function(frame)
local data = mw.loadJsonData('Template:WikiProject Women in Green/events')
iflocal event = data[tonumber(frame.args[1])] then
if event then
return data[tonumber(frame.args[1])]event[frame.args[2]]
end
end