Module:Sandbox/PHansen/a explained

--https://en.wikipedia.org/wiki/Help:Lua_for_beginners--testes via: User:PHansen/alocal 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 resultend -- ends the block defining p.main return p -- this returns the table p, which contains function p.main, which returns string "Hello world"