Module:Protection banner/config: Difference between revisions

m
(replace red with gold, per changes on policy page)
m (2 revisions imported from wikipedia:Module:Protection_banner/config)
 
(40 intermediate revisions by 24 users not shown)
Line 41:
--
-- ${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
Line 132 ⟶ 129:
-- The default banner data. This holds banner data for different protection
-- levels.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
defaultBanners = {
edit = {},
move = {},
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 = {
alt = 'Page protected with pending changes level 2',
tooltip = 'All edits by usersunregistered whoand new users are notsubject reviewersto orreview administratorsprior areto becoming visible to unregistered users',
image = 'PadlockPending-silverprotection-lightshackle.svg'
.. ' subject to review',
}
},
upload = {}
},
 
Line 158 ⟶ 151:
-- module documentation.
--
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
banners = {
edit = {
Line 164 ⟶ 157:
description = 'For pages protected to promote compliance with the'
.. ' [[Wikipedia:Biographies of living persons'
.. '|biographies of living persons]] policy.',
text = '${INTROFRAGMENT} to promote compliance with'
.. ' [[Wikipedia:Biographies of living persons'
Line 170 ⟶ 163:
.. ' of living people]].',
tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on'
.. ' biographies of living peoplepersons',
},
dmca = {
description = 'For pages protected by the Wikimedia Foundation'
.. ' due to [[Digital Millennium Copyright Act]] takedown requests.',
explanation = function (protectionObj, args)
local ret = 'Pursuant to a rights owner notice under the Digital'
Line 192 ⟶ 185:
return ret
end,
image = 'PadlockOffice-blackprotection-shackle.svg',
},
dispute = {
description = 'For pages protected due to editing disputes.',
text = function (protectionObj, args)
-- Find the value of "disputes".
Line 224 ⟶ 217:
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes',
},
ecp = {
description = 'For articles in topic areas authorized by'
.. ' [[Wikipedia:ReviewingArbitration Committee|reviewersArbCom]] or'
.. ' meets the criteria for community use',
tooltip = 'This ${PAGETYPE} is extended-confirmed protected',
alt = 'Extended-protected ${PAGETYPE}',
},
mainpage = {
description = 'For pages protected for being displayed on the [[Main Page]].',
text = 'This file is currently'
.. ' [[Wikipedia:This page is protected|protected]] from'
Line 239:
},
office = {
description = 'For pages protected by the Wikimedia Foundation.',
text = function (protectionObj, args)
local ret = 'This ${PAGETYPE} is currently under the'
Line 254:
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " so.'''",
image = 'PadlockOffice-blackprotection-shackle.svg',
},
reset = {
description = 'For pages protected by the Wikimedia Foundation and'
.. ' "reset" to a bare-bones version.',
text = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
Line 291:
return ret
end,
image = 'PadlockOffice-blackprotection-shackle.svg',
},
sock = {
description = 'For pages protected due to'
.. ' [[Wikipedia:Sock puppetry|sock puppetry]].',
text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of'
.. ' [[Wikipedia:Blocking policy|blocked]] or'
Line 305:
template = {
description = 'For [[Wikipedia:High-risk templates|high-risk]]'
.. ' templates and Lua modules.',
text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},'
.. ' as it is [[Wikipedia:High-risk templates|high-risk]].',
Line 323:
usertalk = {
description = 'For pages protected against disruptive edits by a'
.. ' particular user.',
text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,'
.. ' such as abusing the'
Line 340:
vandalism = {
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism|vandalism]].',
text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].',
explanation = function (protectionObj, args)
Line 356:
dispute = {
description = 'For pages protected against page moves due to'
.. ' disputes over the page title.',
explanation = "This protection is '''not''' an endorsement of the"
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
image = 'PadlockMove-oliveprotection-shackle.svg'
},
vandalism = {
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism#Page-move vandalism'
.. ' |page-move vandalism]].'
}
},
autoreview = {},
upload = {}
},
 
Line 388 ⟶ 389:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
protectionBlurbs = {
edit = {
Line 395 ⟶ 396:
autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access'
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
.. ' users|unregistered]] users is currently [[Help:Protection|disabled]]',
extendedconfirmed = 'This ${PAGETYPE} is currently under extended confirmed protection',
},
move = {
Line 402 ⟶ 404:
},
autoreview = {
autoconfirmeddefault = 'All edits made to this ${PAGETYPE} by'
.. ' [[Wikipedia:User access levels#New users|new]] or'
.. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
.. ' users are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]',
default = 'All edits made to this ${PAGETYPE} by users who are not'
.. ' [[Wikipedia:Reviewing|reviewers]] or'
.. ' [[Wikipedia:Administrators|administrators]] are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]'
},
upload = {
default = 'AllUploading editsnew madeversions toof this ${PAGETYPE} byis userscurrently who are notdisabled'
}
},
Line 430 ⟶ 431:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
explanationBlurbs = {
edit = {
Line 449 ⟶ 450:
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].',
},
extendedconfirmed = {
default = 'Extended confirmed protection prevents edits from all unregistered editors'
.. ' and registered users with fewer than 30 days tenure and 500 edits.'
reviewer = .. 'See theThe [[Wikipedia:Protection policy#extended|policy on community use]]'
.. ' specifies that extended confirmed protection can be applied to combat'
.. ' disruption, if semi-protection has proven to be ineffective.'
.. ' Extended confirmed protection may also be applied to enforce'
.. ' [[Wikipedia:Arbitration Committee|arbitration sanctions]].'
.. ' Please discuss any changes on the ${TALKPAGE}; you may'
.. ' ${EDITREQUEST} to ask for uncontroversial changes supported by'
.. ' [[Wikipedia:Pending changesConsensus|subject to reviewconsensus]].',
},
default = {
Line 490 ⟶ 503:
autoreview = {
default = {
reviewer = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' Edits to this ${PAGETYPE} will not be visible to readers'
.. ' until they are accepted by a reviewer or an administrator.'
.. ' To avoid the need for your edits to be reviewed, you may'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]]. Experienced editors may also'
.. ' request the [[Wikipedia:Reviewing|reviewer user right]].',
default = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
Line 510 ⟶ 514:
.. ' [[Special:UserLogin/signup|create an account]].'
},
},
upload = {
default = {
reviewer default = 'See the [[Wikipedia:Protection policy#pc2|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' The page may still be edited but new versions of the file'
.. ' cannot be uploaded until it is unprotected. You can'
.. ' request that a new version be uploaded by using a'
.. ' [[Wikipedia:Edit requests|protected edit request]], or you'
.. ' can [[Wikipedia:Requests for page protection|request]]'
.. ' that the file be unprotected.'
}
}
},
Line 519 ⟶ 535:
-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which
-- produces a short label for different protection levels. It is sorted by
-- protection action and protecitonprotection level, and is checked in the following
-- order:
-- 1. page's protection action, page's protection level
Line 526 ⟶ 542:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
protectionLevels = {
edit = {
default = 'protected',
templateeditor = 'template-protected',
extendedconfirmed = 'extended-protected',
autoconfirmed = 'semi-protected',
},
Line 537 ⟶ 554:
},
autoreview = {
},
upload = {
default = 'Padlockupload-orange.svgprotected'
}
},
Line 552 ⟶ 572:
images = {
edit = {
default = 'PadlockFull-protection-shackle.svg',
templateeditor = 'PadlockTemplate-pinkprotection-shackle.svg',
autoconfirmedextendedconfirmed = 'PadlockExtended-silverprotection-shackle.svg',
autoconfirmed = 'Semi-protection-shackle.svg'
},
move = {
default = 'PadlockMove-oliveprotection-shackle.svg',
},
autoreview = {
autoconfirmeddefault = 'PadlockPending-silverprotection-lightshackle.svg',
},
default = 'Padlock-orange.svg'
upload = {
default = 'Upload-protection-shackle.svg'
}
},
Line 583 ⟶ 606:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
imageLinks = {
edit = {
default = 'Wikipedia:Protection policy#full',
templateeditor = 'Wikipedia:Protection policy#template',
extendedconfirmed = 'Wikipedia:Protection policy#extended',
autoconfirmed = 'Wikipedia:Protection policy#semi'
},
Line 594 ⟶ 618:
},
autoreview = {
autoconfirmeddefault = 'Wikipedia:Protection policy#pc1pending',
},
reviewer = 'Wikipedia:Protection policy#pc2'
upload = {
default = 'Wikipedia:Protection policy#upload'
}
},
Line 706 ⟶ 732:
 
protectionCategories = {
['all|all|all|all|all'] = 'Wikipedia fully protected pages',
['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'] = 'ProtectedWikipedia fully-protected main page imagesfiles',
['all|templateall|all|extendedconfirmed|all|edit'] = 'Wikipedia fullyextended-confirmed-protected templatespages',
['all|all|allecp|autoconfirmedextendedconfirmed|editall'] = 'Wikipedia semiextended-confirmed-protected pages',
['indefall|template|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitelyfully semi-protected pagestemplates',
['all|all|blpall|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living peoplepages',
['tempindef|all|blpall|autoconfirmed|edit'] = 'Wikipedia temporarilyindefinitely semi-protected biographies of living peoplepages',
['all|all|disputeblp|autoconfirmed|edit'] = 'Wikipedia pagesindefinitely semi-protected duebiographies of toliving disputepeople',
['alltemp|all|sockblp|autoconfirmed|edit'] = 'Wikipedia pagestemporarily semi-protected frombiographies of bannedliving userspeople',
['all|all|vandalismdispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected againstdue to vandalismdispute',
['all|category|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected categoriesfrom banned users',
['all|file|all|vandalism|autoconfirmed|edit'] = 'SemiWikipedia pages semi-protected imagesagainst vandalism',
['all|portalcategory|all|autoconfirmed|edit'] = 'SemiWikipedia semi-protected portalscategories',
['all|projectfile|all|autoconfirmed|edit'] = 'SemiWikipedia semi-protected project pagesfiles',
['all|talkportal|all|autoconfirmed|edit'] = 'SemiWikipedia semi-protected talk pagesportals',
['all|templateproject|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templatesproject pages',
['all|usertalk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages',
['all|template|all|templateeditorautoconfirmed|edit'] = 'Wikipedia templatesemi-protected templates',
['all|user|all|blp|sysopautoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographiesuser and ofuser livingtalk peoplepages',
['tempall|template|all|blp|sysoptemplateeditor|edit'] = 'Wikipedia temporarily template-protected biographies of living peopletemplates',
['all|template|all|disputetemplateeditor|sysop|editmove'] = 'Wikipedia pages template-protected duetemplates', to-- dispute',move-protected templates
['all|all|sockblp|sysop|edit'] = 'Wikipedia pagesindefinitely protected frombiographies of bannedliving userspeople',
['alltemp|all|vandalismblp|sysop|edit'] = 'Wikipedia pagestemporarily protected againstbiographies of living vandalismpeople',
['all|category|all|dispute|sysop|edit'] = 'Wikipedia pages protected categoriesdue to dispute',
['all|file|all|sock|sysop|edit'] = 'ProtectedWikipedia pages protected from banned imagesusers',
['all|project|all|vandalism|sysop|edit'] = 'Protected projectWikipedia pages protected against vandalism',
['all|talkcategory|all|sysop|edit'] = 'ProtectedWikipedia fully talkprotected pagescategories',
['all|templatefile|all|sysop|edit'] = 'Wikipedia fully-protected templatesfiles',
['all|userproject|all|sysop|edit'] = 'Wikipedia fully-protected user and user talkproject pages',
['all|moduletalk|all|allsysop|edit'] = 'Wikipedia fully-protected modulestalk pages',
['all|moduletemplate|all|templateeditorextendedconfirmed|edit'] = 'Wikipedia templateextended-confirmed-protected modulestemplates',
['all|moduletemplate|all|autoconfirmedsysop|edit'] = 'Wikipedia semi-fully protected modulestemplates',
['all|alluser|all|sysop|moveedit'] = 'Wikipedia move-fully protected user and user talk pages',
['indefall|module|all|all|sysop|moveedit'] = 'Wikipedia indefinitely movefully-protected pagesmodules',
['all|module|all|disputetemplateeditor|sysop|moveedit'] = 'Wikipedia pages movetemplate-protected due to disputemodules',
['all|module|all|vandalismautoconfirmed|sysop|moveedit'] = 'Wikipedia pages movesemi-protected due to vandalismmodules',
['all|portalall|all|sysop|move'] = 'Wikipedia move-protected portalspages',
['allindef|portalall|all|sysop|move'] = 'Wikipedia indefinitely move-protected portalspages',
['all|project|all|dispute|sysop|move'] = 'Wikipedia pages move-protected projectdue pagesto dispute',
['all|talk|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected talkdue pagesto vandalism',
['all|templateportal|all|sysop|move'] = 'Wikipedia move-protected templatesportals',
['all|userproject|all|sysop|move'] = 'Wikipedia move-protected user and user talkproject pages',
['all|alltalk|all|autoconfirmedsysop|autoreviewmove'] = 'Wikipedia pending changes move-protected pagestalk (level 1)pages',
['all|alltemplate|all|reviewersysop|autoreviewmove'] = 'Wikipedia pending changes protected pages (level 2)= 'Wikipedia move-protected templates',
['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages',
['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages',
['all|file|all|all|upload'] = 'Wikipedia upload-protected files',
},
 
Line 773 ⟶ 802:
edit = nil,
move = false,
autoreview = true,
upload = false
},
 
Line 820 ⟶ 850:
filemover = {'sysop'},
templateeditor = {'sysop'},
extendedconfirmed = {'sysop'},
autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'},
user = {'autoconfirmed'},
['*'] = {'user'}
Line 839 ⟶ 870:
--
-- When a user calls one of these wrapper templates, they will use the
-- default arguments automatically. TheHowever, argumentsusers cannotcan beoverride overwrittenany byof the
-- userarguments.
wrappers = {
['Template:Pp'] = {},
['Template:Pp-pc2extended'] = {action = 'autoreviewecp', small = true},
['Template:Pp-blp'] = {'blp'},
-- we don't need Template:Pp-create
['Template:Pp-dispute'] = {'dispute'},
['Template:Pp-main-page'] = {'mainpage'},
['Template:Pp-move'] = {action = 'move', catonly = 'yes'},
['Template:Pp-move-dispute'] = {'dispute', action = 'move', catonly = 'yes'},
-- we don't need Template:Pp-move-indef
['Template:Pp-move-vandalism'] = {'vandalism', action = 'move', catonly = 'yes'},
['Template:Pp-office'] = {'office'},
['Template:Pp-office-dmca'] = {'dmca'},
['Template:Pp-pc'] = {action = 'autoreview', small = true},
['Template:Pp-pc1'] = {action = 'autoreview', small = true},
['Template:Pp-pc2'] = {action = 'autoreview', small = true},
['Template:Pp-reset'] = {'reset'},
['Template:Pp-semi-indef'] = {expiry = 'indef', small = true},
['Template:Pp-sock'] = {'sock'},
['Template:Pp-template'] = {'template', small = true},
['Template:Pp-upload'] = {action = 'upload'},
['Template:Pp-usertalk'] = {'usertalk'},
['Template:Pp-vandalism'] = {'vandalism'},
Line 958 ⟶ 991:
-- This is the format for the blurb expiry date. It should be valid input for
-- the first parameter of the #time parser function.
['expiry-date-format'] = 'F j, Y "at" H:i e',
 
--------------------------------------------------------------------------------
Line 966 ⟶ 999:
-- These messages determine which tracking categories the module outputs.
['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates',
['tracking-category-expiry'] = 'Wikipedia protected pages without expiry',
['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules',
 
Line 974 ⟶ 1,006:
 
-- These are images that are not defined by their protection action and protection level.
['image-filename-indef'] = 'PadlockFull-protection-shackle.svg',
['image-filename-default'] = 'Transparent.gif',