Open main menu

Changes

Module:Protection banner

1,085 bytes added, 12:00, 2 March 2014
change category table scheme
-- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}.
local categories = {}-- The naming scheme is: protection type - protection level - namespace - reason {categories['edit-semi-user-all'] name = 'Wikipedia semi-protected user and user talk pages',categories[ type = 'edit', level = 'semi', ns = {[2] = true, [3] = true}, -semi-projectUser and user talk reason -'all'] }, { name = 'Semi-protected project pages',categories[ type = 'edit-', level = 'semi', ns = {[4] = true}, -file-Project reason = 'all'] }, { name = 'Semi-protected images',categories[ type = 'edit-', level = 'semi', ns = {[6] = true}, -template-File reason = 'all'] }, { name = 'Wikipedia semi-protected templates',categories[ type = 'edit-', level = 'semi', ns = {[10] = true}, -portal-Template reason = 'all'] }, { name = 'Semi-protected portals',categories[ type = 'edit-', level = 'semi', ns = {[100] = true}, -talk-Portal reason = 'all'] }, { name = 'Semi-protected talk pages',categories[ type = 'edit-', level = 'semi-other-vandalism'] , ns = 'talk', reason = 'all' }, { name = 'Wikipedia pages semi-protected against vandalism',categories[ type = 'edit-full-user-', level = 'semi', ns = 'all'] , reason = 'vandalism' }, { name = 'Wikipedia protected user and user talk pages',categories[ type = 'edit-', level = 'full', ns = {[2] = true, [3] = true}, -file-User and user talk reason = 'all'] }, { name = 'Protected images',categories[ type = 'edit-', level = 'full-project-', ns = 'file', reason = 'all'] }, { name = 'Protected project pages',categories[ type = 'edit-', level = 'full', ns = {[6] = true}, -template-File reason = 'all'] }, { name = 'Wikipedia protected templates',categories[ type = 'edit-', level = 'full', ns = {[10] = true}, -talk-Template reason = 'all'] }, { name = 'Protected talk pages',categories[ type = 'edit-', level = 'full-', ns = 'talk', reason = 'all-vandalism'] }, { name = 'Wikipedia pages protected against vandalism',categories[ type = 'edit-semi-', level = 'full', ns = 'all-dispute'] , reason = 'vandalism' }, { name = 'Wikipedia pages semi-protected due to dispute',categories[ type = 'edit-full-', level = 'semi', ns = 'all-', reason = 'dispute'] }, { name = 'Wikipedia pages protected due to dispute', type = 'edit',categories[ level = 'move-full-', ns = 'all-', reason = 'dispute'] }, { name = 'Wikipedia pages move-protected due to dispute',categories[ type = 'move-', level = 'full-user-', ns = 'all'] , reason = 'dispute' }, { name = 'Wikipedia move-protected user and user talk pages',categories[ type = 'move-', level = 'full', ns = {[2] = true, [3] = true}, -project-User and user talk reason = 'all'] }, { name = 'Wikipedia move-protected project pages',categories[ type = 'move-', level = 'full', ns = {[4] = true}, -portal-Project reason = 'all'] }, { name = 'Wikipedia move-protected portals', type = 'move', level = 'full', ns = {[100] = true}, -- Portal reason = 'all' },}
local error_categories = {
incorrect = 'Wikipedia pages with incorrect protection templates',
Anonymous user