「モジュール:Protection banner/config」の版間の差分
ナビゲーションに移動
検索に移動
en:Module:Protection banner/config 2016年9月29日 (木) 18:37(UTC)より
template>K-iczn (en:Module:Protection banner/config 20:31, 11 September 2015(UTC)より) |
template>K-iczn (en:Module:Protection banner/config 2016年9月29日 (木) 18:37(UTC)より) |
||
41行目: | 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 | ||
132行目: | 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 = {}, | ||
146行目: | 143行目: | ||
tooltip = 'All edits by users who are not reviewers or administrators are' | tooltip = 'All edits by users who are not reviewers or administrators are' | ||
.. ' subject to review', | .. ' subject to review', | ||
image = 'Padlock-orange.svg' | |||
} | } | ||
} | }, | ||
upload = {} | |||
}, | }, | ||
158行目: | 157行目: | ||
-- 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]].', | ||
174行目: | 173行目: | ||
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' | ||
187行目: | 186行目: | ||
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'''." | ||
195行目: | 194行目: | ||
}, | }, | ||
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". | ||
224行目: | 223行目: | ||
.. ' ${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}' | |||
.. ' under extended confirmed editing restrictions', | |||
alt = 'Extended-protected ${PAGETYPE}', | |||
}, | }, | ||
mainpage = { | mainpage = { | ||
description = 'For pages protected for being displayed on the [[ | 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]].', | ||
239行目: | 246行目: | ||
}, | }, | ||
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 | ||
258行目: | 265行目: | ||
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) | ||
295行目: | 302行目: | ||
sock = { | sock = { | ||
description = 'For pages protected due to' | description = 'For pages protected due to' | ||
.. ' [[ | .. ' [[Wikipedia:Sock puppetry|sock puppetry]]', | ||
text = '${INTROFRAGMENT} to prevent [[ | 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' | ||
304行目: | 311行目: | ||
}, | }, | ||
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 [[ | .. ' 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}' | ||
323行目: | 330行目: | ||
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' | ||
.. ' {{[[ | .. ' {{[[Template:unblock|unblock]]}} template.', | ||
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' | .. '#Current requests for reduction in protection level' | ||
.. '|request unprotection]],' | .. '|request unprotection]],' | ||
340行目: | 347行目: | ||
vandalism = { | vandalism = { | ||
description = 'For pages protected against' | description = 'For pages protected against' | ||
.. ' [[ | .. ' [[Wikipedia:Vandalism|vandalism]]', | ||
text = '${INTROFRAGMENT} due to [[ | text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].', | ||
explanation = function (protectionObj, args) | explanation = function (protectionObj, args) | ||
local ret = '' | local ret = '' | ||
356行目: | 363行目: | ||
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}', | ||
363行目: | 370行目: | ||
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 = {} | |||
}, | }, | ||
388行目: | 396行目: | ||
-- | -- | ||
-- 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 [[ | .. ' 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 ${PROTECTIONLEVEL} as a result of' | |||
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] enforcement or meets the' | |||
.. ' [[Wikipedia:Protection policy#extended|criteria for community use]]', | |||
}, | }, | ||
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 = { | ||
autoconfirmed = 'All edits made to this ${PAGETYPE} by' | autoconfirmed = '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 = 'All edits made to this ${PAGETYPE} by users who are not' | 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 = 'Uploading new versions of this ${PAGETYPE} is currently disabled' | |||
} | } | ||
}, | }, | ||
430行目: | 444行目: | ||
-- | -- | ||
-- 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' | .. '#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' | .. '#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 IP 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, given that semi-protection has proven to be ineffective.' | |||
.. ' Please discuss any changes on the ${TALKPAGE}; you may' | |||
.. ' ${EDITREQUEST} to ask for unconversial 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 [[ | .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' | ||
.. '|consensus]]. You may also [[ | .. '|consensus]]. You may also [[Wikipedia:Requests for' | ||
.. ' page protection#Current requests for reduction in protection level' | .. ' 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 [[ | .. ' 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 [[ | .. ' edit]] to this page, or [[Wikipedia:Requests for' | ||
.. ' page protection#Current requests for reduction in protection level' | .. ' page protection#Current requests for reduction in protection level' | ||
.. '|ask]] for it to be unprotected.' | .. '|ask]] for it to be unprotected.' | ||
472行目: | 496行目: | ||
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 [[ | .. ' ${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.' | ||
} | } | ||
490行目: | 514行目: | ||
autoreview = { | autoreview = { | ||
default = { | default = { | ||
reviewer = 'See the [[ | reviewer = 'See the [[Wikipedia:Protection policy|' | ||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' Edits to this ${PAGETYPE} will not be visible to readers' | .. ' Edits to this ${PAGETYPE} will not be visible to readers' | ||
.. ' until they are accepted by a reviewer or an administrator.' | .. ' until they are accepted by a reviewer or an administrator.' | ||
.. ' To avoid the need for your edits to be reviewed, you may' | .. ' To avoid the need for your edits to be reviewed, you may' | ||
.. ' [[ | .. ' [[Wikipedia:Requests for page protection' | ||
.. '#Current requests for reduction in protection level' | .. '#Current requests for reduction in protection level' | ||
.. '|request unprotection]]. Experienced editors may also' | .. '|request unprotection]]. Experienced editors may also' | ||
.. ' request the [[ | .. ' request the [[Wikipedia:Reviewing|reviewer user right]].', | ||
default = 'See the [[ | 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' | ||
505行目: | 529行目: | ||
.. ' 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' | .. '#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.' | |||
} | |||
} | } | ||
}, | }, | ||
519行目: | 555行目: | ||
-- 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 | ||
526行目: | 562行目: | ||
-- | -- | ||
-- 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', | ||
}, | }, | ||
537行目: | 574行目: | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
}, | |||
upload = { | |||
default = 'upload-protected' | |||
} | } | ||
}, | }, | ||
554行目: | 594行目: | ||
default = 'Padlock.svg', | default = 'Padlock.svg', | ||
templateeditor = 'Padlock-pink.svg', | templateeditor = 'Padlock-pink.svg', | ||
extendedconfirmed = 'Padlock-blue.svg', | |||
autoconfirmed = 'Padlock-silver.svg' | autoconfirmed = 'Padlock-silver.svg' | ||
}, | }, | ||
562行目: | 603行目: | ||
autoconfirmed = 'Padlock-silver-light.svg', | autoconfirmed = 'Padlock-silver-light.svg', | ||
default = 'Padlock-orange.svg' | default = 'Padlock-orange.svg' | ||
}, | |||
upload = { | |||
default = 'Padlock-purple.svg' | |||
} | } | ||
}, | }, | ||
583行目: | 627行目: | ||
-- | -- | ||
-- 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 = { | ||
autoconfirmed = ' | autoconfirmed = 'Wikipedia:Protection policy#pc1', | ||
reviewer = ': | reviewer = 'Wikipedia:Protection policy#pc2' | ||
}, | |||
upload = { | |||
default = 'Wikipedia:Protection policy#upload' | |||
} | } | ||
}, | }, | ||
706行目: | 754行目: | ||
protectionCategories = { | protectionCategories = { | ||
['all|all|all|all|all'] = ' | ['all|all|all|all|all'] = 'Wikipedia 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 pages under 30-500 editing restriction', | ||
['all|all|all|autoconfirmed|edit'] = ' | ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia pages under 30-500 editing restriction', | ||
['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|template|all|templateeditor|edit'] = ' | ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', | ||
['all|all|blp|sysop|edit'] = ' | ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', | ||
['temp|all|blp|sysop|edit'] = ' | ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', | ||
['all|all|dispute|sysop|edit'] = ' | ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', | ||
['all|all|sock|sysop|edit'] = ' | ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', | ||
['all|all|vandalism|sysop|edit'] = ' | ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', | ||
['all|category|all|sysop|edit'] = ' | ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', | ||
['all|file|all|sysop|edit'] = ' | ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', | ||
['all|project|all|sysop|edit'] = ' | ['all|category|all|sysop|edit'] = 'Wikipedia protected categories', | ||
['all|talk|all|sysop|edit'] = ' | ['all|file|all|sysop|edit'] = 'Wikipedia fully-protected files', | ||
['all|template|all|sysop|edit'] = ' | ['all|project|all|sysop|edit'] = 'Wikipedia fully-protected project pages', | ||
['all|user|all|sysop|edit'] = ' | ['all|talk|all|sysop|edit'] = 'Wikipedia fully-protected talk pages', | ||
['all|module|all|all|edit'] = ' | ['all|template|all|sysop|edit'] = 'Wikipedia fully-protected templates', | ||
['all|module|all|templateeditor|edit'] = ' | ['all|user|all|sysop|edit'] = 'Wikipedia protected user and user talk pages', | ||
['all|module|all|autoconfirmed|edit'] = ' | ['all|module|all|all|edit'] = 'Wikipedia fully-protected modules', | ||
['all|all|all|sysop|move'] = ' | ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', | ||
['indef|all|all|sysop|move'] = ' | ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', | ||
['all|all|dispute|sysop|move'] = ' | ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', | ||
['all|all|vandalism|sysop|move'] = ' | ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', | ||
['all|portal|all|sysop|move'] = ' | ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', | ||
['all|portal|all|sysop|move'] = ' | ['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', | ||
['all|project|all|sysop|move'] = ' | ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', | ||
['all|talk|all|sysop|move'] = ' | ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', | ||
['all|template|all|sysop|move'] = ' | ['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages', | ||
['all|user|all|sysop|move'] = ' | ['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages', | ||
['all|all|all|autoconfirmed|autoreview'] = '', | ['all|template|all|sysop|move'] = 'Wikipedia move-protected templates', | ||
['all|all|all|reviewer|autoreview'] = '', | ['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages', | ||
['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages (level 1)', | |||
['all|all|all|reviewer|autoreview'] = 'Wikipedia pending changes protected pages (level 2)', | |||
['all|file|all|all|upload'] = 'Wikipedia upload-protected files', | |||
}, | }, | ||
773行目: | 824行目: | ||
edit = nil, | edit = nil, | ||
move = false, | move = false, | ||
autoreview = true | autoreview = true, | ||
upload = false | |||
}, | }, | ||
820行目: | 872行目: | ||
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'} | ||
839行目: | 892行目: | ||
-- | -- | ||
-- 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-30-500'] = {'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'}, | ||
['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, | ['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, | ||
856行目: | 910行目: | ||
['Template:Pp-pc2'] = {action = 'autoreview', small = true}, | ['Template:Pp-pc2'] = {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'}, | ||
905行目: | 960行目: | ||
-- 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' | ||
.. ' 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 [[ | .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' | ||
.. '|consensus]].', | .. '|consensus]].', | ||
921行目: | 976行目: | ||
-- or the pending changes log link produced by the ${PROTECTIONLOG} parameter. | -- or the pending changes log link produced by the ${PROTECTIONLOG} parameter. | ||
-- It is possible to use banner parameters in these messages. | -- It is possible to use banner parameters in these messages. | ||
['protection-log-display'] = ' | ['protection-log-display'] = 'protection log', | ||
['pc-log-display'] = 'pending changes log', | ['pc-log-display'] = 'pending changes log', | ||
931行目: | 986行目: | ||
-- or the move log link produced by the ${CURRENTVERSION} parameter. | -- or the move log link produced by the ${CURRENTVERSION} parameter. | ||
-- It is possible to use banner parameters in these messages. | -- It is possible to use banner parameters in these messages. | ||
['current-version-move-display'] = ' | ['current-version-move-display'] = 'current title', | ||
['current-version-edit-display'] = ' | ['current-version-edit-display'] = 'current version', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
941行目: | 996行目: | ||
-- with the ${TALKPAGE} parameter. | -- with the ${TALKPAGE} parameter. | ||
-- It is possible to use banner parameters in this message. | -- It is possible to use banner parameters in this message. | ||
['talk-page-link-display'] = ' | ['talk-page-link-display'] = 'talk page', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
958行目: | 1,013行目: | ||
-- 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'] = ' | ['expiry-date-format'] = 'F j, Y', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
965行目: | 1,020行目: | ||
-- 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- | ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
974行目: | 1,028行目: | ||
-- 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 | ['image-filename-indef'] = 'Padlock.svg', | ||
['image-filename-default'] = 'Transparent.gif', | ['image-filename-default'] = 'Transparent.gif', | ||