Module:Protection banner: Difference between revisions
Content added Content deleted
m (5 revisions imported from w:en:Module:Protection_banner) |
m (Removing edit request module (dosen't exist)) |
||
Line 440: | Line 440: | ||
) |
) |
||
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. |
|||
local display = self:_getExpandedMessage('edit-request-display') |
|||
return mEditRequest._link{type = requestType, display = display} |
|||
end |
end |
||