Module:Submit an edit request: Difference between revisions

Content deleted Content added
per request
Tag: Reverted
Line 67:
end
local talkPageName = titleObj.talkPageTitle
local useTalkPage = true
if talkPageName == nil then
useTalkPage = false
return tostring(mw.uri.fullUrl(message('protected-talk-page-request-page')))
else
end
talkPageName = resolveRedirect(talkPageName.prefixedText)
if isProtected(talkPageName) then
useTalkPage = false
return tostring(mw.uri.fullUrl(message('protected-talk-page-request-page')))
end
end
level = validateLevel(level)
local pageToEdit
if level == 'manual' then
if not useTalkPage then
if level == 'manual' then
return tostring(mw.uri.fullUrl(message('protected-talk-page-request-page'))), {
action = 'edit',
section = 'new'
}))
else
return pageToEdit = tostring(mw.uri.fullUrl(message('protected-talk-page-request-page')))
sectionname = titleObj.prefixedText
end
elseif level == 'manual' then
return tostring(mw.uri.fullUrl(talkPageName, {
action = 'edit',
section = 'new'
}))
else
end
pageToEdit = talkPageName
local sectionname = message(
'preload-title-text',
getLevelInfo(level, 'levelText'),
lang:formatDate(message('preload-title-date-format'))
)
end
local content = mw.title.new(talkPageNamepageToEdit):getContent()
if content and content:find("== *" .. escape(sectionname) .. " *==") then
local dedup = 2
Line 98 ⟶ 113:
end
end
local url = mw.uri.fullUrl(talkPageNamepageToEdit, {
action = 'edit',
editintro = getLevelInfo(level, 'editintro'),