Module:Protection banner/config: Difference between revisions

(rename categories per WP:CFDS)
 
(33 intermediate revisions by 22 users not shown)
Line 41: Line 41:
--
--
-- ${EDITREQUEST} - a link to create an edit request for the current page.
-- ${EDITREQUEST} - a link to create an edit request for the current page.
--
-- ${EXPIRY} - the protection expiry date in the format DD Month YYYY. If
-- protection is indefinite or is not set, this is the blank string.
--
--
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes
Line 137: Line 134:
move = {},
move = {},
autoreview = {
autoreview = {
autoconfirmed = {
alt = 'Page protected with pending changes level 1',
tooltip = 'All edits by unregistered and new users are subject to review',
image = 'Padlock-silver-light.svg'
},
default = {
default = {
alt = 'Page protected with pending changes level 2',
alt = 'Page protected with pending changes',
tooltip = 'All edits by users who are not reviewers or administrators are'
tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users',
.. ' subject to review',
image = 'Pending-protection-shackle.svg'
}
}
},
},
Line 165: Line 157:
description = 'For pages protected to promote compliance with the'
description = 'For pages protected to promote compliance with the'
.. ' [[Wikipedia:Biographies of living persons'
.. ' [[Wikipedia:Biographies of living persons'
.. '|biographies of living persons]] policy.',
.. '|biographies of living persons]] policy',
text = '${INTROFRAGMENT} to promote compliance with'
text = '${INTROFRAGMENT} to promote compliance with'
.. ' [[Wikipedia:Biographies of living persons'
.. ' [[Wikipedia:Biographies of living persons'
Line 171: Line 163:
.. ' of living people]].',
.. ' of living people]].',
tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on'
tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on'
.. ' biographies of living people',
.. ' biographies of living persons',
},
},
dmca = {
dmca = {
description = 'For pages protected by the Wikimedia Foundation'
description = 'For pages protected by the Wikimedia Foundation'
.. ' due to Digital Millennium Copyright Act takedown requests.',
.. ' due to [[Digital Millennium Copyright Act]] takedown requests',
explanation = function (protectionObj, args)
explanation = function (protectionObj, args)
local ret = 'Pursuant to a rights owner notice under the Digital'
local ret = 'Pursuant to a rights owner notice under the Digital'
Line 193: Line 185:
return ret
return ret
end,
end,
image = 'Padlock-black.svg',
image = 'Office-protection-shackle.svg',
},
},
dispute = {
dispute = {
description = 'For pages protected due to editing disputes.',
description = 'For pages protected due to editing disputes',
text = function (protectionObj, args)
text = function (protectionObj, args)
-- Find the value of "disputes".
-- Find the value of "disputes".
Line 225: Line 217:
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes',
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes',
},
ecp = {
description = 'For articles in topic areas authorized by'
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] or'
.. ' meets the criteria for community use',
tooltip = 'This ${PAGETYPE} is extended-confirmed protected',
alt = 'Extended-protected ${PAGETYPE}',
},
},
mainpage = {
mainpage = {
description = 'For pages protected for being displayed on the [[Main Page]].',
description = 'For pages protected for being displayed on the [[Main Page]]',
text = 'This file is currently'
text = 'This file is currently'
.. ' [[Wikipedia:This page is protected|protected]] from'
.. ' [[Wikipedia:This page is protected|protected]] from'
Line 240: Line 239:
},
},
office = {
office = {
description = 'For pages protected by the Wikimedia Foundation.',
description = 'For pages protected by the Wikimedia Foundation',
text = function (protectionObj, args)
text = function (protectionObj, args)
local ret = 'This ${PAGETYPE} is currently under the'
local ret = 'This ${PAGETYPE} is currently under the'
Line 255: Line 254:
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " so.'''",
.. " so.'''",
image = 'Padlock-black.svg',
image = 'Office-protection-shackle.svg',
},
},
reset = {
reset = {
description = 'For pages protected by the Wikimedia Foundation and'
description = 'For pages protected by the Wikimedia Foundation and'
.. ' "reset" to a bare-bones version.',
.. ' "reset" to a bare-bones version',
  text = 'This ${PAGETYPE} is currently under the'
  text = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' scrutiny of the'
Line 292: Line 291:
return ret
return ret
end,
end,
image = 'Padlock-black.svg',
image = 'Office-protection-shackle.svg',
},
},
sock = {
sock = {
description = 'For pages protected due to'
description = 'For pages protected due to'
.. ' [[Wikipedia:Sock puppetry|sock puppetry]].',
.. ' [[Wikipedia:Sock puppetry|sock puppetry]]',
text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of'
text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of'
.. ' [[Wikipedia:Blocking policy|blocked]] or'
.. ' [[Wikipedia:Blocking policy|blocked]] or'
Line 306: Line 305:
template = {
template = {
description = 'For [[Wikipedia:High-risk templates|high-risk]]'
description = 'For [[Wikipedia:High-risk templates|high-risk]]'
.. ' templates and Lua modules.',
.. ' templates and Lua modules',
text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},'
text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},'
.. ' as it is [[Wikipedia:High-risk templates|high-risk]].',
.. ' as it is [[Wikipedia:High-risk templates|high-risk]].',
Line 324: Line 323:
usertalk = {
usertalk = {
description = 'For pages protected against disruptive edits by a'
description = 'For pages protected against disruptive edits by a'
.. ' particular user.',
.. ' particular user',
text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,'
text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,'
.. ' such as abusing the'
.. ' such as abusing the'
Line 341: Line 340:
vandalism = {
vandalism = {
description = 'For pages protected against'
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism|vandalism]].',
.. ' [[Wikipedia:Vandalism|vandalism]]',
text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].',
text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].',
explanation = function (protectionObj, args)
explanation = function (protectionObj, args)
Line 357: Line 356:
dispute = {
dispute = {
description = 'For pages protected ag