Jump to content

Module:Test hello world

Unchecked
From Wikipedia

Documentation for this module may be created at Module:Test hello world/doc

local p = {}
 
function p.world(frame)
    local foo = "Hello, world!"
    local arg1 = frame.args[1]
    local arg2 = frame.args[2]
    if arg1 ~= nil then foo = foo .. " My " .. arg1 end
    if arg2 ~= nil then foo = foo .. " is " .. arg2 end
    return foo
end
 
return p