Module:Protection banner/config: Difference between revisions

Content added Content deleted
Enwikipedia>Mr. Stradivarius
(Pp-template needs to be small by default)
Enwikipedia>Mr. Stradivarius
(templates shouldn't output a "needs expiry" category; also, update the comments)
Line 637: Line 637:
-- Expiry category config
-- Expiry category config
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

-- If any of the following reasons is passed to the module, it will not output
-- the "pages without expiry" tracking category.
reasonsWithoutExpiryCheck = {
blp = true,
},


-- This table configures the expiry category behaviour for each protection
-- This table configures the expiry category behaviour for each protection
Line 649: Line 643:
-- an expiry parameter is not set.
-- an expiry parameter is not set.
-- * If set to false, setting that action will never categorise the page.
-- * If set to false, setting that action will never categorise the page.
-- * If set to nil, the module will categorise the page if an expiry parameter
-- * If set to nil, the module will categorise the page if:
-- 1) an expiry parameter is not set, and
-- is not set, if a reason is provided, and if the specified reason is not
-- 2) a reason is provided, and
-- blacklisted in the reasonsWithoutExpiryCheck table.
-- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck
-- table.

expiryCheckActions = {
expiryCheckActions = {
edit = nil,
edit = nil,
move = false,
move = false,
autoreview = true
autoreview = true
},

reasonsWithoutExpiryCheck = {
blp = true,
template = true,
},
},