More actions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
local w = {} | local w = {} | ||
local num = 0 | local num = 0 | ||
for i in string.gmatch( | for i in string.gmatch(names, "%S+") do | ||
table.insert(w, "[[user:" .. i .. "|" .. i .. "]]") | table.insert(w, "[[user:" .. i .. "|" .. i .. "]]") | ||
for i,v in ipairs(w) do | for i,v in ipairs(w) do |
Revision as of 05:31, 31 December 2015
Documentation for this module may be created at Module:Test/2/doc
local p = {}
names = ""
function p.info(frame)
names=frame.args.names
local w = {}
local num = 0
for i in string.gmatch(names, "%S+") do
table.insert(w, "[[user:" .. i .. "|" .. i .. "]]")
for i,v in ipairs(w) do
return(v)
end
return(w)
end
return p
end
-- Arrays: http://www.lua.org/pil/11.1.html
-- Split/Join: http://lua-users.org/wiki/SplitJoin
-- For loops: http://www.lua.org/pil/4.3.4.html