Module:TestMod: Difference between revisions

From Hazeron Wiki
Jump to navigation Jump to search
No edit summary
(hmm)
Line 4: Line 4:
     local args = frame:getParent().args
     local args = frame:getParent().args
     local templateArgs = frame.args
     local templateArgs = frame.args
    return templateArgs
end
end


return p
return templateArgs

Revision as of 14:04, 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( frame )
    local args = frame:getParent().args
    local templateArgs = frame.args
end

return templateArgs