Module:Category handler/shared: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
return a copy of the params table so that it doesn't contain a metatable
(add a getNamespaceParameters function)
(return a copy of the params table so that it doesn't contain a metatable)
Line 19:
local mappingsKey = mw.site.namespaces[titleObj.namespace].name
mappingsKey = mw.ustring.lower(mappingsKey)
returnlocal origParams = mappings[mappingsKey] or {}
local params = {}
for i, v in ipairs(origParams) do
params[i] = v
end
return params
end
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu