Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
moved to cfg
moved to cfg
Line 124:
end
elseif ns==7 or ns==711 then -- File talk
if class=='fm' and FQS then
out = 'FM'
else
Line 130:
end
else
local categorygrade = ns_to_categorycfg.quality.ns_to_class[ns] or 'NA'
-- Define a table that maps namespace IDs to category names
out = resolveFQSgrade(categorygrade)
local ns_to_category = {
[15] = 'category', -- Category talk
[101] = 'portal', -- Portal talk
[11] = 'template', -- Template talk
[829] = 'template', -- Module talk
[5] = 'project', -- Wikipedia talk
[119] = 'draft' -- Draft talk
}
local category = ns_to_category[ns] or 'NA'
out = resolveFQSgrade(category)
end
return out