Editing Module:Protection banner/config
From WikiOasis Meta
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| 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 53: | Line 50: | ||
-- | -- | ||
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry | -- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry | ||
-- is set. E.g. "Editing of this page by new or unregistered users is currently | -- is set. E.g. "Editing of this page by new or unregistered users is currently | ||
-- disabled until dd Month YYYY." | -- disabled until dd Month YYYY." | ||
-- | -- | ||
| Line 127: | Line 124: | ||
tooltip = '${TOOLTIPBLURB}', | tooltip = '${TOOLTIPBLURB}', | ||
link = '${IMAGELINK}', | link = '${IMAGELINK}', | ||
alt = ' | alt = 'Page ${PROTECTIONLEVEL}' | ||
}, | }, | ||
| Line 137: | Line 134: | ||
move = {}, | move = {}, | ||
autoreview = { | autoreview = { | ||
default = { | |||
alt = 'Page protected with pending changes | alt = 'Page protected with pending changes', | ||
tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', | tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', | ||
image = ' | image = 'Pending-protection-shackle.svg' | ||
} | } | ||
}, | }, | ||
| Line 164: | Line 155: | ||
edit = { | edit = { | ||
blp = { | blp = { | ||
description = ' | description = 'For pages protected to promote compliance with the' | ||
.. ' [[Wikipedia: | .. ' [[Wikipedia:Biographies of living persons' | ||
.. '| | .. '|biographies of living persons]] policy', | ||
text = '${INTROFRAGMENT} | text = '${INTROFRAGMENT} to promote compliance with' | ||
.. ' [[Wikipedia: | .. ' [[Wikipedia:Biographies of living persons' | ||
.. "| | .. "|Wikipedia's policy on the biographies" | ||
.. ' | .. ' of living people]].', | ||
tooltip = '${TOOLTIPFRAGMENT} | tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on' | ||
.. ' | .. ' biographies of living persons', | ||
}, | }, | ||
dmca = { | dmca = { | ||
description = ' | description = 'For pages protected by the Wikimedia Foundation' | ||
.. ' | .. ' due to [[Digital Millennium Copyright Act]] takedown requests', | ||
explanation = function (protectionObj, args) | explanation = function (protectionObj, args) | ||
local ret = ' | local ret = 'Pursuant to a rights owner notice under the Digital' | ||
.. ' | .. ' Millennium Copyright Act (DMCA) regarding some content' | ||
.. ' | .. ' in this article, the Wikimedia Foundation acted under' | ||
.. ' | .. ' applicable law and took down and restricted the content' | ||
.. ' | .. ' in question.' | ||
if args.notice then | if args.notice then | ||
ret = ret .. ' | ret = ret .. ' A copy of the received notice can be found here: ' | ||
.. args.notice .. ' | .. args.notice .. '.' | ||
end | end | ||
ret = ret .. ' | ret = ret .. ' For more information, including websites discussing' | ||
.. ' | .. ' 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" | ||
.. " | .. " restrictions are withdrawn'''." | ||
return ret | return ret | ||
end, | end, | ||
image = 'Office-protection-shackle | image = 'Office-protection-shackle.svg', | ||
link = 'Wikipedia:Protection policy#office', | |||
}, | }, | ||
dispute = { | dispute = { | ||
description = ' | 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". | ||
local display = ' | local display = 'disputes' | ||
local disputes | local disputes | ||
if args.section then | if args.section then | ||
| Line 217: | Line 209: | ||
local msg | local msg | ||
if type(protectionObj.expiry) == 'number' then | if type(protectionObj.expiry) == 'number' then | ||
msg = '${INTROFRAGMENT} | msg = '${INTROFRAGMENT} or until editing %s have been resolved.' | ||
else | else | ||
msg = '${INTROFRAGMENT} | msg = '${INTROFRAGMENT} until editing %s have been resolved.' | ||
end | end | ||
return string.format(msg, disputes) | return string.format(msg, disputes) | ||
end, | end, | ||
explanation = " | explanation = "This protection is '''not''' an endorsement of the" | ||
.. '${CURRENTVERSION} | .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | ||
tooltip = ' | 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 = ' | description = 'For pages protected for being displayed on the [[Main Page]]', | ||
text = ' | text = 'This file is currently' | ||
.. ' | .. ' [[Wikipedia:This page is protected|protected]] from' | ||
.. ' | .. ' editing because it is currently or will soon be displayed' | ||
.. ' | .. ' on the [[Main Page]].', | ||
explanation = ' | explanation = 'Images on the Main Page are protected due to their high' | ||
.. ' | .. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.' | ||
.. '<br /><span style="font-size:90%;">' | .. '<br /><span style="font-size:90%;">' | ||
.. "''' | .. "'''Administrators:''' Once this image is definitely off the Main Page," | ||
.. ' | .. ' please unprotect this file, or reduce to semi-protection,' | ||
.. ' | .. ' as appropriate.</span>', | ||
}, | }, | ||
office = { | office = { | ||
description = ' | description = 'For pages protected by the Wikimedia Foundation', | ||
text = function (protectionObj, args) | text = function (protectionObj, args) | ||
local ret = ' | local ret = 'This ${PAGETYPE} is currently under the' | ||
.. '[[Wikipedia: | .. ' scrutiny of the' | ||
.. ' | .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | ||
.. ' and is protected.' | |||
if protectionObj.protectionDate then | if protectionObj.protectionDate then | ||
ret = ret .. ' | ret = ret .. ' It has been protected since ${PROTECTIONDATE}.' | ||
end | end | ||
return ret | return ret | ||
end, | end, | ||
explanation = " | explanation = "If you can edit this page, please discuss all changes and" | ||
.. "${TALKPAGE} | .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this" | ||
.. " | .. " page unless you are authorized by the Wikimedia Foundation to do" | ||
.. " | .. " so.'''", | ||
image = 'Office-protection-shackle | image = 'Office-protection-shackle.svg', | ||
link = 'Wikipedia:Protection policy#office', | |||
}, | }, | ||
reset = { | reset = { | ||
description = ' | description = 'For pages protected by the Wikimedia Foundation and' | ||
.. ' | .. ' "reset" to a bare-bones version', | ||
text = ' | text = 'This ${PAGETYPE} is currently under the' | ||
.. '[[Wikipedia: | .. ' scrutiny of the' | ||
.. ' | .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | ||
.. ' and is protected.', | |||
explanation = function (protectionObj, args) | explanation = function (protectionObj, args) | ||
local ret = '' | local ret = '' | ||
if protectionObj.protectionDate then | if protectionObj.protectionDate then | ||
ret = ret .. ' | ret = ret .. 'On ${PROTECTIONDATE} this ${PAGETYPE} was' | ||
else | else | ||
ret = ret .. ' | ret = ret .. 'This ${PAGETYPE} has been' | ||
end | end | ||
ret = ret .. ' | ret = ret .. ' reduced to a' | ||
.. ' | .. ' simplified, "bare bones" version so that it may be completely' | ||
.. ' | .. ' rewritten to ensure it meets the policies of' | ||
.. '[[WP:NPOV| | .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].' | ||
.. ' | .. ' Standard Wikipedia policies will apply to its rewriting—which' | ||
.. ' | .. ' will eventually be open to all editors—and will be strictly' | ||
.. ' | .. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while' | ||
.. ' | .. ' it is being rebuilt.\n\n' | ||
.. ' | .. 'Any insertion of material directly from' | ||
.. ' | .. ' pre-protection revisions of the ${PAGETYPE} will be removed, as' | ||
.. ' | .. ' will any material added to the ${PAGETYPE} that is not properly' | ||
.. ' | .. ' sourced. The associated talk page(s) were also cleared on the' | ||
.. | .. " same date.\n\n" | ||
.. " | .. "If you can edit this page, please discuss all changes and" | ||
.. "${TALKPAGE} | .. " additions on the ${TALKPAGE} first. '''Do not override" | ||
.. " | .. " this action, and do not remove protection from this page," | ||
.. " | .. " unless you are authorized by the Wikimedia Foundation" | ||
.. " | .. " to do so. No editor may remove this notice.'''" | ||
return ret | return ret | ||
end, | end, | ||
image = 'Office-protection-shackle | image = 'Office-protection-shackle.svg', | ||
link = 'Wikipedia:Protection policy#office', | |||
}, | }, | ||
sock = { | sock = { | ||
description = ' | description = 'For pages protected due to' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Sock puppetry|sock puppetry]]', | ||
text = '${INTROFRAGMENT} | text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' | ||
.. ' [[Wikipedia:Blocking policy|blocked]] or' | |||
.. '[[Wikipedia: | .. ' [[Wikipedia:Banning policy|banned users]]' | ||
.. ' | .. ' from editing it.', | ||
tooltip = ' | tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' | ||
.. ' | .. ' editing it', | ||
}, | }, | ||
template = { | template = { | ||
description = '[[Wikipedia: | description = 'For [[Wikipedia:High-risk templates|high-risk]]' | ||
.. ' | .. ' templates and Lua modules', | ||
text = ' | text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' | ||
.. ' | .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', | ||
explanation = ' | explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' | ||
.. ' | .. ' ${EDITREQUEST} to ask an' | ||
.. '| | .. ' [[Wikipedia:Administrators|administrator]] or' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Template editor|template editor]] to make an edit if' | ||
.. ' | .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' | ||
.. '[[Wikipedia: | .. '|uncontroversial]] or supported by' | ||
.. ' [[Wikipedia:Consensus|consensus]]. You can also' | |||
.. '[[Wikipedia: | .. ' [[Wikipedia:Requests for page protection|request]] that the page be' | ||
.. ' | .. ' unprotected.', | ||
tooltip = ' | tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' | ||
.. ' | .. ' to prevent vandalism', | ||
alt = ' | alt = 'Permanently protected ${PAGETYPE}', | ||
}, | }, | ||
usertalk = { | usertalk = { | ||
description = ' | description = 'For pages protected against disruptive edits by a' | ||
.. ' | .. ' particular user', | ||
text = '${INTROFRAGMENT} | text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,' | ||
.. ' | .. ' such as abusing the' | ||
.. '{{[[Template:unblock|unblock]]}} | .. ' {{[[Template:unblock|unblock]]}} template.', | ||
explanation = ' | explanation = 'If you cannot edit this user talk page and you need to' | ||
.. ' | .. ' make a change or leave a message, you can' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for edits to a protected page' | ||
.. '| | .. '|request an edit]],' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for reduction in protection level' | ||
.. '| | .. '|request unprotection]],' | ||
.. '[[Special: | .. ' [[Special:Userlogin|log in]],' | ||
.. ' | .. ' or [[Special:UserLogin/signup|create an account]].', | ||
}, | }, | ||
vandalism = { | vandalism = { | ||
description = ' | description = 'For pages protected against' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Vandalism|vandalism]]', | ||
text = ' | text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].', | ||
explanation = function (protectionObj, args) | explanation = function (protectionObj, args) | ||
local ret = '' | local ret = '' | ||
if protectionObj.level == 'sysop' then | if protectionObj.level == 'sysop' then | ||
ret = ret .. " | ret = ret .. "This protection is '''not''' an endorsement of the" | ||
.. '${CURRENTVERSION} | .. ' ${CURRENTVERSION}. ' | ||
end | end | ||
return ret .. '${EXPLANATIONBLURB}' | return ret .. '${EXPLANATIONBLURB}' | ||
end, | end, | ||
tooltip = ' | tooltip = '${TOOLTIPFRAGMENT} due to vandalism', | ||
} | } | ||
}, | }, | ||
move = { | move = { | ||
dispute = { | dispute = { | ||
description = ' | description = 'For pages protected against page moves due to' | ||
.. ' | .. ' disputes over the page title', | ||
explanation = " | explanation = "This protection is '''not''' an endorsement of the" | ||
.. '${CURRENTVERSION} | .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | ||
image = 'Move-protection-shackle.svg' | image = 'Move-protection-shackle.svg' | ||
}, | }, | ||
vandalism = { | vandalism = { | ||
description = ' | description = 'For pages protected against' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Vandalism#Page-move vandalism' | ||
.. '| | .. ' |page-move vandalism]]' | ||
} | } | ||
}, | }, | ||
| Line 394: | Line 395: | ||
protectionBlurbs = { | protectionBlurbs = { | ||
edit = { | edit = { | ||
default = ' | default = 'This ${PAGETYPE} is currently [[Help:Protection|' | ||
.. ' | .. 'protected]] from editing', | ||
autoconfirmed = '[[Wikipedia: | autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access' | ||
.. ' | .. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered' | ||
.. ' | .. ' users|unregistered]] users is currently [[Help:Protection|disabled]]', | ||
extendedconfirmed = 'This ${PAGETYPE} is currently under extended confirmed protection', | |||
}, | }, | ||
move = { | move = { | ||
default = ' | default = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' | ||
.. ' | .. ' from [[Help:Moving a page|page moves]]' | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
default = 'All edits made to this ${PAGETYPE} by' | |||
.. ' [[Wikipedia: | .. ' [[Wikipedia:User access levels#New users|new]] or' | ||
.. ' [[Wikipedia: | .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]' | ||
.. ' users are currently' | .. ' users are currently' | ||
.. ' [[Wikipedia:Pending changes|subject to review]]' | .. ' [[Wikipedia:Pending changes|subject to review]]' | ||
}, | }, | ||
upload = { | upload = { | ||
default = ' | default = 'Uploading new versions of this ${PAGETYPE} is currently disabled' | ||
} | } | ||
}, | }, | ||
| Line 440: | Line 438: | ||
edit = { | edit = { | ||
autoconfirmed = { | autoconfirmed = { | ||
subject = ' | subject = 'See the [[Wikipedia:Protection policy|' | ||
.. ' | .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' | ||
.. ' | .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' | ||
.. '${EDITREQUEST} | .. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for reduction in protection level' | ||
.. '| | .. '|request unprotection]], [[Special:Userlogin|log in]], or' | ||
.. ' | .. ' [[Special:UserLogin/signup|create an account]].', | ||
default = ' | default = 'See the [[Wikipedia:Protection policy|' | ||
.. ' | .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' | ||
.. ' | .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' | ||
.. '[[Wikipedia: | .. ' [[Wikipedia:Requests for page protection' | ||
.. '# | .. '#Current requests for reduction in protection level' | ||
.. '| | .. '|request unprotection]], [[Special:Userlogin|log in]], or' | ||
.. ' | .. ' [[Special:UserLogin/signup|create an account]].', | ||
}, | |||
extendedconfirmed = { | |||
default = 'Extended confirmed protection prevents edits from all unregistered editors' | |||
.. ' and registered users with fewer than 30 days tenure and 500 edits.' | |||
.. ' 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 = ' | subject = 'See the [[Wikipedia:Protection policy|' | ||
.. ' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' | .. ' Please discuss any changes on the ${TALKPAGE}; you' | ||
.. ' | .. ' may ${EDITREQUEST} to ask an' | ||
.. ' | .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' | ||
.. ' | .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' | ||
.. '[[Wikipedia: | .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' | ||
.. ' | .. '|consensus]]. You may also [[Wikipedia:Requests for' | ||
.. ' | .. ' page protection#Current requests for reduction in protection level' | ||
.. '| | .. '|request]] that this page be unprotected.', | ||
default = ' | default = 'See the [[Wikipedia:Protection policy|' | ||
.. ' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' | .. ' You may [[Wikipedia:Requests for page' | ||
.. ' | .. ' protection#Current requests for edits to a protected page|request an' | ||
.. ' | .. ' edit]] to this page, or [[Wikipedia:Requests for' | ||
.. ' | .. ' page protection#Current requests for reduction in protection level' | ||
.. '| | .. '|ask]] for it to be unprotected.' | ||
} | } | ||
}, | }, | ||
move = { | move = { | ||
default = { | default = { | ||
subject = ' | subject = 'See the [[Wikipedia:Protection policy|' | ||
.. ' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' | .. ' The page may still be edited but cannot be moved' | ||
.. ' | .. ' until unprotected. Please discuss any suggested moves on the' | ||
.. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also' | |||
.. '[[Wikipedia: | .. ' [[Wikipedia:Requests for page protection|request]] that the page be' | ||
.. ' | .. ' unprotected.', | ||
default = ' | default = 'See the [[Wikipedia:Protection policy|' | ||
.. ' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' | .. ' The page may still be edited but cannot be moved' | ||
.. ' | .. ' until unprotected. Please discuss any suggested moves at' | ||
.. ' [[Wikipedia:Requested moves]]. You can also' | |||
.. '[[Wikipedia: | .. ' [[Wikipedia:Requests for page protection|request]] that the page be' | ||
.. ' | .. ' unprotected.' | ||
} | } | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
default = { | default = { | ||
default = 'See the [[Wikipedia:Protection policy|' | |||
.. ' | .. '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' | ||
.. ' will not be visible to readers until they are accepted by' | .. ' will not be visible to readers until they are accepted by' | ||
| Line 519: | Line 520: | ||
upload = { | upload = { | ||
default = { | default = { | ||
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' | ||
.. '[[Wikipedia: | .. ' 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 547: | Line 548: | ||
protectionLevels = { | protectionLevels = { | ||
edit = { | edit = { | ||
default = ' | default = 'protected', | ||
templateeditor = ' | templateeditor = 'template-protected', | ||
extendedconfirmed = ' | extendedconfirmed = 'extended-protected', | ||
autoconfirmed = ' | autoconfirmed = 'semi-protected', | ||
}, | }, | ||
move = { | move = { | ||
default = ' | default = 'move-protected' | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
}, | }, | ||
upload = { | upload = { | ||
default = ' | default = 'upload-protected' | ||
} | } | ||
}, | }, | ||
| Line 574: | Line 575: | ||
images = { | images = { | ||
edit = { | edit = { | ||
default = 'Full-protection-shackle | default = 'Full-protection-shackle.svg', | ||
templateeditor = 'Template-protection-shackle | templateeditor = 'Template-protection-shackle.svg', | ||
extendedconfirmed = 'Extended-protection-shackle | extendedconfirmed = 'Extended-protection-shackle.svg', | ||
autoconfirmed = 'Semi-protection-shackle.svg' | autoconfirmed = 'Semi-protection-shackle.svg' | ||
}, | }, | ||
| Line 583: | Line 584: | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
default = 'Pending-protection-shackle.svg' | |||
}, | }, | ||
upload = { | upload = { | ||
| Line 612: | Line 612: | ||
imageLinks = { | imageLinks = { | ||
edit = { | edit = { | ||
default = 'Wikipedia: | default = 'Wikipedia:Protection policy#full', | ||
templateeditor = 'Wikipedia: | templateeditor = 'Wikipedia:Protection policy#template', | ||
extendedconfirmed = 'Wikipedia: | extendedconfirmed = 'Wikipedia:Protection policy#extended', | ||
autoconfirmed = 'Wikipedia: | autoconfirmed = 'Wikipedia:Protection policy#semi' | ||
}, | }, | ||
move = { | move = { | ||
default = 'Wikipedia: | default = 'Wikipedia:Protection policy#move' | ||
}, | }, | ||
autoreview = { | autoreview = { | ||
default = 'Wikipedia:Protection policy#pending' | |||
}, | }, | ||
upload = { | upload = { | ||
default = 'Wikipedia: | default = 'Wikipedia:Protection policy#upload' | ||
} | } | ||
}, | }, | ||
| Line 657: | Line 656: | ||
-- 4. the protection level (e.g. "sysop" or "autoconfirmed") | -- 4. the protection level (e.g. "sysop" or "autoconfirmed") | ||
-- 5. the action (e.g. "edit" or "move") | -- 5. the action (e.g. "edit" or "move") | ||
-- | -- | ||
-- When the module looks up a category in the table, first it will will check to | -- When the module looks up a category in the table, first it will will check to | ||
-- see a key exists that corresponds to all five parameters. For example, a | -- see a key exists that corresponds to all five parameters. For example, a | ||
| Line 736: | Line 735: | ||
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|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|all|all|templateeditor|move'] = 'Wikipedia template-protected pages other than templates and modules', | ||
['all|all|dispute|sysop|edit'] | ['all|all|all|templateeditor|edit'] = 'Wikipedia template-protected pages other than templates and modules', | ||
['all|all|sock|sysop|edit'] | ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', | ||
['all|all|vandalism|sysop|edit'] | ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected templates | ||
['all|category|all|sysop|edit'] | ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', | ||
['all|file|all|sysop|edit'] | ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', | ||
['all|project|all|sysop|edit'] | ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', | ||
['all|talk|all|sysop|edit'] | ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', | ||
['all|template|all| | ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', | ||
['all| | ['all|category|all|sysop|edit'] = 'Wikipedia fully protected categories', | ||
['all| | ['all|file|all|sysop|edit'] = 'Wikipedia fully protected files', | ||
['all|module|all| | ['all|project|all|sysop|edit'] = 'Wikipedia fully protected project pages', | ||
['all|module|all| | ['all|talk|all|sysop|edit'] = 'Wikipedia fully protected talk pages', | ||
['all| | ['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates', | ||
[' | ['all|template|all|sysop|edit'] = 'Wikipedia fully protected templates', | ||
['all|all| | ['all|user|all|sysop|edit'] = 'Wikipedia fully protected user and user talk pages', | ||
['all|all | ['all|module|all|all|edit'] = 'Wikipedia fully protected modules', | ||
['all| | ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', | ||
['all| | ['all|module|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected modules', | ||
['all| | ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', | ||
['all| | ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', | ||
['all| | ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', | ||
['all| | ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', | ||
['all| | ['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', | ||
['all|all|all| | ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', | ||
['all|file|all|all|upload'] | ['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 820: | Line 824: | ||
-- Keys are namespace numbers, or the string "default" for the default value. | -- Keys are namespace numbers, or the string "default" for the default value. | ||
pagetypes = { | pagetypes = { | ||
[0] = ' | [0] = 'article', | ||
[6] = ' | [6] = 'file', | ||
[10] = ' | [10] = 'template', | ||
[14] = ' | [14] = 'category', | ||
[828] = ' | [828] = 'module', | ||
default = ' | default = 'page' | ||
}, | }, | ||
| Line 874: | Line 878: | ||
-- default arguments automatically. However, users can override any of the | -- default arguments automatically. However, users can override any of the | ||
-- arguments. | -- arguments. | ||
wrappers = { | wrappers = { | ||
['Template:Pp- | ['Template:Pp'] = {}, | ||
['Template:Pp | ['Template:Protection padlock'] = {}, | ||
['Template:Pp-extended'] = {'ecp'}, | |||
['Template:Pp-blp'] = {'blp'}, | |||
-- we don't need Template:Pp-create | -- we don't need Template:Pp-create | ||
['Template:Pp-dispute'] = {'dispute'}, | ['Template:Pp-dispute'] = {'dispute'}, | ||
['Template:Pp-main-page'] = {'mainpage'}, | |||
['Template:Pp-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'] = {small = true}, | ['Template:Pp-semi-indef'] = {small = true}, | ||
['Template:Pp | ['Template:Pp-sock'] = {'sock'}, | ||
['Template:Pp-template'] = {'template', small = true}, | ['Template:Pp-template'] = {'template', small = true}, | ||
['Template:Pp-upload'] = {action = 'upload'}, | ['Template:Pp-upload'] = {action = 'upload'}, | ||
| Line 900: | Line 904: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- | -- | ||
-- MESSAGES | -- MESSAGES | ||
-- | -- | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 916: | Line 920: | ||
-- intro-blurb-noexpiry or intro-fragment-noexpiry. | -- intro-blurb-noexpiry or intro-fragment-noexpiry. | ||
-- It is possible to use banner parameters in these messages. | -- It is possible to use banner parameters in these messages. | ||
['intro-blurb-expiry'] = '${PROTECTIONBLURB} | ['intro-blurb-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY}.', | ||
['intro-blurb-noexpiry'] = '${PROTECTIONBLURB} | ['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.', | ||
['intro-fragment-expiry'] = '${PROTECTIONBLURB} | ['intro-fragment-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY},', | ||
['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}', | ['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}', | ||
| Line 929: | Line 933: | ||
-- if not the tooltip-blurb-noexpiry message is used. | -- if not the tooltip-blurb-noexpiry message is used. | ||
-- It is possible to use banner parameters in these messages. | -- It is possible to use banner parameters in these messages. | ||
['tooltip-blurb-expiry'] = ' | ['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', | ||
['tooltip-blurb-noexpiry'] = ' | ['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.', | ||
['tooltip-fragment-expiry'] = ' | ['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},', | ||
['tooltip-fragment-noexpiry'] = ' | ['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 941: | Line 945: | ||
-- 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'] = ' | ['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|' | ||
.. ' | .. 'protection policy]] and ${PROTECTIONLOG} for more details.' | ||
.. ' | .. ' Please discuss any changes on the ${TALKPAGE}; you' | ||
.. ' | .. ' may ${EDITREQUEST} to ask an' | ||
.. '| | .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' | ||
.. '[[ | .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' | ||
.. ' | .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' | ||
.. ' | .. '|consensus]].', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 957: | Line 961: | ||
-- 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'] = ' | ['pc-log-display'] = 'pending changes log', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 967: | Line 971: | ||
-- 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', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 977: | Line 981: | ||
-- 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', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 986: | Line 990: | ||
-- with the ${EDITREQUEST} parameter. | -- with the ${EDITREQUEST} parameter. | ||
-- It is possible to use banner parameters in this message. | -- It is possible to use banner parameters in this message. | ||
['edit-request-display'] = ' | ['edit-request-display'] = 'submit an edit request', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 994: | Line 998: | ||
-- 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 "at" H:i e', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 1,001: | Line 1,005: | ||
-- 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'] = ' | ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 1,009: | Line 1,013: | ||
-- 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'] = 'Full-protection-shackle | ['image-filename-indef'] = 'Full-protection-shackle.svg', | ||
['image-filename-default'] = 'Transparent.gif', | ['image-filename-default'] = 'Transparent.gif', | ||