Module:Protection banner: Difference between revisions
Content added Content deleted
MusikAnimal (talk | contribs) m (1 revision imported) |
(FlaggedRevs isn't installed on this wiki) |
||
Line 88: | Line 88: | ||
edit = true, |
edit = true, |
||
move = true, |
move = true, |
||
autoreview = true, |
|||
upload = true |
upload = true |
||
} |
} |
||
Line 440: | Line 439: | ||
) |
) |
||
end |
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. |
|||
⚫ | |||
return mEditRequest._link{type = requestType, display = display} |
|||
end |
end |
||
Line 593: | Line 568: | ||
function Blurb:_makeProtectionLogParameter() |
function Blurb:_makeProtectionLogParameter() |
||
local pagename = self._protectionObj.title.prefixedText |
local pagename = self._protectionObj.title.prefixedText |
||
⚫ | |||
if self._protectionObj.action == 'autoreview' then |
|||
⚫ | |||
-- We need the pending changes log. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{type = 'stable', page = pagename}, |
|||
⚫ | |||
self:_getExpandedMessage('pc-log-display') |
|||
) |
|||
else |
|||
⚫ | |||
return makeFullUrl( |
|||
'Special:Log', |
|||
⚫ | |||
self:_getExpandedMessage('protection-log-display') |
|||
) |
|||
end |
|||
end |
end |
||