Jump to content

Module:Protection banner/config: Difference between revisions

use pipes as separators instead of hyphens for the protection category keys - this is to help prevent the module being confused if users specify reasons with hyphens in them
(fix parameter names for the banner data functions)
(use pipes as separators instead of hyphens for the protection category keys - this is to help prevent the module being confused if users specify reasons with hyphens in them)
Line 494: Line 494:


protectionCategories = {
protectionCategories = {
['all-all-all-all-all']                  = 'Wikipedia protected pages',
['all|all|all|all|all']                  = 'Wikipedia protected pages',
['all-all-office-all-all']              = 'Wikipedia Office-protected pages',
['all|all|office|all|all']              = 'Wikipedia Office-protected pages',
['all-all-reset-all-all']                = 'Wikipedia Office-protected pages',
['all|all|reset|all|all']                = 'Wikipedia Office-protected pages',
['all-all-dmca-all-all']                = 'Wikipedia Office-protected pages',
['all|all|dmca|all|all']                = 'Wikipedia Office-protected pages',
['all-all-mainpage-all-all']            = 'Protected main page images',
['all|all|mainpage|all|all']            = 'Protected main page images',
['all-template-all-all-edit']            = 'Wikipedia protected templates',
['all|template|all|all|edit']            = 'Wikipedia protected templates',
['all-all-all-autoconfirmed-edit']      = 'Wikipedia semi-protected pages',
['all|all|all|autoconfirmed|edit']      = 'Wikipedia semi-protected pages',
['indef-all-all-autoconfirmed-edit']    = 'Wikipedia indefinitely semi-protected pages',
['indef|all|all|autoconfirmed|edit']    = 'Wikipedia indefinitely semi-protected pages',
['all-all-blp-autoconfirmed-edit']      = 'Wikipedia indefinitely semi-protected biographies of living people',
['all|all|blp|autoconfirmed|edit']      = 'Wikipedia indefinitely semi-protected biographies of living people',
['temp-all-blp-autoconfirmed-edit']      = 'Wikipedia temporarily semi-protected biographies of living people',
['temp|all|blp|autoconfirmed|edit']      = 'Wikipedia temporarily semi-protected biographies of living people',
['all-all-dispute-autoconfirmed-edit']  = 'Wikipedia pages semi-protected due to dispute',
['all|all|dispute|autoconfirmed|edit']  = 'Wikipedia pages semi-protected due to dispute',
['all-all-sock-autoconfirmed-edit']      = 'Wikipedia pages semi-protected from banned users',
['all|all|sock|autoconfirmed|edit']      = 'Wikipedia pages semi-protected from banned users',
['all-all-vandalism-autoconfirmed-edit'] = 'Wikipedia pages semi-protected against vandalism',
['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism',
['all-category-all-autoconfirmed-edit']  = 'Wikipedia semi-protected categories',
['all|category|all|autoconfirmed|edit']  = 'Wikipedia semi-protected categories',
['all-file-all-autoconfirmed-edit']      = 'Semi-protected images',
['all|file|all|autoconfirmed|edit']      = 'Semi-protected images',
['all-portal-all-autoconfirmed-edit']    = 'Semi-protected portals',
['all|portal|all|autoconfirmed|edit']    = 'Semi-protected portals',
['all-project-all-autoconfirmed-edit']  = 'Semi-protected project pages',
['all|project|all|autoconfirmed|edit']  = 'Semi-protected project pages',
['all-talk-all-autoconfirmed-edit']      = 'Semi-protected talk pages',
['all|talk|all|autoconfirmed|edit']      = 'Semi-protected talk pages',
['all-template-all-autoconfirmed-edit']  = 'Wikipedia semi-protected templates',
['all|template|all|autoconfirmed|edit']  = 'Wikipedia semi-protected templates',
['all-template-all-autoconfirmed-edit']  = 'Wikipedia semi-protected templates',
['all|template|all|autoconfirmed|edit']  = 'Wikipedia semi-protected templates',
['all-user-all-autoconfirmed-edit']      = 'Wikipedia semi-protected user and user talk pages',
['all|user|all|autoconfirmed|edit']      = 'Wikipedia semi-protected user and user talk pages',
['all-all-blp-sysop-edit']              = 'Wikipedia indefinitely protected biographies of living people',
['all|all|blp|sysop|edit']              = 'Wikipedia indefinitely protected biographies of living people',
['temp-all-blp-sysop-edit']              = 'Wikipedia temporarily protected biographies of living people',
['temp|all|blp|sysop|edit']              = 'Wikipedia temporarily protected biographies of living people',
['all-all-dispute-sysop-edit']          = 'Wikipedia pages protected due to dispute',
['all|all|dispute|sysop|edit']          = 'Wikipedia pages protected due to dispute',
['all-all-sock-sysop-edit']              = 'Wikipedia pages protected from banned users',
['all|all|sock|sysop|edit']              = 'Wikipedia pages protected from banned users',
['all-all-vandalism-sysop-edit']        = 'Wikipedia pages protected against vandalism',
['all|all|vandalism|sysop|edit']        = 'Wikipedia pages protected against vandalism',
['all-category-all-sysop-edit']          = 'Wikipedia protected categories',
['all|category|all|sysop|edit']          = 'Wikipedia protected categories',
['all-file-all-sysop-edit']              = 'Protected images',
['all|file|all|sysop|edit']              = 'Protected images',
['all-project-all-sysop-edit']          = 'Protected project pages',
['all|project|all|sysop|edit']          = 'Protected project pages',
['all-talk-all-sysop-edit']              = 'Protected talk pages',
['all|talk|all|sysop|edit']              = 'Protected talk pages',
['all-template-all-sysop-edit']          = 'Wikipedia protected templates',
['all|template|all|sysop|edit']          = 'Wikipedia protected templates',
['all-user-all-sysop-edit']              = 'Wikipedia protected user and user talk pages',
['all|user|all|sysop|edit']              = 'Wikipedia protected user and user talk pages',
['all-all-all-sysop-move']              = 'Wikipedia move-protected pages',
['all|all|all|sysop|move']              = 'Wikipedia move-protected pages',
['indef-all-all-sysop-move']            = 'Wikipedia indefinitely move-protected pages',
['indef|all|all|sysop|move']            = 'Wikipedia indefinitely move-protected pages',
['all-all-dispute-sysop-move']          = 'Wikipedia pages move-protected due to dispute',
['all|all|dispute|sysop|move']          = 'Wikipedia pages move-protected due to dispute',
['all-all-vandalism-sysop-move']        = 'Wikipedia pages move-protected due to vandalism',
['all|all|vandalism|sysop|move']        = 'Wikipedia pages move-protected due to vandalism',
['all-portal-all-sysop-move']            = 'Wikipedia move-protected portals',
['all|portal|all|sysop|move']            = 'Wikipedia move-protected portals',
['all-portal-all-sysop-move']            = 'Wikipedia move-protected portals',
['all|portal|all|sysop|move']            = 'Wikipedia move-protected portals',
['all-project-all-sysop-move']          = 'Wikipedia move-protected project pages',
['all|project|all|sysop|move']          = 'Wikipedia move-protected project pages',
['all-talk-all-sysop-move']              = 'Wikipedia move-protected talk pages',
['all|talk|all|sysop|move']              = 'Wikipedia move-protected talk pages',
['all-template-all-sysop-move']          = 'Wikipedia move-protected templates',
['all|template|all|sysop|move']          = 'Wikipedia move-protected templates',
['all-user-all-sysop-move']              = 'Wikipedia move-protected user and user talk pages',
['all|user|all|sysop|move']              = 'Wikipedia move-protected user and user talk pages',
['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)',
},
},


Cookies help us deliver our services. By using our services, you agree to our use of cookies.