Module:Sandbox/Rprimus06/Second

Revision as of 10:29, 19 May 2013 by imported>Rprimus06 (Created page with 'local n = { helloworld = function(frame) name = frame.args.name or 'unknown' return 'Hello from Lua ' .. name end } return n')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a test of creating a Scibunto Module.

The modules is called 'Second' and simply returns a string 'Hello from Lua ' with the argument passed to the function.


local n = {
    helloworld = function(frame)
        name = frame.args.name  or 'unknown'
        return 'Hello from Lua ' .. name
    end
}

return n