الفرق بين المراجعتين لصفحة: «وحدة:Protection banner/config»
تم حذف المحتوى تمت إضافة المحتوى
ط مراجعة واحدة: استيراد وحدة |
ط مراجعة واحدة: استيراد قوالب هامة |
||
سطر 1:
-- This module provides configuration data for [[
return {
سطر 41:
--
-- ${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
السطر 129 ⟵ 132:
-- The default banner data. This holds banner data for different protection
-- levels.
-- *required* - this table needs edit, move,
defaultBanners = {
edit = {},
السطر 136 ⟵ 139:
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'
},
السطر 142 ⟵ 145:
alt = 'Page protected with pending changes level 2',
tooltip = 'All edits by users who are not reviewers or administrators are'
.. ' subject to review
}
}
},
السطر 157 ⟵ 158:
-- module documentation.
--
-- *required* - this table needs edit, move,
banners = {
edit = {
السطر 163 ⟵ 164:
description = 'For pages protected to promote compliance with the'
.. ' [[Wikipedia:Biographies of living persons'
.. '|biographies of living persons]] policy.',
text = '${INTROFRAGMENT} to promote compliance with'
.. ' [[Wikipedia:Biographies of living persons'
السطر 173 ⟵ 174:
dmca = {
description = 'For pages protected by the Wikimedia Foundation'
.. ' due to
explanation = function (protectionObj, args)
local ret = 'Pursuant to a rights owner notice under the Digital'
السطر 186 ⟵ 187:
ret = ret .. ' For more information, including websites discussing'
.. ' how to file a counter-notice, please see'
.. " [[
.. "'''Do not remove this template from the article until the"
.. " restrictions are withdrawn'''."
السطر 194 ⟵ 195:
},
dispute = {
description = 'For pages protected due to editing disputes.',
text = function (protectionObj, args)
-- Find the value of "disputes".
السطر 223 ⟵ 224:
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes',
},
mainpage = {
description = 'For pages protected for being displayed on the [[
text = 'This file is currently'
.. ' [[
.. ' editing because it is currently or will soon be displayed'
.. ' on the [[
explanation = 'Images on the Main Page are protected due to their high'
.. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.'
السطر 245 ⟵ 239:
},
office = {
description = 'For pages protected by the Wikimedia Foundation.',
text = function (protectionObj, args)
local ret = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[
.. ' and is protected.'
if protectionObj.protectionDate then
السطر 264 ⟵ 258:
reset = {
description = 'For pages protected by the Wikimedia Foundation and'
.. ' "reset" to a bare-bones version.',
text = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[
.. ' and is protected.',
explanation = function (protectionObj, args)
السطر 279 ⟵ 273:
.. ' simplified, "bare bones" version so that it may be completely'
.. ' rewritten to ensure it meets the policies of'
.. ' [[
.. ' Standard Wikipedia policies will apply to its rewriting—which'
.. ' will eventually be open to all editors—and will be strictly'
السطر 301 ⟵ 295:
sock = {
description = 'For pages protected due to'
.. ' [[
text = '${INTROFRAGMENT} to prevent [[
.. ' [[
.. ' [[
.. ' from editing it.',
tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from'
السطر 310 ⟵ 304:
},
template = {
description = 'For [[
.. ' templates and Lua modules.',
text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},'
.. ' as it is [[
explanation = 'Please discuss any changes on the ${TALKPAGE}; you may'
.. ' ${EDITREQUEST} to ask an'
.. ' [[
.. ' [[Wikipedia:Template editor|template editor]] to make an edit if'
.. ' it is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by'
.. ' [[
.. ' [[
.. ' unprotected.',
tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}'
السطر 329 ⟵ 323:
usertalk = {
description = 'For pages protected against disruptive edits by a'
.. ' particular user.',
text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,'
.. ' such as abusing the'
.. ' {{[[
explanation = 'If you cannot edit this user talk page and you need to'
.. ' make a change or leave a message, you can'
السطر 346 ⟵ 340:
vandalism = {
description = 'For pages protected against'
.. ' [[
text = '${INTROFRAGMENT} due to [[
explanation = function (protectionObj, args)
local ret = ''
السطر 362 ⟵ 356:
dispute = {
description = 'For pages protected against page moves due to'
.. ' disputes over the page title.',
explanation = "This protection is '''not''' an endorsement of the"
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
السطر 370 ⟵ 364:
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism#Page-move vandalism'
.. ' |page-move vandalism]].'
}
},
autoreview = {}
},
السطر 395 ⟵ 388:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move,
protectionBlurbs = {
edit = {
السطر 402 ⟵ 395:
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]]'
},
move = {
default = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]'
.. ' from [[
},
autoreview = {
autoconfirmed = 'All edits made to this ${PAGETYPE} by'
.. ' [[
.. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
.. ' users are currently'
.. ' [[
default = 'All edits made to this ${PAGETYPE} by users who are not'
.. ' [[Wikipedia:Reviewing|reviewers]] or'
.. ' [[
.. ' [[
}
},
السطر 443 ⟵ 430:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move,
explanationBlurbs = {
edit = {
autoconfirmed = {
subject = 'See the [[
.. '
.. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can'
.. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},'
السطر 455 ⟵ 442:
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].',
default = 'See the [[
.. '
.. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can'
.. ' [[Wikipedia:Requests for page protection'
السطر 462 ⟵ 449:
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].',
},
default = {
subject = 'See the [[
.. '
.. ' Please discuss any changes on the ${TALKPAGE}; you'
.. ' may ${EDITREQUEST} to ask an'
.. ' [[
.. ' is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by [[Wikipedia:Consensus'
السطر 484 ⟵ 461:
.. ' page protection#Current requests for reduction in protection level'
.. '|request]] that this page be unprotected.',
default = 'See the [[
.. '
.. ' You may [[Wikipedia:Requests for page'
.. ' protection#Current requests for edits to a protected page|request an'
السطر 495 ⟵ 472:
move = {
default = {
subject = 'See the [[
.. '
.. ' The page may still be edited but cannot be moved'
.. ' until unprotected. Please discuss any suggested moves on the'
.. ' ${TALKPAGE} or at [[
.. ' [[
.. ' unprotected.',
default = 'See the [[
.. '
.. ' The page may still be edited but cannot be moved'
.. ' until unprotected. Please discuss any suggested moves at'
.. ' [[
.. ' [[
.. ' unprotected.'
}
السطر 513 ⟵ 490:
autoreview = {
default = {
reviewer = 'See the [[
.. '
.. ' Edits to this ${PAGETYPE} will not be visible to readers'
.. ' until they are accepted by a reviewer or an administrator.'
السطر 522 ⟵ 499:
.. '|request unprotection]]. Experienced editors may also'
.. ' request the [[Wikipedia:Reviewing|reviewer user right]].',
default = 'See the [[
.. '
.. ' Edits to this ${PAGETYPE} by new and unregistered users'
.. ' will not be visible to readers until they are accepted by'
السطر 533 ⟵ 510:
.. ' [[Special:UserLogin/signup|create an account]].'
},
}
},
السطر 554 ⟵ 519:
-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which
-- produces a short label for different protection levels. It is sorted by
-- protection action and
-- order:
-- 1. page's protection action, page's protection level
السطر 561 ⟵ 526:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move,
protectionLevels = {
edit = {
default = 'protected',
templateeditor = 'template-protected',
autoconfirmed = 'semi-protected',
},
السطر 573 ⟵ 537:
},
autoreview = {
}
},
السطر 593 ⟵ 554:
default = 'Padlock.svg',
templateeditor = 'Padlock-pink.svg',
autoconfirmed = 'Padlock-silver.svg'
},
السطر 602 ⟵ 562:
autoconfirmed = 'Padlock-silver-light.svg',
default = 'Padlock-orange.svg'
}
},
السطر 626 ⟵ 583:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move,
imageLinks = {
edit = {
default = '
templateeditor = '
autoconfirmed = 'Wikipedia:Protection policy#semi'
},
move = {
default = '
},
autoreview = {
autoconfirmed = '
reviewer = '
}
},
السطر 751 ⟵ 704:
[828] = 'module',
},
protectionCategories = {
['all|all|all|all|all'] = '
['all|all|office|all|all'] = '
['all|all|reset|all|all'] = '
['all|all|dmca|all|all'] = '
['all|all|mainpage|all|all'] =
['all|
['all|all|
['
['all|all|
['
['all|all|
['
['all|all|
['all|category|all
['all|file|all
['all|
['all|
['all|
['all|
['all|
['all|all|blp|sysop|edit'] = 'Wikisource indefinitely protected biographies of living people',
['
['all
['all|all|
['
['all|category|all
['all|
['all|
['all|
['all|
['all|
['all|
['all|
['all|
['
['all|all|dispute|sysop|move'] = 'Wikisource pages move-protected due to dispute',
['all
['all|
['
['all|
['all|
['all|
['all|
['all|all|all|autoconfirmed|autoreview'] = '
['all|
▲ ['all|all|all|autoconfirmed|autoreview'] ='Wikipedia pending changes protected pages (level 1)',
},
السطر 824 ⟵ 771:
edit = nil,
move = false,
autoreview = true
},
السطر 872 ⟵ 818:
filemover = {'sysop'},
templateeditor = {'sysop'},
▲ autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'},
user = {'autoconfirmed'},
['*'] = {'user'}
السطر 892 ⟵ 837:
--
-- When a user calls one of these wrapper templates, they will use the
-- default arguments automatically.
--
wrappers = {
['Template:Pp'] = {},
['Template:Pp-blp'] = {'blp'},
-- we don't need Template:Pp-create
['Template:Pp-dispute'] = {'dispute'},
['Template:Pp-main-page'] = {'mainpage'},
['Template:Pp-move'] = {action = 'move'},
['Template:Pp-move-dispute'] = {'dispute', action = 'move'},
السطر 910 ⟵ 854:
['Template:Pp-pc2'] = {action = 'autoreview', small = true},
['Template:Pp-reset'] = {'reset'},
['Template:Pp-semi-indef'] = {expiry = 'indef', small = true},
['Template:Pp-sock'] = {'sock'},
['Template:Pp-template'] = {'template', small = true},
['Template:Pp-usertalk'] = {'usertalk'},
['Template:Pp-vandalism'] = {'vandalism'},
السطر 960 ⟵ 903:
-- in the MediaWiki namespace.
-- It is possible to use banner parameters in this message.
['explanation-blurb-nounprotect'] = 'See the [[
.. '
.. ' Please discuss any changes on the ${TALKPAGE}; you'
.. ' may ${EDITREQUEST} to ask an'
.. ' [[
.. ' is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by [[Wikipedia:Consensus'
السطر 1٬020 ⟵ 963:
-- These messages determine which tracking categories the module outputs.
['tracking-category-incorrect'] = '
['tracking-category-
['tracking-category-template'] = 'Wikisource template-protected pages other than templates and modules',
--------------------------------------------------------------------------------
السطر 1٬028 ⟵ 972:
-- These are images that are not defined by their protection action and protection level.
['image-filename-indef'] = 'Padlock-red.svg',
['image-filename-default'] = 'Transparent.gif',
|