Module:Sandbox

local p = {} local cargo = mw.ext.cargo

function p._venueInfo(name, location) local info = cargo.query('venues', '_pageName, name, coords, type, capacity',		{			where = 'name = "' .. name .. '" AND location = "' .. location .. '"',			limit = 1		}	)[1]

if info == nil then return '' end

mw.getCurrentFrame:callParserFunction('#vardefine', 'foo', 'Test')

return "foo" end

function p.venueInfo(frame) local name = frame.args[1] local location = frame.args[2] return p._venueInfo(name, location) end

return p