Modulo:Sandbox/Ignazio Cannata

Intestazione: Modulo:Sandbox/Ignazio Cannata/man


local p = {}

function p.ciao( frame )
    return "Ciao, mondo!"
end

function p.ciao_nome1( frame )
    return "Ciao, " .. frame.args[1] .. ", " .. frame.args[2] .. "?"
end

function p.ciao_nome2( frame )
    return "Ciao, " .. frame.args["nome"] .. ", " .. frame.args["saluto"] .. "?"
end

function p.ciao_nome2b( frame )
    return "Ciao, " .. frame.args.nome .. ", " .. frame.args.saluto .. "?"
end

function p.ciao_nome3( frame )
    return "Ciao, " .. frame.args[1] .. ", " .. frame.args[2] .. "?<br />Ciao, " .. frame:getParent().args[1] .. ", " .. frame:getParent().args[2] .. "?"
end

return p