Module:Protection banner/config: Difference between revisions

add dmca reason
Enwikipedia>Mr. Stradivarius
(reinstate the wrappers table and add the mainpage reason)
Enwikipedia>Mr. Stradivarius
(add dmca reason)
Line 110:
tooltip = '${TOOLTIPBLURB} to promote compliance with the policy on biographies of'
.. ' living people',
},
dmca = {
description = 'For pages protected by the Wikimedia Foundation'
.. ' due to Digital Millennium Copyright Act takedown requests.',
explanation = function (protectionDate, blurbData)
local ret = 'Pursuant to a rights owner notice under the Digital'
.. ' Millennium Copyright Act (DMCA) regarding some content'
.. ' in this article, the Wikimedia Foundation acted under'
.. ' applicable law and took down and restricted the content'
.. ' in question.'
if blurbData.notice then
ret = ret .. ' A copy of the received notice can be found here: '
.. blurbData.notice .. '.'
end
ret = ret .. ' For more information, including websites discussing'
.. ' how to file a counter-notice, please see'
.. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}."
.. "'''Do not remove this template from the article until the"
.. " restrictions are withdrawn'''."
return ret
end,
image = 'Padlock-black.svg',
},
dispute = {
Line 475 ⟶ 497:
['all-all-office-all-all'] = 'Wikipedia Office-protected pages',
['all-all-reset-all-all'] = 'Wikipedia Office-protected pages',
['all-all-dmca-all-all'] = 'Wikipedia Office-protected pages',
['all-all-mainpage-all-all'] = 'Protected main page images',
['all-template-all-all-edit'] = 'Wikipedia protected templates',
Line 564 ⟶ 587:
 
wrappers = {
['Template:Pp'] = {},
['Template:Pp-blp'] = {'blp', action = 'edit'},
-- we don't need Template:Pp-create
['Template:Pp-dispute'] = {'dispute', action = 'edit'},
['Template:Pp-main-page'] = {'main-pagemainpage', action = 'edit'},
['Template:Pp-move'] = {action = 'move'},
['Template:Pp-move-dispute'] = {'dispute', action = 'move'},
-- we don't need Template:Pp-move-indef
['Template:Pp-move-vandalism'] = {'vandalism', action = 'move'},
['Template:Pp-office'] = {'office'},
['Template:Pp-office-dmca'] = {'office-dmca'}, -- XXX The module doesn't support this reason yet. = {'dmca'},
['Template:Pp-pc1'] = {action = 'autoreview'},
['Template:Pp-pc2'] = {action = 'autoreview'},
['Template:Pp-protected'] = {action = 'edit'},
['Template:Pp-reset'] = {'reset'},
['Template:Pp-semi-indef'] = {expiry = 'indef'},
['Template:Pp-sock'] = {'sock', action = 'edit'},
['Template:Pp-template'] = {'template', action = 'edit'},
['Template:Pp-usertalk'] = {'usertalk', action = 'edit'},
['Template:Pp-vandalism'] = {'vandalism', action = 'edit'},
},