Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Test/2: Difference between revisions

From MassiveCraft Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
local p = {}
local p = {}


names = ""
writers = ""


function p.info(frame)
function p.info(frame)
names=frame.args.names
writers=frame.args.input
local w = {}
local w = {}
local num = 0
local num = 0
for i in string.gmatch(names, "%S+") do
for i in string.gmatch(writers, "%S+") do
--table.insert(w, "[[user:" .. i .. "|" .. i .. "]]")
table.insert(w, "[[user:" .. i .. "|" .. i .. "]]")
w[num] = i
for i,v in ipairs(w) do
                i = i + 1
return(v)
return(w)
end
return(w[0])
end
 
end
end


return p
return p
end





Latest revision as of 05:36, 31 December 2015

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

local p = {}

writers = ""

function p.info(frame)
	
	writers=frame.args.input
	
	local w = {}
	local num = 0
		for i in string.gmatch(writers, "%S+") do
			table.insert(w, "[[user:" .. i .. "|" .. i .. "]]")
			for i,v in ipairs(w) do
				return(v)
			end
			return(w[0])
		end
		
		

end

return p


-- 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