Module:TestMod

From Hazeron Wiki
Revision as of 12:18, 17 April 2024 by Celarious (talk | contribs) (ok so apparently you can't just get the args directly and you need to use a "frame")
Jump to navigation Jump to search

Basic test Lua module, can be invoked with {{#invoke: TestMod|FunctionName|arg1|arg2|etc ...}}


local p = {} --p stands for package

function p.hello( frame )
	local args = frame:getParent().args
	local templateArgs = frame.args
    return args
end

return p