Jump to content

Module:Protection banner: Difference between revisions

only use one display value for edit requests
(remove four deprecated parameters from Blurb:_substituteParameters)
(only use one display value for edit requests)
Line 434: Line 434:
local action = self._protectionObj.action
local action = self._protectionObj.action
local level = self._protectionObj.level
local level = self._protectionObj.level
-- Get the display message key.
local key
if action == 'edit' and level == 'autoconfirmed' then
key = 'edit-request-semi-display'
else
key = 'edit-request-full-display'
end
local display = self:_getExpandedMessage(key)
-- Get the edit request type.
-- Get the edit request type.
Line 455: Line 446:
requestType = requestType or 'full'
requestType = requestType or 'full'
-- Get the display value.
local display = self:_getExpandedMessage('edit-request-display')
return mEditRequest.exportLinkToLua{type = requestType, display = display}
return mEditRequest.exportLinkToLua{type = requestType, display = display}
end
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.