Module:Protection banner: Difference between revisions
beautify the categories table
(add a p.renderImageLink function so that we can share image generation code between the padlock and the banner) |
(beautify the categories table) |
||
Line 9: | Line 9: | ||
-- The key strings follow this format: | -- The key strings follow this format: | ||
-- type, level, ns, reason, expiry | -- type, level, ns, reason, expiry | ||
['edit-autoconfirmed- | ['all-all-all-all-all'] = 'Wikipedia protected pages', | ||
['edit-autoconfirmed- | ['all-all-all-office-all'] = 'Wikipedia Office-protected pages', | ||
['edit-autoconfirmed- | ['edit-all-template-all-all'] = 'Wikipedia protected templates', | ||
['edit-autoconfirmed- | ['edit-autoconfirmed-all-all-all'] = 'Wikipedia semi-protected pages', | ||
['edit-autoconfirmed- | ['edit-autoconfirmed-all-all-indef'] = 'Wikipedia indefinitely semi-protected pages', | ||
['edit-autoconfirmed- | ['edit-autoconfirmed-all-blp-all'] = 'Wikipedia indefinitely semi-protected biographies of living people', | ||
['edit-autoconfirmed-all-blp-temp'] = 'Wikipedia temporarily semi-protected biographies of living people', | |||
['edit-autoconfirmed-all-dispute-all'] = 'Wikipedia pages semi-protected due to dispute', | |||
['edit-autoconfirmed-all-sock-all'] = 'Wikipedia pages semi-protected from banned users', | |||
['edit-autoconfirmed-all-vandalism-all'] = 'Wikipedia pages semi-protected against vandalism', | ['edit-autoconfirmed-all-vandalism-all'] = 'Wikipedia pages semi-protected against vandalism', | ||
['edit- | ['edit-autoconfirmed-category-all-all'] = 'Wikipedia semi-protected categories', | ||
['edit- | ['edit-autoconfirmed-file-all-all'] = 'Semi-protected images', | ||
['edit- | ['edit-autoconfirmed-portal-all-all'] = 'Semi-protected portals', | ||
['edit- | ['edit-autoconfirmed-project-all-all'] = 'Semi-protected project pages', | ||
['edit- | ['edit-autoconfirmed-talk-all-all'] = 'Semi-protected talk pages', | ||
['edit- | ['edit-autoconfirmed-template-all-all'] = 'Wikipedia semi-protected templates', | ||
['edit-autoconfirmed-all | ['edit-autoconfirmed-template-all-all'] = 'Wikipedia semi-protected templates', | ||
['edit- | ['edit-autoconfirmed-user-all-all'] = 'Wikipedia semi-protected user and user talk pages', | ||
[' | ['edit-sysop-all-blp-all'] = 'Wikipedia indefinitely protected biographies of living people', | ||
[' | ['edit-sysop-all-blp-temp'] = 'Wikipedia temporarily protected biographies of living people', | ||
[' | ['edit-sysop-all-dispute-all'] = 'Wikipedia pages protected due to dispute', | ||
[' | ['edit-sysop-all-sock-all'] = 'Wikipedia pages protected from banned users', | ||
[' | ['edit-sysop-all-vandalism-all'] = 'Wikipedia pages protected against vandalism', | ||
['edit- | ['edit-sysop-category-all-all'] = 'Wikipedia protected categories', | ||
[' | ['edit-sysop-file-all-all'] = 'Protected images', | ||
['edit- | ['edit-sysop-project-all-all'] = 'Protected project pages', | ||
[' | ['edit-sysop-talk-all-all'] = 'Protected talk pages', | ||
['edit- | ['edit-sysop-template-all-all'] = 'Wikipedia protected templates', | ||
['edit-sysop-all | ['edit-sysop-user-all-all'] = 'Wikipedia protected user and user talk pages', | ||
[' | ['move-sysop-all-all-all'] = 'Wikipedia move-protected pages', | ||
[' | ['move-sysop-all-all-indef'] = 'Wikipedia indefinitely move-protected pages', | ||
['move-sysop-all-dispute-all'] = 'Wikipedia pages move-protected due to dispute', | |||
[' | ['move-sysop-all-vandalism-all'] = 'Wikipedia pages move-protected due to vandalism', | ||
[' | ['move-sysop-portal-all-all'] = 'Wikipedia move-protected portals', | ||
[' | ['move-sysop-portal-all-all'] = 'Wikipedia move-protected portals', | ||
[' | ['move-sysop-project-all-all'] = 'Wikipedia move-protected project pages', | ||
['move-sysop- | ['move-sysop-talk-all-all'] = 'Wikipedia move-protected talk pages', | ||
['move-sysop-all-all | ['move-sysop-template-all-all'] = 'Wikipedia move-protected templates', | ||
[' | ['move-sysop-user-all-all'] = 'Wikipedia move-protected user and user talk pages', | ||
['move-sysop- | ['pc-autoconfirmed-all-all-all'] = 'Wikipedia pending changes protected pages (level 1)', | ||
['pc-autoconfirmed-all-all-all'] = 'Wikipedia pending changes protected pages (level 1)', | ['pc-reviewer-all-all-all'] = 'Wikipedia pending changes protected pages (level 2)', | ||
['pc-reviewer-all-all-all'] = 'Wikipedia pending changes protected pages (level 2) | |||
} | } | ||