Content deleted Content added
Deryck Chan (talk | contribs) add "withdrawn" to "keep" logical set per WT:RFD |
m Protected "Module:RfD close": Highly visible module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1:
local rfd = {}
end▼
if (argIsSet('result')) then▼
function rfd.rfdt_before_result(frame) --this bit creates the "closed discussion" notice
Line 57 ⟶ 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 69 ⟶ 37:
end
if (parameter_lower:find('retarget'
result_match = 'Retarget'
icon_filename = 'File:Right-pointing white arrow in blue rounded square.svg'
Line 81 ⟶ 49:
end
if (parameter_lower:find('no consensus') and find_count
--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
icon_filename = 'File:White i in purple rounded square.svg'
elseif find_count <= 0 then
result_match = 'No
icon_filename = 'File:50% grey rounded square.svg'
end
Line 92 ⟶ 67:
end
--Detect result first, default to "no
local result_match = 'No
local icon_filename = 'File:50% grey rounded square.svg'
local result_string = ''
|