Module:Accreditation: Difference between revisions

From MassiveCraft Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
artists=frame.args.Artists
artists=frame.args.Artists
processors=frame.args.Processors
processors=frame.args.Processors
w = split(writers, "%S+")
return w
--return(writers)
--return(writers)
for i in string.gmatch(writers, "%S+") do
-- for i in string.gmatch(writers, "%S+") do
  return(i)
--   return(i)
end
-- end
end
end

Revision as of 20:33, 27 August 2015

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

local p = {}

writers = ""
artists = ""
processors = ""

function p.info(frame)
	
	writers=frame.args.Writers
	artists=frame.args.Artists
	processors=frame.args.Processors
	
	w = split(writers, "%S+")
	return w
	
	--return(writers)
	--	for i in string.gmatch(writers, "%S+") do
	--	  return(i)
	--	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