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
Line 7: Line 7:
names=frame.args.names
names=frame.args.names
local w = {}
local w = {"x", "t", "g", "a", "s"}
local num = 1
local num = 1
for i in string.gmatch(writers, "%S+") do
for i in string.gmatch(writers, "%S+") do

Revision as of 05:07, 30 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 = {"x", "t", "g", "a", "s"}
	local num = 1
		for i in string.gmatch(writers, "%S+") do
			table.insert(w, num, "[[user:" .. i .. "|" .. i .. "]]")
			for i,v in ipairs(w) do
				num = num + 1
				return(v)
			end
			return(w)
		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