Modul:Protection banner: Unterschied zwischen den Versionen

rm stuff only useful for pp-create and other things deprecated in favor of salting
(no need to special case indef expiry. if it's indef, the messages that get used don't use it anyway)
(rm stuff only useful for pp-create and other things deprecated in favor of salting)
Zeile 60: Zeile 60:


Protection.supportedActions = {
Protection.supportedActions = {
create = true,
edit = true,
edit = true,
move = true,
move = true,
Zeile 321: Zeile 320:
self._cfg = cfg
self._cfg = cfg
self._protectionObj = protectionObj
self._protectionObj = protectionObj
self._deletionDiscussionPage = args.xfd
self._username = args.user
self._username = args.user
self._section = args.section
self._section = args.section
Zeile 353: Zeile 351:


parameterFuncs.CURRENTVERSION    = self._makeCurrentVersionParameter
parameterFuncs.CURRENTVERSION    = self._makeCurrentVersionParameter
parameterFuncs.DELETIONDISCUSSION = self._makeDeletionDiscussionParameter
parameterFuncs.DISPUTEBLURB      = self._makeDisputeBlurbParameter
parameterFuncs.DISPUTEBLURB      = self._makeDisputeBlurbParameter
parameterFuncs.DISPUTESECTION    = self._makeDisputeSectionParameter
parameterFuncs.DISPUTESECTION    = self._makeDisputeSectionParameter
Zeile 407: Zeile 404:
self:_getExpandedMessage('current-version-edit-display')
self:_getExpandedMessage('current-version-edit-display')
)
)
end
end
function Blurb:_makeDeletionDiscussionLinkParameter()
if self._deletionDiscussionPage then
local display = self:_getExpandedMessage('deletion-discussion-link-display')
return string.format('[[%s|%s]]', self._deletionDiscussionPage, display)
end
end
end
end
Zeile 496: Zeile 486:
else
else
key = 'explanation-blurb-move-subject'
key = 'explanation-blurb-move-subject'
end
elseif action == 'create' then
if self._deletionDiscussion then
key = 'explanation-blurb-create-xfd'
else
key = 'explanation-blurb-create-noxfd'
end
end
else
else
Anonymer Benutzer