Jump to content

Module:Protection banner: Difference between revisions

m
5 revisions imported: testing
m (Reverted edits by 2405:4800:58F7:1864:BD49:E2A5:EE53:7F6F (talk) to last version by Tomybrz)
m (5 revisions imported: testing)
Line 4:
-- Initialise necessary modules.
require('Module:No globals')
local makeFileLink = require('Module:FileLink linkde arquivo')._main
local effectiveProtectionLevel = require('Module:EffectiveNível protectionefetivo levelde proteção')._main
local effectiveProtectionExpiry = require('Module:EffectiveExpiração protectionefetiva expiryde proteção')._main
local yesno = require('Module:Yesno')
 
Line 440:
)
end
end
 
function Blurb:_makeEditRequestParameter()
local mEditRequest = require('Module:Submeter um pedido de edição')
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
 
Line 835 ⟶ 859:
-- Find default args, if any.
local parent = frame.getParent and frame:getParent()
local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandboxTestes$', '')]
 
-- Find user args, and use the parent frame if we are being called from a
Cookies help us deliver our services. By using our services, you agree to our use of cookies.