Module:TestMod: Difference between revisions
Jump to navigation
Jump to search
(what if we remove the p) |
(k so what's the frame do) |
||
Line 1: | Line 1: | ||
local p = {} --p stands for package | local p = {} --p stands for package | ||
function hello( | function p.hello( arg ) | ||
return "Hello, world!" | return "Hello, world!" | ||
end | end | ||
return p | return p |
Revision as of 11:56, 17 April 2024
Basic test Lua module, can be invoked with {{#invoke: TestMod|FunctionName|arg1|arg2|etc ...}}
local p = {} --p stands for package function p.hello( arg ) return "Hello, world!" end return p