Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
will this work?
mark string to move to config; disable adding user talk to categories as currently we aren't fixing these by bot
Line 392:
if args.QUALITY_CRITERIA~='custom' then
conflict = true
add_category(class .. '-Class' .. ' articles with conflicting quality ratings') --TODO: add to config
end
end
Line 803:
-- Default sort -----------
---------------------------
if title.namespace ~= 3 then -- User talk namespace
if args.listas then
if args.listas then
frame:preprocess('{{DEFAULTSORT:' .. args.listas .. '}}')
local success, shell_listas_value = require('Module:Template parameter value').getParameter(
title.prefixedText,
cfg.banner_shell.redirects,
'listas',
{ignore_subtemplates = true, ignore_blank = true}
)
if success and shell_listas_value~='' then
if args.listas==shell_listas_value then-- same value in both (with spacing trimming)
add_category('WikiProject banners with redundant listas value') -- TODO: add to config
end
else-- listas is blank or not defined in banner shell
add_category('WikiProject banners with listas value which needs moving to banner shell') -- TODO: add to config
end
else-- listas is blank or not defined in banner shell
add_category('WikiProject banners with listas value which needs moving to banner shell')
end
end