Module:Protection banner/config: Difference between revisions
Module:Protection banner/config (view source)
Revision as of 12:45, 1 March 2024
, 12:45, 1 March 2024Fix for Template talk:Db-a1 and similar template-protected non-template redirects being miscategorized into Category:Wikipedia fully protected pages.
m (1 revision imported: Importing Template) |
ENWP>SilverLocust (Fix for Template talk:Db-a1 and similar template-protected non-template redirects being miscategorized into Category:Wikipedia fully protected pages.) |
||
| 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. | ||
-- | -- | ||
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes | -- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes | ||
| Line 132: | Line 129: | ||
-- The default banner data. This holds banner data for different protection | -- The default banner data. This holds banner data for different protection | ||
-- levels. | -- levels. | ||
-- *required* - this table needs edit, move, and | -- *required* - this table needs edit, move, autoreview and upload subtables. | ||
defaultBanners = { | defaultBanners = { | ||
edit = {}, | edit = {}, | ||
move = {}, | move = {}, | ||
autoreview = { | autoreview = { | ||
default = { | default = { | ||
alt = 'Page protected with pending changes | alt = 'Page protected with pending changes', | ||
tooltip = 'All edits by users | tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', | ||
image = 'Pending-protection-shackle.svg' | |||
} | } | ||
} | }, | ||
upload = {} | |||
}, | }, | ||
| Line 158: | Line 151: | ||
-- module documentation. | -- module documentation. | ||
-- | -- | ||
-- *required* - this table needs edit, move, and | -- *required* - this table needs edit, move, autoreview and upload subtables. | ||
banners = { | banners = { | ||
edit = { | edit = { | ||
blp = { | blp = { | ||
description = 'For pages protected to promote compliance with the' | description = 'For pages protected to promote compliance with the' | ||
.. ' [[ | .. ' [[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's policy on the biographies" | .. "|Wikipedia's policy on the biographies" | ||
.. ' 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 | .. ' 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 187: | Line 180: | ||
ret = ret .. ' For more information, including websites discussing' | ret = ret .. ' For more information, including websites discussing' | ||
.. ' how to file a counter-notice, please see' | .. ' 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" | .. "'''Do not remove this template from the article until the" | ||
.. " restrictions are withdrawn'''." | .. " restrictions are withdrawn'''." | ||
return ret | return ret | ||
end, | end, | ||
image = ' | 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 224: | 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 ${PROTECTIONLEVEL}', | |||
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' | ||
.. ' editing because it is currently or will soon be displayed' | .. ' editing because it is currently or will soon be displayed' | ||
.. ' on the [[Main Page]].', | .. ' on the [[Main Page]].', | ||
| Line 239: | 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' | ||
.. ' scrutiny of the' | .. ' scrutiny of the' | ||
.. ' [[ | .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | ||
.. ' and is protected.' | .. ' and is protected.' | ||
if protectionObj.protectionDate then | if protectionObj.protectionDate then | ||
| Line 254: | 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 = ' | 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' | ||
.. ' [[ | .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | ||
.. ' and is protected.', | .. ' and is protected.', | ||
explanation = function (protectionObj, args) | explanation = function (protectionObj, args) | ||
| Line 273: | Line 273: | ||
.. ' simplified, "bare bones" version so that it may be completely' | .. ' simplified, "bare bones" version so that it may be completely' | ||
.. ' rewritten to ensure it meets the policies of' | .. ' rewritten to ensure it meets the policies of' | ||
.. ' [[ | .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].' | ||
.. ' Standard Wikipedia policies will apply to its rewriting—which' | .. ' Standard Wikipedia policies will apply to its rewriting—which' | ||
.. ' will eventually be open to all editors—and will be strictly' | .. ' will eventually be open to all editors—and will be strictly' | ||
| Line 291: | Line 291: | ||
return ret | return ret | ||
end, | end, | ||
image = ' | image = 'Office-protection-shackle.svg', | ||
}, | }, | ||
sock = { | sock = { | ||
description = 'For pages protected due to' | description = 'For pages protected due to' | ||
.. ' [[ | .. ' [[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:Banning policy|banned users]]' | ||
.. ' from editing it.', | .. ' from editing it.', | ||
tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' | tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' | ||
| Line 304: | Line 304: | ||
}, | }, | ||
template = { | template = { | ||
description = 'For [[ | description = 'For [[Wikipedia:High-risk templates|high-risk]]' | ||
.. ' templates and Lua modules | .. ' templates and Lua modules', | ||
text = 'This is a permanently [[ | text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' | ||
.. ' as it is [[ | .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', | ||
explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' | explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' | ||
.. ' ${EDITREQUEST} to ask an' | .. ' ${EDITREQUEST} to ask an' | ||
.. ' [[ | .. ' [[Wikipedia:Administrators|administrator]] or' | ||
.. ' [[ | .. ' [[Wikipedia:Template editor|template editor]] to make an edit if' | ||
.. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' | .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' | ||
.. '|uncontroversial]] or supported by' | .. '|uncontroversial]] or supported by' | ||
.. ' [[ | .. ' [[Wikipedia:Consensus|consensus]]. You can also' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection|request]] that the page be' | ||
.. ' unprotected.', | .. ' unprotected.', | ||
tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' | tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' | ||
| Line 323: | 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 329: | Line 329: | ||
explanation = 'If you cannot edit this user talk page and you need to' | explanation = 'If you cannot edit this user talk page and you need to' | ||
.. ' make a change or leave a message, you can' | .. ' make a change or leave a message, you can' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection' | ||
.. '#Current requests for edits to a protected page' | .. '#Current requests for edits to a protected page' | ||
.. '|request an edit]],' | .. '|request an edit]],' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for reduction in protection level' | ||
.. '|request unprotection]],' | .. '|request unprotection]],' | ||
.. ' [[Special:Userlogin|log in]],' | .. ' [[Special:Userlogin|log in]],' | ||
| Line 340: | Line 340: | ||
vandalism = { | vandalism = { | ||
description = 'For pages protected against' | description = 'For pages protected against' | ||
.. ' [[ | .. ' [[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 356: | Line 356: | ||
dispute = { | dispute = { | ||
description = 'For pages protected against page moves due to' | description = 'For pages protected against page moves due to' | ||
.. ' disputes over the page title | .. ' disputes over the page title', | ||
explanation = "This protection is '''not''' an endorsement of the" | explanation = "This protection is '''not''' an endorsement of the" | ||
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | ||
image = ' | image = 'Move-protection-shackle.svg' | ||
}, | }, | ||
vandalism = { | vandalism = { | ||
description = 'For pages protected against' | description = 'For pages protected against' | ||
.. ' [[ | .. ' [[Wikipedia:Vandalism#Page-move vandalism' | ||
.. ' |page-move vandalism]] | .. ' |page-move vandalism]]' | ||
} | } | ||
}, | }, | ||
autoreview = {} | autoreview = {}, | ||
upload = {} | |||
}, | }, | ||
| Line 388: | Line 389: | ||
-- | -- | ||
-- It is possible to use banner parameters inside this table. | -- It is possible to use banner parameters inside this table. | ||
-- *required* - this table needs edit, move, and | -- *required* - this table needs edit, move, autoreview and upload subtables. | ||
protectionBlurbs = { | protectionBlurbs = { | ||
edit = { | edit = { | ||
default = 'This ${PAGETYPE} is currently [[ | default = 'This ${PAGETYPE} is currently [[Help:Protection|' | ||
.. 'protected]] from editing', | .. 'protected]] from editing', | ||
autoconfirmed = 'Editing of this ${PAGETYPE} by [[ | autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access' | ||
.. ' 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 [[ | .. ' users|unregistered]] users is currently [[Help:Protection|disabled]]', | ||
extendedconfirmed = 'This ${PAGETYPE} is currently under extended confirmed protection', | |||
}, | }, | ||
move = { | move = { | ||
default = 'This ${PAGETYPE} is currently [[ | default = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' | ||
.. ' from [[ | .. ' from [[Help:Moving a page|page moves]]' | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
default = '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' | .. ' users are currently' | ||
.. ' [[ | .. ' [[Wikipedia:Pending changes|subject to review]]' | ||
default = ' | }, | ||
upload = { | |||
default = 'Uploading new versions of this ${PAGETYPE} is currently disabled' | |||
} | } | ||
}, | }, | ||
| Line 430: | Line 431: | ||
-- | -- | ||
-- It is possible to use banner parameters inside this table. | -- It is possible to use banner parameters inside this table. | ||
-- *required* - this table needs edit, move, and | -- *required* - this table needs edit, move, autoreview and upload subtables. | ||
explanationBlurbs = { | explanationBlurbs = { | ||
edit = { | edit = { | ||
autoconfirmed = { | autoconfirmed = { | ||
subject = 'See the [[ | subject = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' | .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' | ||
.. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' | .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' | ||
.. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},' | .. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for reduction in protection level' | ||
.. '|request unprotection]], [[Special:Userlogin|log in]], or' | .. '|request unprotection]], [[Special:Userlogin|log in]], or' | ||
.. ' [[Special:UserLogin/signup|create an account]].', | .. ' [[Special:UserLogin/signup|create an account]].', | ||
default = 'See the [[ | default = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' | .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' | ||
.. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' | .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for reduction in protection level' | ||
.. '|request unprotection]], [[Special:Userlogin|log in]], or' | .. '|request unprotection]], [[Special:Userlogin|log in]], or' | ||
.. ' [[Special:UserLogin/signup|create an account]].', | .. ' [[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.' | |||
.. ' The [[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:Consensus|consensus]].' | |||
}, | }, | ||
default = { | default = { | ||
subject = 'See the [[ | subject = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' Please discuss any changes on the ${TALKPAGE}; you' | .. ' Please discuss any changes on the ${TALKPAGE}; you' | ||
.. ' may ${EDITREQUEST} to ask an' | .. ' may ${EDITREQUEST} to ask an' | ||
.. ' [[ | .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' | ||
.. ' is [[ | .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' | ||
.. '|uncontroversial]] or supported by [[Wikipedia:Consensus' | .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' | ||
.. '|consensus]]. You may also [[Wikipedia:Requests for' | .. '|consensus]]. You may also [[Wikipedia:Requests for' | ||
.. ' page protection# | .. ' page protection#Current requests for reduction in protection level' | ||
.. '|request]] that this page be unprotected.', | .. '|request]] that this page be unprotected.', | ||
default = 'See the [[ | default = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' You may [[Wikipedia:Requests for page' | .. ' You may [[Wikipedia:Requests for page' | ||
.. ' protection#Current requests for edits to a protected page|request an' | .. ' protection#Current requests for edits to a protected page|request an' | ||
.. ' edit]] to this page, or [[Wikipedia:Requests for' | .. ' edit]] to this page, or [[Wikipedia:Requests for' | ||
.. ' page protection# | .. ' page protection#Current requests for reduction in protection level' | ||
.. '|ask]] for it to be unprotected.' | .. '|ask]] for it to be unprotected.' | ||
} | } | ||
| Line 472: | Line 485: | ||
move = { | move = { | ||
default = { | default = { | ||
subject = 'See the [[ | subject = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' The page may still be edited but cannot be moved' | .. ' The page may still be edited but cannot be moved' | ||
.. ' until unprotected. Please discuss any suggested moves on the' | .. ' until unprotected. Please discuss any suggested moves on the' | ||
.. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also' | .. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection|request]] that the page be' | ||
.. ' unprotected.', | .. ' unprotected.', | ||
default = 'See the [[ | default = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' The page may still be edited but cannot be moved' | .. ' The page may still be edited but cannot be moved' | ||
.. ' until unprotected. Please discuss any suggested moves at' | .. ' until unprotected. Please discuss any suggested moves at' | ||
.. ' [[ | .. ' [[Wikipedia:Requested moves]]. You can also' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection|request]] that the page be' | ||
.. ' unprotected.' | .. ' unprotected.' | ||
} | } | ||
| Line 490: | Line 503: | ||
autoreview = { | autoreview = { | ||
default = { | default = { | ||
default = 'See the [[Wikipedia:Protection policy|' | |||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' Edits to this ${PAGETYPE} by new and unregistered users' | .. ' Edits to this ${PAGETYPE} by new and unregistered users' | ||
| Line 505: | Line 509: | ||
.. ' a reviewer. To avoid the need for your edits to be' | .. ' a reviewer. To avoid the need for your edits to be' | ||
.. ' reviewed, you may' | .. ' reviewed, you may' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for reduction in protection level' | ||
.. '|request unprotection]], [[Special:Userlogin|log in]], or' | .. '|request unprotection]], [[Special:Userlogin|log in]], or' | ||
.. ' [[Special:UserLogin/signup|create an account]].' | .. ' [[Special:UserLogin/signup|create an account]].' | ||
}, | }, | ||
}, | |||
upload = { | |||
default = { | |||
default = 'See the [[Wikipedia:Protection policy|' | |||
.. '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: | Line 535: | ||
-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which | -- This table provides the data for the ${PROTECTIONLEVEL} parameter, which | ||
-- produces a short label for different protection levels. It is sorted by | -- produces a short label for different protection levels. It is sorted by | ||
-- protection action and | -- protection action and protection level, and is checked in the following | ||
-- order: | -- order: | ||
-- 1. page's protection action, page's protection level | -- 1. page's protection action, page's protection level | ||
| Line 526: | Line 542: | ||
-- | -- | ||
-- It is possible to use banner parameters inside this table. | -- It is possible to use banner parameters inside this table. | ||
-- *required* - this table needs edit, move, and | -- *required* - this table needs edit, move, autoreview and upload subtables. | ||
protectionLevels = { | protectionLevels = { | ||
edit = { | edit = { | ||
default = 'protected', | default = 'protected', | ||
templateeditor = 'template-protected', | templateeditor = 'template-protected', | ||
extendedconfirmed = 'extended-protected', | |||
autoconfirmed = 'semi-protected', | autoconfirmed = 'semi-protected', | ||
}, | }, | ||
| Line 537: | Line 554: | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
}, | |||
upload = { | |||
default = 'upload-protected' | |||
} | } | ||
}, | }, | ||
| Line 552: | Line 572: | ||
images = { | images = { | ||
edit = { | edit = { | ||
default = ' | default = 'Full-protection-shackle.svg', | ||
templateeditor = ' | templateeditor = 'Template-protection-shackle.svg', | ||
autoconfirmed = ' | extendedconfirmed = 'Extended-protection-shackle.svg', | ||
autoconfirmed = 'Semi-protection-shackle.svg' | |||
}, | }, | ||
move = { | move = { | ||
default = ' | default = 'Move-protection-shackle.svg', | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
default = 'Pending-protection-shackle.svg' | |||
default = ' | }, | ||
upload = { | |||
default = 'Upload-protection-shackle.svg' | |||
} | } | ||
}, | }, | ||
| Line 583: | Line 606: | ||
-- | -- | ||
-- It is possible to use banner parameters inside this table. | -- It is possible to use banner parameters inside this table. | ||
-- *required* - this table needs edit, move, and | -- *required* - this table needs edit, move, autoreview and upload subtables. | ||
imageLinks = { | imageLinks = { | ||
edit = { | edit = { | ||
default = ' | default = 'Wikipedia:Protection policy#full', | ||
templateeditor = ' | templateeditor = 'Wikipedia:Protection policy#template', | ||
autoconfirmed = ' | extendedconfirmed = 'Wikipedia:Protection policy#extended', | ||
autoconfirmed = 'Wikipedia:Protection policy#semi' | |||
}, | }, | ||
move = { | move = { | ||
default = ' | default = 'Wikipedia:Protection policy#move' | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
default = 'Wikipedia:Protection policy#pending' | |||
}, | |||
upload = { | |||
default = 'Wikipedia:Protection policy#upload' | |||
} | } | ||
}, | }, | ||
| Line 706: | Line 732: | ||
protectionCategories = { | protectionCategories = { | ||
['all|all|all|all|all'] | ['all|all|all|all|all'] = 'Wikipedia fully protected pages', | ||
['all|all|office|all|all'] | ['all|all|office|all|all'] = 'Wikipedia Office-protected pages', | ||
['all|all|reset|all|all'] | ['all|all|reset|all|all'] = 'Wikipedia Office-protected pages', | ||
['all|all|dmca|all|all'] | ['all|all|dmca|all|all'] = 'Wikipedia Office-protected pages', | ||
['all|all|mainpage|all|all'] | ['all|all|mainpage|all|all'] = 'Wikipedia fully protected main page files', | ||
['all|template|all|all|edit'] | ['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', | ||
['all|all|all|autoconfirmed|edit'] | ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', | ||
['indef|all|all|autoconfirmed|edit'] | ['all|template|all|all|edit'] = 'Wikipedia fully protected templates', | ||
['all|all|blp|autoconfirmed|edit'] | ['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', | ||
['temp|all|blp|autoconfirmed|edit'] | ['indef|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected pages', | ||
['all|all|dispute|autoconfirmed|edit'] | ['all|all|blp|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living people', | ||
['all|all|sock|autoconfirmed|edit'] | ['temp|all|blp|autoconfirmed|edit'] = 'Wikipedia temporarily semi-protected biographies of living people', | ||
['all|all|vandalism|autoconfirmed|edit'] = ' | ['all|all|dispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected due to dispute', | ||
['all|category|all|autoconfirmed|edit'] | ['all|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected from banned users', | ||
['all|file|all|autoconfirmed|edit'] | ['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism', | ||
['all|portal|all|autoconfirmed|edit'] | ['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories', | ||
['all|project|all|autoconfirmed|edit'] | ['all|file|all|autoconfirmed|edit'] = 'Wikipedia semi-protected files', | ||
['all|talk|all|autoconfirmed|edit'] | ['all|portal|all|autoconfirmed|edit'] = 'Wikipedia semi-protected portals', | ||
['all|template|all|autoconfirmed|edit'] | ['all|project|all|autoconfirmed|edit'] = 'Wikipedia semi-protected project pages', | ||
['all|user|all|autoconfirmed|edit'] | ['all|talk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected talk pages', | ||
['all|all|blp|sysop|edit'] | ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', | ||
['temp|all|blp|sysop|edit'] | ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', | ||
['all|all|dispute|sysop|edit'] | ['all|all|all|templateeditor|move'] = 'Wikipedia template-protected pages other than templates and modules', | ||
['all|all|sock|sysop|edit'] | ['all|all|all|templateeditor|edit'] = 'Wikipedia template-protected pages other than templates and modules', | ||
['all|all|vandalism|sysop|edit'] | ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', | ||
['all|category|all|sysop|edit'] | ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected templates | ||
['all|file|all|sysop|edit'] | ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', | ||
['all|project|all|sysop|edit'] | ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', | ||
['all|talk|all|sysop|edit'] | ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', | ||
['all|template|all|sysop|edit'] | ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', | ||
['all|user|all|sysop|edit'] | ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', | ||
['all|module|all|all|edit'] | ['all|category|all|sysop|edit'] = 'Wikipedia fully protected categories', | ||
['all|module|all| | ['all|file|all|sysop|edit'] = 'Wikipedia fully protected files', | ||
['all|all|all| | ['all|project|all|sysop|edit'] = 'Wikipedia fully protected project pages', | ||
[' | ['all|talk|all|sysop|edit'] = 'Wikipedia fully protected talk pages', | ||
['all|all | ['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates', | ||
['all|all| | ['all|template|all|sysop|edit'] = 'Wikipedia fully protected templates', | ||
['all| | ['all|user|all|sysop|edit'] = 'Wikipedia fully protected user and user talk pages', | ||
['all|portal|all|sysop|move'] | ['all|module|all|all|edit'] = 'Wikipedia fully protected modules', | ||
['all|project|all|sysop|move'] | ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', | ||
['all|talk|all|sysop|move'] | ['all|module|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected modules', | ||
['all|template|all|sysop|move'] | ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', | ||
['all|user|all|sysop|move'] | ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', | ||
['all|all|all|autoconfirmed|autoreview'] = ' | ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', | ||
['all|all|all| | ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', | ||
['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', | |||
['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', | |||
['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages', | |||
['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages', | |||
['all|template|all|sysop|move'] = '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 771: | Line 805: | ||
edit = nil, | edit = nil, | ||
move = false, | move = false, | ||
autoreview = true | autoreview = true, | ||
upload = false | |||
}, | }, | ||
| Line 818: | Line 853: | ||
filemover = {'sysop'}, | filemover = {'sysop'}, | ||
templateeditor = {'sysop'}, | templateeditor = {'sysop'}, | ||
autoconfirmed = {'reviewer', 'filemover', 'templateeditor'}, | extendedconfirmed = {'sysop'}, | ||
autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'}, | |||
user = {'autoconfirmed'}, | user = {'autoconfirmed'}, | ||
['*'] = {'user'} | ['*'] = {'user'} | ||
| Line 837: | Line 873: | ||
-- | -- | ||
-- When a user calls one of these wrapper templates, they will use the | -- When a user calls one of these wrapper templates, they will use the | ||
-- default arguments automatically. | -- default arguments automatically. However, users can override any of the | ||
-- | -- arguments. | ||
wrappers = { | wrappers = { | ||
['Template:Pp'] = {}, | ['Template:Pp'] = {}, | ||
['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'] | ['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-reset'] = {'reset'}, | ['Template:Pp-reset'] = {'reset'}, | ||
['Template:Pp-semi-indef'] = { | ['Template:Pp-semi-indef'] = {small = true}, | ||
['Template:Pp-sock'] = {'sock'}, | ['Template:Pp-sock'] = {'sock'}, | ||
['Template:Pp-template'] = {'template', small = true}, | ['Template:Pp-template'] = {'template', small = true}, | ||
['Template:Pp-upload'] = {action = 'upload'}, | |||
['Template:Pp-usertalk'] = {'usertalk'}, | ['Template:Pp-usertalk'] = {'usertalk'}, | ||
['Template:Pp-vandalism'] = {'vandalism'}, | ['Template:Pp-vandalism'] = {'vandalism'}, | ||
| Line 903: | Line 941: | ||
-- in the MediaWiki namespace. | -- in the MediaWiki namespace. | ||
-- It is possible to use banner parameters in this message. | -- It is possible to use banner parameters in this message. | ||
['explanation-blurb-nounprotect'] = 'See the [[ | ['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' Please discuss any changes on the ${TALKPAGE}; you' | .. ' Please discuss any changes on the ${TALKPAGE}; you' | ||
| Line 956: | Line 994: | ||
-- 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 963: | Line 1,001: | ||
-- These messages determine which tracking categories the module outputs. | -- These messages determine which tracking categories the module outputs. | ||
['tracking-category-incorrect'] = ' | ['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates', | ||
['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', | |||
['tracking-category-template'] = ' | |||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 972: | Line 1,009: | ||
-- 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'] = ' | ['image-filename-indef'] = 'Full-protection-shackle.svg', | ||
['image-filename-default'] = 'Transparent.gif', | ['image-filename-default'] = 'Transparent.gif', | ||