Difference between revisions of "Module:Protection banner"

From BESA® Wiki
Jump to: navigation, search
m (fix missing equals)
(add some more categories)
Line 17: Line 17:
 
categories['edit-full-talk-all'] = 'Protected talk pages'
 
categories['edit-full-talk-all'] = 'Protected talk pages'
 
categories['edit-full-all-vandalism'] = 'Wikipedia pages protected against vandalism'
 
categories['edit-full-all-vandalism'] = 'Wikipedia pages protected against vandalism'
 +
categories['edit-semi-all-dispute'] = 'Wikipedia pages semi-protected due to dispute'
 +
categories['edit-full-all-dispute'] = 'Wikipedia pages protected due to dispute'
 +
categories['move-full-all-dispute'] = 'Wikipedia pages move-protected due to dispute'
 +
categories['move-full-user-all'] = 'Wikipedia move-protected user and user talk pages'
 +
categories['move-full-project-all'] = 'Wikipedia move-protected project pages'
 +
categories['move-full-portal-all'] = 'Wikipedia move-protected portals'
  
 
local error_categories = {
 
local error_categories = {

Revision as of 12:00, 25 February 2014

Documentation for this module may be created at Module:Protection banner/doc

Script error: Lua error: Internal error: The interpreter exited with status 126.

-- This module implements {{pp-meta}} and its daughter templates such as
-- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}.

local categories = {}
-- The naming scheme is: protection type - protection level - namespace - reason
categories['edit-semi-user-all'] = 'Wikipedia semi-protected user and user talk pages'
categories['edit-semi-project-all'] = 'Semi-protected project pages'
categories['edit-semi-file-all'] = 'Semi-protected images'
categories['edit-semi-template-all'] = 'Wikipedia semi-protected templates'
categories['edit-semi-portal-all'] = 'Semi-protected portals'
categories['edit-semi-talk-all'] = 'Semi-protected talk pages'
categories['edit-semi-other-vandalism'] = 'Wikipedia pages semi-protected against vandalism'
categories['edit-full-user-all'] = 'Wikipedia protected user and user talk pages'
categories['edit-full-file-all'] = 'Protected images'
categories['edit-full-project-all'] = 'Protected project pages'
categories['edit-full-template-all'] = 'Wikipedia protected templates'
categories['edit-full-talk-all'] = 'Protected talk pages'
categories['edit-full-all-vandalism'] = 'Wikipedia pages protected against vandalism'
categories['edit-semi-all-dispute'] = 'Wikipedia pages semi-protected due to dispute'
categories['edit-full-all-dispute'] = 'Wikipedia pages protected due to dispute'
categories['move-full-all-dispute'] = 'Wikipedia pages move-protected due to dispute'
categories['move-full-user-all'] = 'Wikipedia move-protected user and user talk pages'
categories['move-full-project-all'] = 'Wikipedia move-protected project pages'
categories['move-full-portal-all'] = 'Wikipedia move-protected portals'

local error_categories = {
	incorrect = 'Wikipedia pages with incorrect protection templates',
	no_expiry = 'Wikipedia protected pages without expiry'
}

local template_types = {
	vandalism = {
		namespaces = false, -- defaults to all namespaces
		editLevels = false, -- all edit protection levels
		moveLevels = false, -- all move protection levels
		createLevels = false, -- all create protection levels
		header = false,
		reason = 'due to [[Wikipedia:Vandalism|vandalism]]',
		icon_reason = 'due to vandalism',
	}
}