Editing Module:Protection banner/config

From MINR.ORG WIKI

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 129: Line 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, autoreview and upload subtables.
+
-- *required* - this table needs edit, move, and autoreview subtables.
 
defaultBanners = {
 
defaultBanners = {
 
edit = {},
 
edit = {},
Line 145: Line 145:
 
image = 'Padlock-orange.svg'
 
image = 'Padlock-orange.svg'
 
}
 
}
},
+
}
upload = {}
 
 
},
 
},
  
Line 157: Line 156:
 
-- module documentation.
 
-- module documentation.
 
--
 
--
-- *required* - this table needs edit, move, autoreview and upload subtables.
+
-- *required* - this table needs edit, move, and autoreview subtables.
 
banners = {
 
banners = {
 
edit = {
 
edit = {
Line 373: Line 372:
 
}
 
}
 
},
 
},
autoreview = {},
+
autoreview = {}
upload = {}
 
 
},
 
},
  
Line 395: Line 393:
 
--
 
--
 
-- 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, autoreview and upload subtables.
+
-- *required* - this table needs edit, move, and autoreview subtables.
 
protectionBlurbs = {
 
protectionBlurbs = {
 
edit = {
 
edit = {
Line 421: Line 419:
 
.. ' [[Wikipedia:Administrators|administrators]] are currently'
 
.. ' [[Wikipedia:Administrators|administrators]] 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'
 
 
}
 
}
 
},
 
},
Line 443: Line 438:
 
--
 
--
 
-- 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, autoreview and upload subtables.
+
-- *required* - this table needs edit, move, and autoreview subtables.
 
explanationBlurbs = {
 
explanationBlurbs = {
 
edit = {
 
edit = {
Line 533: Line 528:
 
.. ' [[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.'
 
}
 
 
}
 
}
 
},
 
},
Line 554: Line 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 protection level, and is checked in the following
+
-- protection action and proteciton 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
Line 561: Line 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, autoreview and upload subtables.
+
-- *required* - this table needs edit, move, and autoreview subtables.
 
protectionLevels = {
 
protectionLevels = {
 
edit = {
 
edit = {
Line 573: Line 556:
 
},
 
},
 
autoreview = {
 
autoreview = {
},
 
upload = {
 
default = 'upload-protected'
 
 
}
 
}
 
},
 
},
Line 602: Line 582:
 
autoconfirmed = 'Padlock-silver-light.svg',
 
autoconfirmed = 'Padlock-silver-light.svg',
 
default = 'Padlock-orange.svg'
 
default = 'Padlock-orange.svg'
},
 
upload = {
 
default = 'Padlock-purple.svg'
 
 
}
 
}
 
},
 
},
Line 626: Line 603:
 
--
 
--
 
-- 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, autoreview and upload subtables.
+
-- *required* - this table needs edit, move, and autoreview subtables.
 
imageLinks = {
 
imageLinks = {
 
edit = {
 
edit = {
Line 640: Line 617:
 
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'
 
 
}
 
}
 
},
 
},
Line 802: Line 776:
 
['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages (level 1)',
 
['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|all|all|reviewer|autoreview']      = 'Wikipedia pending changes protected pages (level 2)',
['all|file|all|all|upload']              = 'Wikipedia upload-protected files',
 
 
},
 
},
  
Line 823: Line 796:
 
edit = nil,
 
edit = nil,
 
move = false,
 
move = false,
autoreview = true,
+
autoreview = true
upload = false
 
 
},
 
},
  
Line 891: Line 863:
 
--
 
--
 
-- 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. However, users can override any of the
+
-- default arguments automatically. The arguments cannot be overwritten by the
-- arguments.
+
-- user.
 
wrappers = {
 
wrappers = {
 
['Template:Pp']                        = {},
 
['Template:Pp']                        = {},
Line 912: Line 884:
 
['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'},

Please note that all contributions to MINR.ORG WIKI may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see MINR.ORG WIKI:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)