Module:Sandbox/SphericalPotatoInVacuum

Revision as of 17:54, 8 November 2018 by imported>SphericalPotatoInVacuum
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/SphericalPotatoInVacuum/doc

-- Google Code-in, Introduction to Lua in Wikipedia
-- Google Code-in, Working with modules
local p = {} -- p stands for package

function p.hello( frame )
    return "Hello, world!"
end

p.Hi = function(frame)
	strName = frame.args.name or "Jimbo"
	return "Hello from Lua to my friend " .. strName .. ".<br>"
end

return p