Jump to content

Module:CX Zoom Beta/WPBS 3

From Wikipedia, the free encyclopedia
WikiProject Computer science (Rated GA-class)
WikiProject iconThis module is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 GA This module does not require a rating on the project's quality scale.
 
Things you can help WikiProject Computer science with:


name:WikiProject Computer science && small:0 && category:0 && listas:0 && auto:0 && importance:Mid && attention:0 && computing:yes && computing-importance:0 && class:GA &&


local p = {} --p stands for package

function p.main( frame )
	local a = frame.args[1]
	local t2 = {}
	local x = {}
	
	--[=[
	n, c, i = string.match(a, "name:(.*)%s&&%sclass:(.*)%s&&%simportance:(.*)")
	-- c = "[Here m is "..m..", d is "..d..", y is "..y.."]"
	
	x[1] = "class"
	x[2] = "importance"
	
	t2 = {
	[x[1]] = c,
	[x[2]] = i,
	}
	]=]
	local params = {}
	local params_x = {}
	local params_y = {}
	local i = 1
	local Y = {}
	params[i] = {}
	params_x[i] = {}
	params_y[i] = {}
	local q = 0
	
	for p in string.gmatch(a, "([^&&]-)&&") do
		params[i][q] = mw.text.trim(p)
			params_x[i][q], params_y[i][q] = string.match(params[i][q], "(.*):(.*)")
			Y[i] = {
				[params_x[i][q]] = params_y[i][q]
			}
		q = q + 1
	end
	temp = frame:expandTemplate{ title = params_y[i][0], args = Y[i] }
	--temp = table.concat(Y[1], ";")
	return temp
end

return p