Content deleted Content added
copy of Module:Submit an edit request/sandbox, minus '/sandbox', as requested at the talk page (Special:Permalink/1033938234#Protected_edit_request_on_16_July_2021) by Pppery Tag: Reverted |
HouseBlaster (talk | contribs) bypass redirect |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 29:
return mw.message.newRawMessage(msg):params(params):plain()
end
end▼
local mainPage = message('main-page')▼
if source == mainPage then▼
end▼
end
Line 60 ⟶ 50:
function p.makeRequestUrl(level, titleObj)
titleObj = titleObj or mw.title.getCurrentTitle()
▲ local basePage = titleObj.basePageTitle.fullText
▲ if cfg['main-page-content'][basePage] then
▲ return tostring(mw.uri.fullUrl(message('main-page-request-page')))
end
local talkPageName = titleObj.talkPageTitle
if talkPageName == nil then
▲ end
end
level = validateLevel(level)
▲ return tostring(mw.uri.fullUrl(message('protected-talk-page-request-page'), {
▲ pageToEdit = message('protected-talk-page-request-page')
return tostring(mw.uri.fullUrl(talkPageName, {
action = 'edit',
section = 'new'
}))
'preload-title-text',
getLevelInfo(level, 'levelText'),
lang:formatDate(message('preload-title-date-format'))
▲ local content = mw.title.new(pageToEdit):getContent()
if content and content:find("== *" .. escape(sectionname) .. " *==") then
local dedup = 2
Line 113 ⟶ 87:
end
end
local url = mw.uri.fullUrl(
action = 'edit',
editintro = getLevelInfo(level, 'editintro'),
Line 142 ⟶ 116:
function p._button(args)
return require('Module:Clickable button
[1] = args.display or message('default-display-value'),
url = p.makeRequestUrl(args.type),
|