Anonymous user
Module:Protection banner/config: Difference between revisions
From Roses, Tulips, & Liberty
fix parameter names for the banner data functions
(add dmca reason) |
(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 (
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
ret = ret .. ' A copy of the received notice can be found here: '
..
end
ret = ret .. ' For more information, including websites discussing'
Line 135:
dispute = {
description = 'For pages protected due to editing disputes.',
text = function (protectionObj,
-- Find the value of "disputes".
local display = 'disputes'
local disputes
if
disputes = string.format(
'[[%s:%s#%s|%s]]',
mw.site.namespaces[protectionObj.title.namespace].talk.name,
protectionObj.title.text,
display
)
Line 179:
office = {
description = 'For pages protected by the Wikimedia Foundation.',
text = function (
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,
local ret = ''
if protectionObj.protectionDate then
Line 277:
.. ' [[Wikipedia:Vandalism|vandalism]].',
text = '${INTROBLURB} due to [[Wikipedia:Vandalism|vandalism]].',
explanation = function (protectionObj,
local ret = ''
if protectionObj.level == 'sysop' then
|