Module:Protection banner/config: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add support for upload protection
(replace red with gold, per changes on policy page)
(add support for upload protection)
Line 132:
-- The default banner data. This holds banner data for different protection
-- levels.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
defaultBanners = {
edit = {},
Line 147:
.. ' subject to review',
}
},
upload = {}
},
 
Line 158 ⟶ 159:
-- module documentation.
--
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
banners = {
edit = {
Line 367 ⟶ 368:
}
},
autoreview = {},
upload = {}
},
 
Line 388 ⟶ 390:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
protectionBlurbs = {
edit = {
Line 411 ⟶ 413:
.. ' [[Wikipedia:Administrators|administrators]] are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]'
},
upload = {
default = 'Uploading new versions of this ${PAGETYPE} is currently disabled'
}
},
Line 430 ⟶ 435:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
explanationBlurbs = {
edit = {
Line 510 ⟶ 515:
.. ' [[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.'
}
}
},
Line 519 ⟶ 536:
-- 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 protecitonprotection level, and is checked in the following
-- order:
-- 1. page's protection action, page's protection level
Line 526 ⟶ 543:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
protectionLevels = {
edit = {
Line 537 ⟶ 554:
},
autoreview = {
},
upload = {
default = 'upload-protected'
}
},
Line 562 ⟶ 582:
autoconfirmed = 'Padlock-silver-light.svg',
default = 'Padlock-orange.svg'
},
upload = {
default = 'Padlock-purple.svg'
}
},
Line 583 ⟶ 606:
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and autoreviewupload subtables.
imageLinks = {
edit = {
Line 596 ⟶ 619:
autoconfirmed = 'Wikipedia:Protection policy#pc1',
reviewer = 'Wikipedia:Protection policy#pc2'
},
upload = {
default = 'Wikipedia:Protection policy#upload'
}
},
Line 753 ⟶ 779:
['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',
},
 
Line 773 ⟶ 800:
edit = nil,
move = false,
autoreview = true,
upload = false
},
 
Line 839 ⟶ 867:
--
-- When a user calls one of these wrapper templates, they will use the
-- default arguments automatically. TheHowever, argumentsusers cannotcan beoverride overwrittenany byof the
-- userarguments.
wrappers = {
['Template:Pp'] = {},
Line 859 ⟶ 887:
['Template:Pp-sock'] = {'sock'},
['Template:Pp-template'] = {'template', small = true},
['Template:Pp-upload'] = {action = 'upload'},
['Template:Pp-usertalk'] = {'usertalk'},
['Template:Pp-vandalism'] = {'vandalism'},
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu