Module:CX Zoom Beta/WPBS 3
Appearance
The WikiProject banner below should be moved to this module's talk page. If this is a demonstration of the template, please set the parameter |
WikiProject Computer science | (Rated GA-class) | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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