Module:Protection banner: Difference between revisions

m
1 revision imported: Importing Template:Tmbox, with templates.
(FlaggedRevs isn't installed on this wiki)
m (1 revision imported: Importing Template:Tmbox, with templates.)
Line 88:
edit = true,
move = true,
autoreview = true,
upload = true
}
Line 439 ⟶ 440:
)
end
end
 
function Blurb:_makeEditRequestParameter()
local mEditRequest = require('Module:Submit an edit request')
local action = self._protectionObj.action
local level = self._protectionObj.level
)
-- Get the edit request type.
local requestType
if action == 'edit' then
if level == 'autoconfirmed' then
requestType = 'semi'
elseif level == 'extendedconfirmed' then
requestType = 'extended'
elseif level == 'templateeditor' then
requestType = 'template'
end
end
requestType = requestType or 'full'
-- Get the display value.
local display = self:_getExpandedMessage('protectionedit-logrequest-display')
 
return mEditRequest._link{type = requestType, display = display}
end
 
Line 568 ⟶ 593:
function Blurb:_makeProtectionLogParameter()
local pagename = self._protectionObj.title.prefixedText
if self._protectionObj.action == 'autoreview' then
-- We need the protection log.
-- We need the pending changes log.
return makeFullUrl(
'Special:Log',
{type = 'protect', page = pagename},
{type = 'stable', page = pagename},
self:_getExpandedMessage('protection-log-display')
self:_getExpandedMessage('pc-log-display')
)
)
else
-- We need the protection log.
return makeFullUrl(
'Special:Log',
{type = 'protect', page = pagename},
self:_getExpandedMessage('protection-log-display')
)
end
end