Module:RfD close: Difference between revisions

Content deleted Content added
remove entire deprecated function. this shouldn't break anything.
m Protected "Module:RfD close": Highly visible module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
 
(4 intermediate revisions by one other user not shown)
Line 25:
--sufficiently complicated (there is no built-in "or" in Lua string
--patterns) so I'll just lay it flat.
if (parameter_lower:find('keep') or parameter_lower:find('withdraw') or parameter_lower:find('refine')) then
result_match = 'Keep'
icon_filename = 'File:White check mark in dark green rounded square.svg'
Line 37:
end
if (parameter_lower:find('retarget')) or parameter_lower:find('soft redirect'))then
result_match = 'Retarget'
icon_filename = 'File:Right-pointing white arrow in blue rounded square.svg'
Line 49:
end
if (parameter_lower:find('no consensus') and find_count >== 20) then
--This catches instances of "no consensus" that isn't qualified by "default to [keep/delete]"
result_match = 'Multiple decisions'
result_match = 'No consensus'
icon_filename = 'File:White equals sign on grey rounded square.svg'
find_count = 1
end
if find_count >= 2 or (argIsSet('result') and find_count == 0) then
result_match = 'MultipleSplit or bespoke decisions'
icon_filename = 'File:White i in purple rounded square.svg'
elseif find_count <= 0 then
result_match = 'No decision or bespoke decision'
icon_filename = 'File:50% grey rounded square.svg'
end
Line 60 ⟶ 67:
end
--Detect result first, default to "no or bespokedecision" if arg not set
local result_match = 'No decision or bespoke decision'
local icon_filename = 'File:50% grey rounded square.svg'
local result_string = ''