Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
not needed
listas goes
Line 856:
:wikitext(wikilink(project_link.prefixedText, project) .. nested_tf_str .. ' ' .. nested_ratings_str)
:done()
---------------------------
-- Default sort -----------
---------------------------
if args.listas then
frame:preprocess('{{DEFAULTSORT:' .. args.listas .. '}}')
if title.namespace~=3 then -- exclude user talk namespace
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(cfg.banner_shell.category.redundant_listas)
end
else -- listas is blank or not defined in banner shell
add_category(cfg.banner_shell.category.move_listas)
end
end
end
---------------------------
-- Prepare categories -----