Module:TestMod: Difference between revisions
Jump to navigation
Jump to search
(k so what's the frame do) |
(testing arg returns) |
||
Line 2: | Line 2: | ||
function p.hello( arg ) | function p.hello( arg ) | ||
return | return arg | ||
end | end | ||
return p | return p |
Revision as of 11:59, 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 arg end return p