Module:Submit an edit request/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 99:
end
local content = mw.title.new(pageToEdit):getContent()
if content and content:find("===? *" .. escape(sectionname) .. " *=?==") then
local dedup = 2
while true do
local newname = message("preload-title-dedup-suffix", sectionname, dedup)
if not content:find("===? *" .. escape(newname) .. " *=?==") then
sectionname = newname
break
Line 114:
editintro = getLevelInfo(level, 'editintro'),
preload = message('preload-template'),
preloadtitle = sectionname,
section = 'new'
}
Line 120 ⟶ 119:
args.summary = message('request-page-auto-summary', titleObj.prefixedText)
args.nosummary = 'true'
-- Section header is handled by the preload
else
args.preloadtitle = sectionname,
end
url = tostring(mw.uri.fullUrl(pageToEdit, args))