Module:Protection banner/config: Difference between revisions

fix parameter names for the banner data functions
Enwikipedia>Mr. Stradivarius
(add dmca reason)
Enwikipedia>Mr. Stradivarius
(fix parameter names for the banner data functions)
Line 114:
description = 'For pages protected by the Wikimedia Foundation'
.. ' due to Digital Millennium Copyright Act takedown requests.',
explanation = function (protectionDateprotectionObj, blurbDataargs)
local ret = 'Pursuant to a rights owner notice under the Digital'
.. ' Millennium Copyright Act (DMCA) regarding some content'
Line 120:
.. ' applicable law and took down and restricted the content'
.. ' in question.'
if blurbDataargs.notice then
ret = ret .. ' A copy of the received notice can be found here: '
.. blurbDataargs.notice .. '.'
end
ret = ret .. ' For more information, including websites discussing'
Line 135:
dispute = {
description = 'For pages protected due to editing disputes.',
text = function (protectionObj, blurbDataargs)
-- Find the value of "disputes".
local display = 'disputes'
local disputes
if blurbDataargs.section then
disputes = string.format(
'[[%s:%s#%s|%s]]',
mw.site.namespaces[protectionObj.title.namespace].talk.name,
protectionObj.title.text,
blurbDataargs.section,
display
)
Line 179:
office = {
description = 'For pages protected by the Wikimedia Foundation.',
text = function (protectionDateprotectionObj, blurbDataargs)
local ret = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
Line 198:
description = 'For pages protected by the Wikimedia Foundation and'
.. ' "reset" to a bare-bones version.',
text = function (protectionObj, blurbDataargs)
local ret = ''
if protectionObj.protectionDate then
Line 277:
.. ' [[Wikipedia:Vandalism|vandalism]].',
text = '${INTROBLURB} due to [[Wikipedia:Vandalism|vandalism]].',
explanation = function (protectionObj, blurbDataargs)
local ret = ''
if protectionObj.level == 'sysop' then