Module:Lua test: Difference between revisions
Jump to navigation
Jump to search
Created page with "local p = {} -- p stands for package function p.hello( frame ) return "Hello, world!" end return p" |
No edit summary |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.hello( frame ) | function p.hello(frame) | ||
return | return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2] | ||
end | end | ||
return p | return p | ||