# mediawiki-extensions-ProtectionIndicator **Repository Path**: mirrors_wikimedia/mediawiki-extensions-ProtectionIndicator ## Basic Information - **Project Name**: mediawiki-extensions-ProtectionIndicator - **Description**: Github mirror of MediaWiki extension ProtectionIndicator - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing) - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ProtectionIndicator ProtectionIndicator is a personal project of mine where I try and create an extension over the span of a week, that adds a protection icon to each and every protected page. By default, it only adds a black OOUI lock icon with a popup that explaining why the lock icon is there. **Note:** This extension is based on extension BoilerPlate. The authorship of most of the testing and linting rules are not mine but rather are the result of the contributions of volunteers of the Wikimedia movement. Please refer to [the commit log of the BoilerPlate extension](https://github.com/wikimedia/mediawiki-extensions-BoilerPlate) for attribution. ## Installation/Testing * Git clone this repository into the ```extensions/``` directory of your mediawiki installation. * Add ```wfLoadExtension( 'ProtectionIndicator' );``` to your ```LocalSettings.php``` file. * Navigate to a protected page on your wiki and check if the icons work. * Add css to ```MediaWiki:ProtectionIndicatorCustom.css``` to customise the lock icons per your taste. (The class names for the icons go like ```protectionindicator----```.) ## Configurational variables * ```$wgShowIconsOnMainPage``` Set to be false by default. * ```$wgShowLogInPopup``` Set to true by default. ## Development * Install mediawiki-docker-dev and get an instance running * Follow the instructions for installation. * Start modifying the files :) ## See Also * [Extension page on MediaWiki](https://www.mediawiki.org/wiki/Extension:ProtectionIndicator)