Jump to content

Module:User:Doc Taxon/Hello

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Doc Taxon (talk | contribs) at 16:34, 12 October 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {} 
function p.hello(frame)
    local name = frame.args[1]
    if not name then 
        name = 'World' 
    end
    i = 1
    u = ""
    repeat
    	u = u '\n' .. i .. 'Hello' .. name .. '! This is Lua!' 
    	i = i + 1
    until i > 5
    return u
end 
return p