Module:Protection banner/config: Difference between revisions
Jump to navigation
Jump to search
m
Module:Protection banner/config (view source)
Revision as of 06:24, 8 June 2023
, 06:24, 8 June 2023Protected "Module:Protection banner/config": High traffic page or template/module ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
enwp>Fayenatic london (Update categories from "fully-protected" to "fully protected", removing hyphen, per valid request at WP:CFDS) |
enws>Beeswaxcandle m (Protected "Module:Protection banner/config": High traffic page or template/module ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
||
| 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 129: | Line 132: | ||
-- 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, autoreview | -- *required* - this table needs edit, move, and autoreview subtables. | ||
defaultBanners = { | defaultBanners = { | ||
edit = {}, | edit = {}, | ||
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', | alt = 'Page protected with pending changes level 2', | ||
tooltip = 'All edits by | tooltip = 'All edits by users who are not reviewers or administrators are' | ||
.. ' subject to review', | |||
} | } | ||
} | |||
}, | }, | ||
| Line 151: | Line 158: | ||
-- module documentation. | -- module documentation. | ||
-- | -- | ||
-- *required* - this table needs edit, move, autoreview | -- *required* - this table needs edit, move, and autoreview 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' | .. ' [[:w: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' | .. ' [[:w: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 people', | ||
}, | }, | ||
dmca = { | dmca = { | ||
description = 'For pages protected by the Wikimedia Foundation' | description = 'For pages protected by the Wikimedia Foundation' | ||
.. ' due to | .. ' 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 180: | Line 187: | ||
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' | ||
.. " [[ | .. " [[m: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 = 'Padlock-black.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 217: | Line 224: | ||
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | ||
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', | tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', | ||
}, | }, | ||
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' | ||
.. ' [[ | .. ' [[:w:Wiki: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' | ||
.. ' [[ | .. ' [[m: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 = 'Padlock-black.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' | ||
.. ' [[ | .. ' [[m: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]].' | .. ' [[:w:WP:NPOV|Neutral Point of View]] and [[:w: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 = 'Padlock-black.svg', | ||
}, | }, | ||
sock = { | sock = { | ||
description = 'For pages protected due to' | description = 'For pages protected due to' | ||
.. ' [[Wikipedia:Sock puppetry|sock puppetry]]', | .. ' [[:w: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' | ||
.. ' [[ | .. ' [[Wikisource:Blocking policy|blocked]] or' | ||
.. ' [[Wikipedia:Banning policy|banned users]]' | .. ' [[:w: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 [[Wikipedia:High-risk templates|high-risk]]' | description = 'For [[:w: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 [[:w:Help:Protection|protected]] ${PAGETYPE},' | ||
.. ' as it is [[Wikipedia:High-risk templates|high-risk]].', | .. ' as it is [[:w: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' | ||
.. ' [[ | .. ' [[Wikisource:Administrators|administrator]] or' | ||
.. ' [[Wikipedia:Template editor|template editor]] to make an edit if' | .. ' [[:w: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' | .. ' [[:w:Wikipedia:Consensus|consensus]]. You can also' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard|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' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard' | ||
.. '#Current requests for edits to a protected page' | .. '#Current requests for edits to a protected page' | ||
.. '|request an edit]],' | .. '|request an edit]],' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard' | ||
.. '# | .. '#Page (un)protection requests' | ||
.. '|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]]', | .. ' [[:w: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 = 'Padlock-olive.svg' | ||
}, | }, | ||
vandalism = { | vandalism = { | ||
description = 'For pages protected against' | description = 'For pages protected against' | ||
.. ' [[Wikipedia:Vandalism#Page-move vandalism' | .. ' [[:w:Wikipedia:Vandalism#Page-move vandalism' | ||
.. ' |page-move vandalism]]' | .. ' |page-move vandalism]].' | ||
} | } | ||
}, | }, | ||
autoreview | autoreview = {} | ||
}, | }, | ||
| Line 389: | Line 388: | ||
-- | -- | ||
-- 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, autoreview | -- *required* - this table needs edit, move, and autoreview subtables. | ||
protectionBlurbs = { | protectionBlurbs = { | ||
edit = { | edit = { | ||
default = 'This ${PAGETYPE} is currently [[Help:Protection|' | default = 'This ${PAGETYPE} is currently [[:w:Help:Protection|' | ||
.. 'protected]] from editing', | .. 'protected]] from editing', | ||
autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access' | autoconfirmed = 'Editing of this ${PAGETYPE} by [[:w: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 [[Help:Protection|disabled]]' | .. ' users|unregistered]] users is currently [[:w:Help:Protection|disabled]]' | ||
}, | }, | ||
move = { | move = { | ||
default = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' | default = 'This ${PAGETYPE} is currently [[:w:Help:Protection|protected]]' | ||
.. ' from [[Help:Moving a page|page moves]]' | .. ' from [[:w:Help:Moving a page|page moves]]' | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
autoconfirmed = 'All edits made to this ${PAGETYPE} by' | |||
.. ' [[Wikipedia:User access levels#New users|new]] or' | .. ' [[:w:Wikipedia:User access levels#New users|new]] or' | ||
.. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]' | .. ' [[:w:Wikipedia:User access levels#Unregistered users|unregistered]]' | ||
.. ' users are currently' | .. ' users are currently' | ||
.. ' [[Wikipedia:Pending changes|subject to review]]' | .. ' [[:w:Wikipedia:Pending changes|subject to review]]', | ||
default = 'All edits made to this ${PAGETYPE} by users who are not' | |||
.. ' [[:w:Wikipedia:Reviewing|reviewers]] or' | |||
default = ' | .. ' [[:w:Wikipedia:Administrators|administrators]] are currently' | ||
.. ' [[:w:Wikipedia:Pending changes|subject to review]]' | |||
} | } | ||
}, | }, | ||
| Line 431: | Line 430: | ||
-- | -- | ||
-- 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, autoreview | -- *required* - this table needs edit, move, and autoreview subtables. | ||
explanationBlurbs = { | explanationBlurbs = { | ||
edit = { | edit = { | ||
autoconfirmed = { | autoconfirmed = { | ||
subject = 'See the [[ | subject = 'See the [[Wikisource: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},' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard' | ||
.. '# | .. '#Page (un)protection requests' | ||
.. '|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 [[Wikisource: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' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard' | ||
.. '# | .. '#Page (un)protection requests' | ||
.. '|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 = { | default = { | ||
subject = 'See the [[ | subject = 'See the [[Wikisource: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' | ||
.. ' [[ | .. ' [[Wikisource:Administrators|administrator]] to make an edit if it' | ||
.. ' is [[Help:Minor edit#When to mark an edit as a minor edit' | .. ' is [[:w: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#Page (un)protection requests' | ||
.. '|request]] that this page be unprotected.', | .. '|request]] that this page be unprotected.', | ||
default = 'See the [[ | default = 'See the [[Wikisource: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#Page (un)protection requests' | ||
.. '|ask]] for it to be unprotected.' | .. '|ask]] for it to be unprotected.' | ||
} | } | ||
| Line 485: | Line 472: | ||
move = { | move = { | ||
default = { | default = { | ||
subject = 'See the [[ | subject = 'See the [[Wikisource: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' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard|request]] that the page be' | ||
.. ' unprotected.', | .. ' unprotected.', | ||
default = 'See the [[ | default = 'See the [[Wikisource: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' | .. ' [[:w:Wikipedia:Requested moves]]. You can also' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard|request]] that the page be' | ||
.. ' unprotected.' | .. ' unprotected.' | ||
} | } | ||
| Line 503: | Line 490: | ||
autoreview = { | autoreview = { | ||
default = { | default = { | ||
default = 'See the [[ | reviewer = 'See the [[Wikisource: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' | |||
.. ' [[Wikisource:Administrators' noticeboard' | |||
.. '#Page (un)protection requests' | |||
.. '|request unprotection]]. Experienced editors may also' | |||
.. ' request the [[:w:Wikipedia:Reviewing|reviewer user right]].', | |||
default = 'See the [[Wikisource: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 509: | Line 505: | ||
.. ' 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' | ||
.. ' [[ | .. ' [[Wikisource:Administrators' noticeboard' | ||
.. '# | .. '#Page (un)protection requests' | ||
.. '|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]].' | ||
}, | }, | ||
} | } | ||
}, | }, | ||
| Line 535: | Line 519: | ||
-- 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 proteciton 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 542: | Line 526: | ||
-- | -- | ||
-- 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, autoreview | -- *required* - this table needs edit, move, and autoreview subtables. | ||
protectionLevels = { | protectionLevels = { | ||
edit = { | edit = { | ||
default = 'protected', | default = 'protected', | ||
templateeditor = 'template-protected', | templateeditor = 'template-protected', | ||
autoconfirmed = 'semi-protected', | autoconfirmed = 'semi-protected', | ||
}, | }, | ||
| Line 554: | Line 537: | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
} | } | ||
}, | }, | ||
| Line 572: | Line 552: | ||
images = { | images = { | ||
edit = { | edit = { | ||
default = ' | default = 'Padlock.svg', | ||
templateeditor = ' | templateeditor = 'Padlock-pink.svg', | ||
autoconfirmed = 'Padlock-silver.svg' | |||
autoconfirmed = ' | |||
}, | }, | ||
move = { | move = { | ||
default = ' | default = 'Padlock-olive.svg', | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
autoconfirmed = 'Padlock-silver-light.svg', | |||
default = 'Padlock-orange.svg' | |||
default = ' | |||
} | } | ||
}, | }, | ||
| Line 606: | Line 583: | ||
-- | -- | ||
-- 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, autoreview | -- *required* - this table needs edit, move, and autoreview subtables. | ||
imageLinks = { | imageLinks = { | ||
edit = { | edit = { | ||
default = ' | default = 'Wikisource:Protection policy#full', | ||
templateeditor = ' | templateeditor = 'Wikisource:Protection policy#template', | ||
autoconfirmed = 'Wikisource:Protection policy#semi' | |||
autoconfirmed = ' | |||
}, | }, | ||
move = { | move = { | ||
default = ' | default = 'Wikisource:Protection policy#move' | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
autoconfirmed = 'Wikisource:Protection policy#pc1', | |||
reviewer = 'Wikisource:Protection policy#pc2' | |||
} | } | ||
}, | }, | ||
| Line 732: | Line 706: | ||
protectionCategories = { | protectionCategories = { | ||
['all|all|all|all|all'] | ['all|all|all|all|all'] = 'Wikisource protected pages', | ||
['all|all|office|all|all'] | ['all|all|office|all|all'] = 'Wikisource Office-protected pages', | ||
['all|all|reset|all|all'] | ['all|all|reset|all|all'] = 'Wikisource Office-protected pages', | ||
['all|all|dmca|all|all'] | ['all|all|dmca|all|all'] = 'Wikisource Office-protected pages', | ||
['all|all|mainpage|all|all'] | ['all|all|mainpage|all|all'] = 'Protected main page images', | ||
['all|template|all|all|edit'] = 'Wikisource protected templates', | |||
['all|all|all|autoconfirmed|edit'] = 'Wikisource semi-protected pages', | |||
['all|template|all|all|edit'] | ['indef|all|all|autoconfirmed|edit'] = 'Wikisource indefinitely semi-protected pages', | ||
['all|all|all|autoconfirmed|edit'] | ['all|all|blp|autoconfirmed|edit'] = 'Wikisource indefinitely semi-protected biographies of living people', | ||
['indef|all|all|autoconfirmed|edit'] | ['temp|all|blp|autoconfirmed|edit'] = 'Wikisource temporarily semi-protected biographies of living people', | ||
['all|all|blp|autoconfirmed|edit'] | ['all|all|dispute|autoconfirmed|edit'] = 'Wikisource pages semi-protected due to dispute', | ||
['temp|all|blp|autoconfirmed|edit'] | ['all|all|sock|autoconfirmed|edit'] = 'Wikisource pages semi-protected from banned users', | ||
['all|all|dispute|autoconfirmed|edit'] | ['all|all|vandalism|autoconfirmed|edit'] = 'Wikisource pages semi-protected against vandalism', | ||
['all|all|sock|autoconfirmed|edit'] | ['all|category|all|autoconfirmed|edit'] = 'Wikisource semi-protected categories', | ||
['all|all|vandalism|autoconfirmed|edit'] | ['all|file|all|autoconfirmed|edit'] = 'Semi-protected images', | ||
['all|category|all|autoconfirmed|edit'] | ['all|portal|all|autoconfirmed|edit'] = 'Semi-protected portals', | ||
['all|file|all|autoconfirmed|edit'] | ['all|project|all|autoconfirmed|edit'] = 'Semi-protected project pages', | ||
['all|portal|all|autoconfirmed|edit'] | ['all|talk|all|autoconfirmed|edit'] = 'Semi-protected talk pages', | ||
['all|project|all|autoconfirmed|edit'] | ['all|template|all|autoconfirmed|edit'] = 'Wikisource semi-protected templates', | ||
['all|talk|all|autoconfirmed|edit'] | ['all|user|all|autoconfirmed|edit'] = 'Wikisource semi-protected user and user talk pages', | ||
['all|template|all|autoconfirmed|edit'] | ['all|all|blp|sysop|edit'] = 'Wikisource indefinitely protected biographies of living people', | ||
['all|user|all|autoconfirmed|edit'] | ['temp|all|blp|sysop|edit'] = 'Wikisource temporarily protected biographies of living people', | ||
['all|all|dispute|sysop|edit'] = 'Wikisource pages protected due to dispute', | |||
['all|all|sock|sysop|edit'] = 'Wikisource pages protected from banned users', | |||
['all|all|vandalism|sysop|edit'] = 'Wikisource pages protected against vandalism', | |||
['all|all|blp|sysop|edit'] | ['all|category|all|sysop|edit'] = 'Wikisource protected categories', | ||
['temp|all|blp|sysop|edit'] | ['all|file|all|sysop|edit'] = 'Protected images', | ||
['all|all|dispute|sysop|edit'] | ['all|project|all|sysop|edit'] = 'Protected project pages', | ||
['all|all|sock|sysop|edit'] | ['all|talk|all|sysop|edit'] = 'Protected talk pages', | ||
['all|all|vandalism|sysop|edit'] | ['all|template|all|sysop|edit'] = 'Wikisource protected templates', | ||
['all|category|all|sysop|edit'] | ['all|user|all|sysop|edit'] = 'Wikisource protected user and user talk pages', | ||
['all|file|all|sysop|edit'] | ['all|module|all|all|edit'] = 'Wikisource protected modules', | ||
['all|project|all|sysop|edit'] | ['all|module|all|autoconfirmed|edit'] = 'Wikisource semi-protected modules', | ||
['all|talk|all|sysop|edit'] | ['all|all|all|sysop|move'] = 'Wikisource move-protected pages', | ||
['indef|all|all|sysop|move'] = 'Wikisource indefinitely move-protected pages', | |||
['all|template|all|sysop|edit'] | ['all|all|dispute|sysop|move'] = 'Wikisource pages move-protected due to dispute', | ||
['all|user|all|sysop|edit'] | ['all|all|vandalism|sysop|move'] = 'Wikisource pages move-protected due to vandalism', | ||
['all|module|all|all|edit'] | ['all|portal|all|sysop|move'] = 'Wikisource move-protected portals', | ||
['all|module|all| | ['all|portal|all|sysop|move'] = 'Wikisource move-protected portals', | ||
['all| | ['all|project|all|sysop|move'] = 'Wikisource move-protected project pages', | ||
['all|talk|all|sysop|move'] = 'Wikisource move-protected talk pages', | |||
[' | ['all|template|all|sysop|move'] = 'Wikisource move-protected templates', | ||
[' | ['all|user|all|sysop|move'] = 'Wikisource move-protected user and user talk pages', | ||
['all|all| | ['all|all|all|autoconfirmed|autoreview'] = 'Wikisource pending changes protected pages (level 1)', | ||
['all|all | ['all|all|all|reviewer|autoreview'] = 'Wikisource pending changes protected pages (level 2)', | ||
['all|portal|all|sysop|move'] | |||
['all|project|all|sysop|move'] | |||
['all|talk|all|sysop|move'] | |||
['all|template|all|sysop|move'] | |||
['all|user|all|sysop|move'] | |||
['all|all|all|autoconfirmed|autoreview'] | |||
['all| | |||
}, | }, | ||
| Line 804: | Line 771: | ||
edit = nil, | edit = nil, | ||
move = false, | move = false, | ||
autoreview = true | autoreview = true | ||
}, | }, | ||
| Line 852: | Line 818: | ||
filemover = {'sysop'}, | filemover = {'sysop'}, | ||
templateeditor = {'sysop'}, | templateeditor = {'sysop'}, | ||
autoconfirmed = {'reviewer', 'filemover', 'templateeditor'}, | |||
autoconfirmed = {'reviewer', 'filemover', 'templateeditor | |||
user = {'autoconfirmed'}, | user = {'autoconfirmed'}, | ||
['*'] = {'user'} | ['*'] = {'user'} | ||
| Line 872: | Line 837: | ||
-- | -- | ||
-- 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. The arguments cannot be overwritten by the | ||
-- | -- user. | ||
wrappers = { | wrappers = { | ||
['Template:Pp'] = {}, | ['Template:Pp'] = {}, | ||
['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'}, | ||
['Template:Pp-move-dispute'] = {'dispute', action = 'move | ['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, | ||
-- 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'}, | ||
['Template:Pp-office'] = {'office'}, | ['Template:Pp-office'] = {'office'}, | ||
['Template:Pp-office-dmca'] = {'dmca'}, | ['Template:Pp-office-dmca'] = {'dmca'}, | ||
['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'] = {expiry = '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-usertalk'] = {'usertalk'}, | ['Template:Pp-usertalk'] = {'usertalk'}, | ||
['Template:Pp-vandalism'] = {'vandalism'}, | ['Template:Pp-vandalism'] = {'vandalism'}, | ||
| Line 940: | Line 903: | ||
-- 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 [[Wikisource: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 993: | Line 956: | ||
-- 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', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 1,000: | Line 963: | ||
-- These messages determine which tracking categories the module outputs. | -- These messages determine which tracking categories the module outputs. | ||
['tracking-category-incorrect'] = ' | ['tracking-category-incorrect'] = 'Wikisource pages with incorrect protection templates', | ||
['tracking-category-template'] = ' | ['tracking-category-expiry'] = 'Wikisource protected pages without expiry', | ||
['tracking-category-template'] = 'Wikisource template-protected pages other than templates and modules', | |||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 1,008: | Line 972: | ||
-- 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'] = 'Padlock-red.svg', | ||
['image-filename-default'] = 'Transparent.gif', | ['image-filename-default'] = 'Transparent.gif', | ||