Content deleted Content added
error messages shouldn't be used to create instruction forks. text was just copied from WP:Requested moves#Requesting technical moves. |
Andy M. Wang (talk | contribs) + entrypoint for validateTitle, intend to use for Template:RMassist |
||
Line 67:
return true, titleObj
end
--------------------------------------------------------------------------------
-- Validate title entry point
--------------------------------------------------------------------------------
function p.validateTitle(frame)
local value = frame.args[1]
local validTitle, currentTitle = validateTitle(value or '', '1', '')
if not validTitle then
-- If invalid, the second parameter is the error message.
local msg = currentTitle
return msg
end
return 'yes'
end
|