Module:Requested move: Difference between revisions

Content deleted Content added
Instead putting the protection checks after the error checks for the same purpose
m simplify some code (should be a no-op; if there are any errors no discussion is needed before reverting (WP:TPEDISPUTE))
 
Line 91:
if not validTitle then
-- If invalid, the second parameter is the error message.
local msg =return currentTitle
return msg
end
return 'yes'
Line 193 ⟶ 192:
-- multiple nomination.
local argsByNumCount = #argsByNum
local multi = (argsByNumCount >= 2)
 
if argsByNumCount >= 2 then
multi = true
else
multi = false
end
--[[
-- Validate new params.
Line 514 ⟶ 508:
 
-- Talk blurb
local talk = ''
if yesno(args.talk, true) then
talk = frame:expandTemplate{title = 'Requested move/talk'}
else
talk = ''
end