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