Module:Sandbox/lualearner

From Wikiversity
Jump to navigation Jump to search

local p = {}
 
function p.ftn01(frame)
    return "this is ftn01, created April 27, 2016.\n"
end
 
function p.ftn02(frame)
    return "this is ftn02, created April 27, 2016.\n"
end
 
function p.ftn03(frame)
    local fx = frame.args[1]
    return 'this is '.. fx ..', created April 27, 2016.\n'
end
 
function p.ftn04(frame)
    local fx = frame.args[1]
    local fy = frame.args[2]
    return 'this is ' .. fx .. ', created April 27, 2016.\n' .. ' and ' .. fy .. ' also.\n'
end

function p.ftn05(frame)
    local fx = frame.args[1]
    local fy = frame.args[2]
    return 'this is ' .. fx .. ', created April 27, 2016.\r' .. 'and ' .. fy .. ' also.\n'
end
return p