Module:Protection banner/config: Difference between revisions

from sandbox: not necessary to catch TPE'd non-templates as an error when it can be done as part of the normal workflow
m (1 revision imported)
 
mediawiki>Elli
(from sandbox: not necessary to catch TPE'd non-templates as an error when it can be done as part of the normal workflow)
Line 134: 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'
image = 'Padlock-orange.svg'
}
}
},
},
Line 169: 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 = {
Line 191: Line 185:
return ret
return ret
end,
end,
image = 'Padlock-black.svg',
image = 'Office-protection-shackle.svg',
},
},
dispute = {
dispute = {
Line 228: Line 222:
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] or'
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] or'
.. ' meets the criteria for community use',
.. ' meets the criteria for community use',
tooltip = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}'
tooltip = 'This ${PAGETYPE} is extended-confirmed protected',
.. ' under extended confirmed editing restrictions',
alt = 'Extended-protected ${PAGETYPE}',
alt = 'Extended-protected ${PAGETYPE}',
},
},
Line 261: 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 = {
Line 298: Line 291:
return ret
return ret
end,
end,
image = 'Padlock-black.svg',
image = 'Office-protection-shackle.svg',
},
},
sock = {
sock = {
Line 366: Line 359:
explanation = "This protection is '''not''' an endorsement of the"
explanation = "This protection is '''not''' an endorsement of the"
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
image = 'Padlock-olive.svg'
image = 'Move-protection-shackle.svg'
},
},
vandalism = {
vandalism = {
Line 404: Line 397:
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
.. ' users|unregistered]] users is currently [[Help:Protection|disabled]]',
.. ' users|unregistered]] users is currently [[Help:Protection|disabled]]',
extendedconfirmed = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} as a result of'
extendedconfirmed = 'This ${PAGETYPE} is currently under extended confirmed protection',
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] enforcement or meets the'
.. ' [[Wikipedia:Protection policy#extended|criteria for community use]]',
},
},
move = {
move = {
Line 413: Line 404:
},
},
autoreview = {
autoreview = {
autoconfirmed = 'All edits made to this ${PAGETYPE} by'
default = 'All edits made to this ${PAGETYPE} by'
.. ' [[Wikipedia:User access levels#New users|new]] or'
.. ' [[Wikipedia:User access levels#New users|new]] or'
.. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
.. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
.. ' users are currently'
.. ' 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]]'
.. ' [[Wikipedia:Pending changes|subject to review]]'
},
},
Line 465: Line 452:
},
},
extendedconfirmed = {
extendedconfirmed = {
default = 'Extended confirmed protection prevents edits from all IP editors'
default = 'Extended confirmed protection prevents edits from all unregistered editors'
.. ' and registered users with fewer than 30 days tenure and 500 edits.'
.. ' and registered users with fewer than 30 days tenure and 500 edits.'
.. ' The [[Wikipedia:Protection policy#extended|policy on community use]]'
.. ' The [[Wikipedia:Protection policy#extended|policy on community use]]'
.. ' specifies that extended confirmed protection can be applied to combat'
.. ' specifies that extended confirmed protection can be applied to combat'
.. ' disruption, given that semi-protection has proven to be ineffective.'
.. ' 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'
.. ' Please discuss any changes on the ${TALKPAGE}; you may'
.. ' ${EDITREQUEST} to ask for unconversial changes supported by'
.. ' ${EDITREQUEST} to ask for uncontroversial changes supported by'
.. ' [[Wikipedia:Consensus|consensus]].'
.. ' [[Wikipedia:Consensus|consensus]].'
},
},
Line 514: Line 503:
autoreview = {
autoreview = {
default = {
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|'
default = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
Line 592: Line 572:
images = {
images = {
edit = {
edit = {
default = 'Padlock.svg',
default = 'Full-protection-shackle.svg',
templateeditor = 'Padlock-pink.svg',
templateeditor = 'Template-protection-shackle.svg',
extendedconfirmed = 'Padlock-blue.svg',
extendedconfirmed = 'Extended-protection-shackle.svg',
autoconfirmed = 'Padlock-silver.svg'
autoconfirmed = 'Semi-protection-shackle.svg'
},
},
move = {
move = {
default = 'Padlock-olive.svg',
default = 'Move-protection-shackle.svg',
},
},
autoreview = {
autoreview = {
autoconfirmed = 'Padlock-silver-light.svg',
default = 'Pending-protection-shackle.svg'
default = 'Padlock-orange.svg'
},
},
upload = {
upload = {
default = 'Padlock-purple.svg'
default = 'Upload-protection-shackle.svg'
}
}
},
},
Line 639: Line 618:
},
},
autoreview = {
autoreview = {
autoconfirmed = 'Wikipedia:Protection policy#pc1',
default = 'Wikipedia:Protection policy#pending'
reviewer = 'Wikipedia:Protection policy#pc2'
},
},
upload = {
upload = {
Line 754: Line 732:


protectionCategories = {
protectionCategories = {
['all|all|all|all|all']                 = 'Wikipedia protected pages',
['all|all|all|all|all']                     = 'Wikipedia fully protected pages',
['all|all|office|all|all']               = 'Wikipedia Office-protected pages',
['all|all|office|all|all']                 = 'Wikipedia Office-protected pages',
['all|all|reset|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|dmca|all|all']                   = 'Wikipedia Office-protected pages',
['all|all|mainpage|all|all']             = 'Wikipedia fully-protected main page files',
['all|all|mainpage|all|all']               = 'Wikipedia fully-protected main page files',
['all|all|all|extendedconfirmed|all']   = 'Wikipedia pages under 30-500 editing restriction',
['all|all|all|extendedconfirmed|all']       = 'Wikipedia extended-confirmed-protected pages',
['all|all|ecp|extendedconfirmed|all']   = 'Wikipedia pages under 30-500 editing restriction',
['all|all|ecp|extendedconfirmed|all']       = 'Wikipedia extended-confirmed-protected pages',
['all|template|all|all|edit']           = 'Wikipedia fully-protected templates',
['all|template|all|all|edit']               = 'Wikipedia fully protected templates',
['all|all|all|autoconfirmed|edit']       = 'Wikipedia semi-protected pages',
['all|all|all|autoconfirmed|edit']         = 'Wikipedia semi-protected pages',
['indef|all|all|autoconfirmed|edit']     = 'Wikipedia indefinitely semi-protected pages',
['indef|all|all|autoconfirmed|edit']       = 'Wikipedia indefinitely semi-protected pages',
['all|all|blp|autoconfirmed|edit']       = 'Wikipedia indefinitely semi-protected biographies of living people',
['all|all|blp|autoconfirmed|edit']         = 'Wikipedia indefinitely semi-protected biographies of living people',
['temp|all|blp|autoconfirmed|edit']     = 'Wikipedia temporarily semi-protected biographies of living people',
['temp|all|blp|autoconfirmed|edit']         = 'Wikipedia temporarily semi-protected biographies of living people',
['all|all|dispute|autoconfirmed|edit']   = 'Wikipedia pages semi-protected due to dispute',
['all|all|dispute|autoconfirmed|edit']     = 'Wikipedia pages semi-protected due to dispute',
['all|all|sock|autoconfirmed|edit']     = 'Wikipedia pages semi-protected from banned users',
['all|all|sock|autoconfirmed|edit']         = 'Wikipedia pages semi-protected from banned users',
['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism',
['all|all|vandalism|autoconfirmed|edit']   = 'Wikipedia pages semi-protected against vandalism',
['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories',
['all|category|all|autoconfirmed|edit']     = 'Wikipedia semi-protected categories',
['all|file|all|autoconfirmed|edit']     = 'Wikipedia semi-protected files',
['all|file|all|autoconfirmed|edit']         = 'Wikipedia semi-protected files',
['all|portal|all|autoconfirmed|edit']   = 'Wikipedia semi-protected portals',
['all|portal|all|autoconfirmed|edit']       = 'Wikipedia semi-protected portals',
['all|project|all|autoconfirmed|edit']   = 'Wikipedia semi-protected project pages',
['all|project|all|autoconfirmed|edit']     = 'Wikipedia semi-protected project pages',
['all|talk|all|autoconfirmed|edit']     = 'Wikipedia semi-protected talk pages',
['all|talk|all|autoconfirmed|edit']         = 'Wikipedia semi-protected talk pages',
['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates',
['all|template|all|autoconfirmed|edit']     = 'Wikipedia semi-protected templates',
['all|user|all|autoconfirmed|edit']     = 'Wikipedia semi-protected user and user talk pages',
['all|user|all|autoconfirmed|edit']         = 'Wikipedia semi-protected user and user talk pages',
['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates',
['all|all|all|templateeditor|edit']        = 'Wikipedia template-protected pages other than templates and modules',
['all|all|blp|sysop|edit']               = 'Wikipedia indefinitely protected biographies of living people',
['all|template|all|templateeditor|edit']   = 'Wikipedia template-protected templates',
['temp|all|blp|sysop|edit']             = 'Wikipedia temporarily protected biographies of living people',
['all|template|all|templateeditor|move']    = 'Wikipedia template-protected templates', -- move-protected templates
['all|all|dispute|sysop|edit']           = 'Wikipedia pages protected due to dispute',
['all|all|blp|sysop|edit']                 = 'Wikipedia indefinitely protected biographies of living people',
['all|all|sock|sysop|edit']             = 'Wikipedia pages protected from banned users',
['temp|all|blp|sysop|edit']                 = 'Wikipedia temporarily protected biographies of living people',
['all|all|vandalism|sysop|edit']         = 'Wikipedia pages protected against vandalism',
['all|all|dispute|sysop|edit']             = 'Wikipedia pages protected due to dispute',
['all|category|all|sysop|edit']         = 'Wikipedia protected categories',
['all|all|sock|sysop|edit']                 = 'Wikipedia pages protected from banned users',
['all|file|all|sysop|edit']             = 'Wikipedia fully-protected files',
['all|all|vandalism|sysop|edit']           = 'Wikipedia pages protected against vandalism',
['all|project|all|sysop|edit']           = 'Wikipedia fully-protected project pages',
['all|category|all|sysop|edit']             = 'Wikipedia fully protected categories',
['all|talk|all|sysop|edit']             = 'Wikipedia fully-protected talk pages',
['all|file|all|sysop|edit']                 = 'Wikipedia fully-protected files',
['all|template|all|sysop|edit']         = 'Wikipedia fully-protected templates',
['all|project|all|sysop|edit']             = 'Wikipedia fully-protected project pages',
['all|user|all|sysop|edit']             = 'Wikipedia protected user and user talk pages',
['all|talk|all|sysop|edit']                 = 'Wikipedia fully-protected talk pages',
['all|module|all|all|edit']             = 'Wikipedia fully-protected modules',
['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates',
['all|module|all|templateeditor|edit']   = 'Wikipedia template-protected modules',
['all|template|all|sysop|edit']             = 'Wikipedia fully protected templates',
['all|module|all|autoconfirmed|edit']   = 'Wikipedia semi-protected modules',
['all|user|all|sysop|edit']                 = 'Wikipedia fully protected user and user talk pages',
['all|all|all|sysop|move']               = 'Wikipedia move-protected pages',
['all|module|all|all|edit']                 = 'Wikipedia fully-protected modules',
['indef|all|all|sysop|move']             = 'Wikipedia indefinitely move-protected pages',
['all|module|all|templateeditor|edit']     = 'Wikipedia template-protected modules',
['all|all|dispute|sysop|move']           = 'Wikipedia pages move-protected due to dispute',
['all|module|all|autoconfirmed|edit']       = 'Wikipedia semi-protected modules',
['all|all|vandalism|sysop|move']         = 'Wikipedia pages move-protected due to vandalism',
['all|all|all|sysop|move']                 = 'Wikipedia move-protected pages',
['all|portal|all|sysop|move']           = 'Wikipedia move-protected portals',
['indef|all|all|sysop|move']               = 'Wikipedia indefinitely move-protected pages',
['all|portal|all|sysop|move']            = 'Wikipedia move-protected portals',
['all|all|dispute|sysop|move']             = 'Wikipedia pages move-protected due to dispute',
['all|project|all|sysop|move']           = 'Wikipedia move-protected project pages',
['all|all|vandalism|sysop|move']           = 'Wikipedia pages move-protected due to vandalism',
['all|talk|all|sysop|move']             = 'Wikipedia move-protected talk pages',
['all|portal|all|sysop|move']               = 'Wikipedia move-protected portals',
['all|template|all|sysop|move']         = 'Wikipedia move-protected templates',
['all|project|all|sysop|move']             = 'Wikipedia move-protected project pages',
['all|user|all|sysop|move']             = 'Wikipedia move-protected user and user talk pages',
['all|talk|all|sysop|move']                 = 'Wikipedia move-protected talk pages',
['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages (level 1)',
['all|template|all|sysop|move']             = 'Wikipedia move-protected templates',
['all|all|all|reviewer|autoreview']      = 'Wikipedia pending changes protected pages (level 2)',
['all|user|all|sysop|move']                 = 'Wikipedia move-protected user and user talk pages',
['all|file|all|all|upload']             = 'Wikipedia upload-protected files',
['all|all|all|autoconfirmed|autoreview']   = 'Wikipedia pending changes protected pages',
['all|file|all|all|upload']                 = 'Wikipedia upload-protected files',
},
},


Line 896: Line 875:
wrappers = {
wrappers = {
['Template:Pp']                        = {},
['Template:Pp']                        = {},
['Template:Pp-30-500']                 = {'ecp'},
['Template:Pp-extended']               = {'ecp'},
['Template:Pp-blp']                    = {'blp'},
['Template:Pp-blp']                    = {'blp'},
-- we don't need Template:Pp-create
-- we don't need Template:Pp-create
['Template:Pp-dispute']                = {'dispute'},
['Template:Pp-dispute']                = {'dispute'},
['Template:Pp-main-page']              = {'mainpage'},
['Template:Pp-main-page']              = {'mainpage'},
['Template:Pp-move']                    = {action = 'move'},
['Template:Pp-move']                    = {action = 'move', catonly = 'yes'},
['Template:Pp-move-dispute']            = {'dispute', action = 'move'},
['Template:Pp-move-dispute']            = {'dispute', action = 'move', catonly = 'yes'},
-- we don't need Template:Pp-move-indef
-- we don't need Template:Pp-move-indef
['Template:Pp-move-vandalism']          = {'vandalism', action = 'move'},
['Template:Pp-move-vandalism']          = {'vandalism', action = 'move', catonly = 'yes'},
['Template:Pp-office']                  = {'office'},
['Template:Pp-office']                  = {'office'},
['Template:Pp-office-dmca']            = {'dmca'},
['Template:Pp-office-dmca']            = {'dmca'},
['Template:Pp-pc']                      = {action = 'autoreview', small = true},
['Template:Pp-pc1']                    = {action = 'autoreview', small = true},
['Template:Pp-pc1']                    = {action = 'autoreview', small = true},
['Template:Pp-pc2']                    = {action = 'autoreview', small = true},
['Template:Pp-reset']                  = {'reset'},
['Template:Pp-reset']                  = {'reset'},
['Template:Pp-semi-indef']              = {small = true},
['Template:Pp-semi-indef']              = {small = true},
Line 1,013: Line 992:
-- This is the format for the blurb expiry date. It should be valid input for
-- This is the format for the blurb expiry date. It should be valid input for
-- the first parameter of the #time parser function.
-- the first parameter of the #time parser function.
['expiry-date-format'] = 'F j, Y',
['expiry-date-format'] = 'F j, Y "at" H:i e',


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Line 1,028: Line 1,007:


-- These are images that are not defined by their protection action and protection level.
-- These are images that are not defined by their protection action and protection level.
['image-filename-indef'] = 'Padlock.svg',
['image-filename-indef'] = 'Full-protection-shackle.svg',
['image-filename-default'] = 'Transparent.gif',
['image-filename-default'] = 'Transparent.gif',


Anonymous user