Module:Sandbox/PHansen/a

Revision as of 09:10, 13 December 2014 by imported>PHansen (..created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

--https://en.wikipedia.org/wiki/Help:Lua_for_beginners
--testes via:  User:PHansen/a
local p = {} -- defines a variable p as an empty table, but *not* nil.
 
function p.main( frame ) -- this block defines the table element p[main] as the _function_ listed below
    return "Hello world" -- the string result
end -- ends the block defining p.main
 
return p -- this returns the table p, which contains function p.main, which returns string "Hello world"