Module:Sandbox

local p = {} --p stands for package

function p.helloworld return "{|\n!test\n|-\n|Hello, world\n|}" end

function p.test local empty = {} return tostring( empty == {} ) end

function p.titletest local frame = mw.getCurrentFrame local retval = '' while frame ~= nil do retval = retval .. ' > ' .. frame:getTitle frame = frame:getParent end return retval end

return p