Module:TestMod: Difference between revisions

From Hazeron Wiki
Jump to navigation Jump to search
(hmm)
(testing)
Line 2: Line 2:


function p.hello( frame )
function p.hello( frame )
     local args = frame:getParent().args
     local args = frame.args
     local templateArgs = frame.args
     return "This should have printed the first argument you entered: " .. args
end
end


return templateArgs
return p

Revision as of 14:40, 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.args
    return "This should have printed the first argument you entered: " .. args
end

return p