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