Module:Category handler: Difference between revisions

Ganaram inukshuk (talk | contribs)
m todo
Ganaram inukshuk (talk | contribs)
add allowed namespaces to override default list
Line 166: Line 166:
end
end
-- TODO: parse allowed namespaces
-- Parse allowed namespaces
-- This gets added to the ns_override array, with values set to FALSE
-- This gets added to the ns_override array, with values set to FALSE
-- EG, Template:TODO gets used on more namespaces than just the unsuppressed
-- EG, Template:TODO is used in several namespaces that are normally
-- ones: user, talk, help, maybe xw talk
-- suppressed: user, talk, help, and maybe xw talk
for ns in mw.text.gsplit(allowed_ns_unparsed, "[;\n]") do
ns = mw.text.trim(ns)
if ns ~= "" then
ns_override[ns] = false
end
end


-- Parse excluded suffixes
-- Parse excluded suffixes