模块:Protection banner/config:修订间差异

添加1,203字节 、​ 2018年5月11日 (星期五)
update from enwp
Cquote>Dabao qian
小 (取消Shizhao(对话)的编辑;更改回Black9869184的最后一个版本)
Cquote>Xiplus
(update from enwp)
第132行: 第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, and autoreview subtables.
-- *required* - this table needs edit, move, autoreview and upload subtables.
defaultBanners = {
defaultBanners = {
edit = {},
edit = {},
第139行: 第139行:
autoconfirmed = {
autoconfirmed = {
alt = 'Page protected with pending changes level 1',
alt = 'Page protected with pending changes level 1',
tooltip = 'All edits by unregistered and new users are subject to review',
tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users',
image = 'Padlock-silver-light.svg'
image = 'Padlock-silver-light.svg'
},
},
第145行: 第145行:
alt = 'Page protected with pending changes level 2',
alt = 'Page protected with pending changes level 2',
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 prior to becoming visible to unregistered users',
image = 'Padlock-orange.svg'
}
}
}
},
upload = {}
},
},


第158行: 第160行:
-- module documentation.
-- module documentation.
--
--
-- *required* - this table needs edit, move, and autoreview subtables.
-- *required* - this table needs edit, move, autoreview and upload subtables.
banners = {
banners = {
edit = {
edit = {
第164行: 第166行:
description = 'For pages protected to promote compliance with the'
description = 'For pages protected to promote compliance with the'
.. ' [[Wikipedia:Biographies of living persons'
.. ' [[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:Biographies of living persons'
第174行: 第176行:
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'
第195行: 第197行:
},
},
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".
第226行: 第228行:
},
},
mainpage = {
mainpage = {
description = 'For pages protected for being displayed on the [[Main Page]].',
description = 'For pages protected for being displayed on the [[Main Page]]',
text = 'This file is currently'
text = 'This file is currently'
.. ' [[Wikipedia:This page is protected|protected]] from'
.. ' [[Wikipedia:This page is protected|protected]] from'
第239行: 第241行:
},
},
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'
第258行: 第260行:
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'
第305行: 第307行:
template = {
template = {
description = 'For [[Wikipedia:高風險模板|高風險模板]]'
description = 'For [[Wikipedia:高風險模板|高風險模板]]'
.. ' templates and Lua modules.',
.. ' templates and Lua modules',
text = 'This is a permanently [[Help:獲保護頁面|被保護]] ${PAGETYPE},'
text = 'This is a permanently [[Help:獲保護頁面|被保護]] ${PAGETYPE},'
.. ' as it is [[Wikipedia:高風險模板|高風險模板]].',
.. ' as it is [[Wikipedia:高風險模板|高風險模板]].',
第323行: 第325行:
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'
第340行: 第342行:
vandalism = {
vandalism = {
description = 'For pages protected against'
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism|vandalism]].',
.. ' [[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)
第356行: 第358行:
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}',
第364行: 第366行:
description = 'For pages protected against'
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism#Page-move vandalism'
.. ' [[Wikipedia:Vandalism#Page-move vandalism'
.. ' |page-move vandalism]].'
.. ' |page-move vandalism]]'
}
}
},
},
autoreview = {}
autoreview = {},
upload = {}
},
},


第388行: 第391行:
--
--
-- 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 autoreview subtables.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionBlurbs = {
protectionBlurbs = {
edit = {
edit = {
第395行: 第398行:
autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access'
autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access'
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
.. ' users|unregistered]] users is currently [[Help:Protection|disabled]]'
.. ' users|unregistered]] users is currently [[Help:Protection|disabled]]',
},
},
move = {
move = {
第411行: 第414行:
.. ' [[Wikipedia:管理员|管理员]] are currently'
.. ' [[Wikipedia:管理员|管理员]] are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]'
.. ' [[Wikipedia:Pending changes|subject to review]]'
},
upload = {
default = 'Uploading new versions of this ${PAGETYPE} is currently disabled'
}
}
},
},
第430行: 第436行:
--
--
-- 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 autoreview subtables.
-- *required* - this table needs edit, move, autoreview and upload subtables.
explanationBlurbs = {
explanationBlurbs = {
edit = {
edit = {
第510行: 第516行:
.. ' [[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行: 第537行:
-- 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 proteciton level, and is checked in the following
-- 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行: 第544行:
--
--
-- 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 autoreview subtables.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionLevels = {
protectionLevels = {
edit = {
edit = {
第537行: 第555行:
},
},
autoreview = {
autoreview = {
},
upload = {
default = 'upload-protected'
}
}
},
},
第562行: 第583行:
autoconfirmed = 'Padlock-silver-light.svg',
autoconfirmed = 'Padlock-silver-light.svg',
default = 'Padlock-orange.svg'
default = 'Padlock-orange.svg'
},
upload = {
default = 'Padlock-purple.svg'
}
}
},
},
第583行: 第607行:
--
--
-- 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 autoreview subtables.
-- *required* - this table needs edit, move, autoreview and upload subtables.
imageLinks = {
imageLinks = {
edit = {
edit = {
第596行: 第620行:
autoconfirmed = 'Wikipedia:Protection policy#pc1',
autoconfirmed = 'Wikipedia:Protection policy#pc1',
reviewer = 'Wikipedia:Protection policy#pc2'
reviewer = 'Wikipedia:Protection policy#pc2'
},
upload = {
default = 'Wikipedia:Protection policy#upload'
}
}
},
},
第710行: 第737行:
['all|all|reset|all|all']                = 'Wikipedia Office-protected pages',
['all|all|reset|all|all']                = 'Wikipedia Office-protected pages',
['all|all|dmca|all|all']                = 'Wikipedia Office-protected pages',
['all|all|dmca|all|all']                = 'Wikipedia Office-protected pages',
['all|all|mainpage|all|all']            = 'Protected main page images',
['all|all|mainpage|all|all']            = 'Wikipedia fully-protected main page files',
['all|template|all|all|edit']            = '被保護的模板',
['all|template|all|all|edit']            = '被保護的模板',
['all|all|all|autoconfirmed|edit']      = '被半保护的页面',
['all|all|all|autoconfirmed|edit']      = '被半保护的页面',
['all|template|all|all|edit']            = 'Wikipedia fully-protected templates',
['all|all|all|autoconfirmed|edit']      = 'Wikipedia semi-protected pages',
['indef|all|all|autoconfirmed|edit']    = 'Wikipedia indefinitely semi-protected pages',
['indef|all|all|autoconfirmed|edit']    = 'Wikipedia indefinitely semi-protected pages',
['all|all|blp|autoconfirmed|edit']      = 'Wikipedia indefinitely semi-protected biographies of living people',
['all|all|blp|autoconfirmed|edit']      = 'Wikipedia indefinitely semi-protected biographies of living people',
第749行: 第778行:
['all|template|all|sysop|move']          = '被移動保護的模板',
['all|template|all|sysop|move']          = '被移動保護的模板',
['all|user|all|sysop|move']              = '被移動保護的用戶頁',
['all|user|all|sysop|move']              = '被移動保護的用戶頁',
['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages (level 1)',
['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages',
['all|all|all|reviewer|autoreview']      = 'Wikipedia pending changes protected pages (level 2)',
['all|all|all|reviewer|autoreview']      = 'Wikipedia pending changes protected pages (level 2)',
['all|file|all|all|upload']              = 'Wikipedia upload-protected files',
},
},


第771行: 第801行:
edit = nil,
edit = nil,
move = false,
move = false,
autoreview = true
autoreview = true,
upload = false
},
},


第837行: 第868行:
--
--
-- 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. The arguments cannot be overwritten by the
-- default arguments automatically. However, users can override any of the
-- user.
-- arguments.
wrappers = {
wrappers = {
['Template:Pp']                        = {},
['Template:Pp']                        = {},
第844行: 第875行:
-- we don't need Template:Pp-create
-- we don't need Template:Pp-create
['Template:Pp-dispute']                = {'dispute'},
['Template:Pp-dispute']                = {'dispute'},
['Template:Pp-main-page']               = {'mainpage'},
['Template:Pp-main-page']               = {'mainpage'},
['Template:Pp-move']                    = {action = 'move'},
['Template:Pp-move']                    = {action = 'move'},
['Template:Pp-move-dispute']            = {'dispute', action = 'move'},
['Template:Pp-move-dispute']            = {'dispute', action = 'move'},
第854行: 第885行:
['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']              = {expiry = 'indef', small = true},
['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'},
第964行: 第996行:
-- These messages determine which tracking categories the module outputs.
-- These messages determine which tracking categories the module outputs.
['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates',
['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates',
['tracking-category-expiry'] = 'Wikipedia protected pages without expiry',
['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules',
['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules',


匿名用户