Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
No edit summary
User:Gonnym, this will completely stop listas working in userspace
Line 803:
-- Default sort -----------
---------------------------
if args.listas then
if title.namespace ~= 3 then -- User talk namespace
ifframe:preprocess('{{DEFAULTSORT:' .. args.listas then.. '}}')
local success, shell_listas_value = require('Module:Template parameter value').getParameter(
frame:preprocess('{{DEFAULTSORT:' .. args.listas .. '}}')
title.prefixedText,
local success, shell_listas_value = require('Module:Template parameter value').getParameter(
cfg.banner_shell.redirects,
title.prefixedText,
'listas',
cfg.banner_shell.redirects,
{ignore_subtemplates = true, ignore_blank = true}
'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)
if success and shell_listas_value~='' then
add_category('WikiProject banners with redundant listas value') -- TODO: add to config
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') -- TODO: add to config
end
end