Module:Protection banner: Difference between revisions
add explanation blurb for semi-protection
(turn Blurb.formatDate into Blurb:_formatDate so that it can access the config) |
(add explanation blurb for semi-protection) |
||
Line 474: | Line 474: | ||
local isTalk = self._protectionObj.title.isTalkPage | local isTalk = self._protectionObj.title.isTalkPage | ||
-- @TODO: add | -- @TODO: add pending changes | ||
local key | local key | ||
if namespace == 8 then | if namespace == 8 then | ||
Line 481: | Line 481: | ||
elseif action == 'edit' and level == 'sysop' and not isTalk then | elseif action == 'edit' and level == 'sysop' and not isTalk then | ||
key = 'explanation-blurb-full-subject' | 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 | elseif action == 'move' then | ||
if isTalk then | if isTalk then |