Changes
Jump to navigation
Jump to search
self._section = args.section
self._username = args.user
self._deletionDiscussionPage = args.xfd
end
function ProtectionStatus:getSection()
return self._section
end
function ProtectionStatus:getUsername()
return self._username
end
function ProtectionStatus:getDeletionDiscussionPage()
return self._deletionDiscussionPage
move section, username and deletion discussion methods out of the ProtectionStatus class, as they don't really have anything to do with protection status
self._reason = args.reason
self._expiry = args.expiry or 'indef'
self._protectionDate = args.date
end
function ProtectionStatus:getExpiry()
return self._expiry
end
function ProtectionStatus:getProtectionDate()
return self._protectionDate
end
url = tostring(url)
return string.format('[%s %s]', url, display)
end
function Blurb:setDeletionDiscussionPage(page)
self._deletionDiscussionPage = page
end
function Blurb:setUsername(username)
self._username = username
end
function Blurb:setSection(section)
self._section = section
end
-- parameter $3
-- "disputes", with or without a section link
local section = self._protectionStatusObj:getSection()_section
local disputes = self.configObj:getMessage('dispute-section-link-display')
if section then
-- parameter $6
local mVandalM = require('Module:Vandal-m')
local username = self._protectionStatusObj:getUsername()_username
username = username or self._titleObj.baseText
return mVandalM.luaMain{username}
function Blurb:_makeTalkLinkParameter()
-- parameter $11
local section = self._protectionStatusObj:getSection()_section
local display = self._configObj:getMessage('talk-page-link-display')
return string.format(
function Blurb:_makeDeletionBlurbParameter()
-- parameter $15
local deletionDiscussionPage = getDeletionDiscussionPage()self._deletionDiscussionPage
local key
if deletionDiscussionPage then
function Blurb:_makeDeletionDiscussionLinkParameter()
-- parameter $16
local deletionDiscussionPage = getDeletionDiscussionPage()self._deletionDiscussionPage
if deletionDiscussionPage then
local display = self._configObj:getMessage('deletion-discussion-link-display')
-- Render the banner
local theBanner
if yesno(args.small) then
theBanner = Padlock.new(theConfig, theProtectionStatus, title)
else
theBanner = Banner.new(theConfig, theProtectionStatus, title)
end
theBanner = Padlock.new(theConfig, theProtectionStatus, title)
theBanner:setDeletionDiscussionPage(args.xfd)
theBanner:setUsername(args.user)
theBanner:setSection(args.section)
ret[#ret + 1] = theBanner:export()
-- Render the categories