Jump to content

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


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