Module:Protection banner: Difference between revisions

add explanation blurb for semi-protection
Enwikipedia>Mr. Stradivarius
(turn Blurb.formatDate into Blurb:_formatDate so that it can access the config)
Enwikipedia>Mr. Stradivarius
(add explanation blurb for semi-protection)
Line 474:
local isTalk = self._protectionObj.title.isTalkPage
 
-- @TODO: add semi-protection and pending changes blurbs
local key
if namespace == 8 then
Line 481:
elseif action == 'edit' and level == 'sysop' and not isTalk then
key = 'explanation-blurb-full-subject'
elseif action == 'edit' and level == 'autoconfirmed' then
if isTalk then
key = 'explanation-blurb-semi-talk'
else
key = 'explanation-blurb-semi-subject'
end
elseif action == 'move' then
if isTalk then