Extension:ProtectionIndicator

The ProtectionIndicator extension adds lock icons to the top left corner of the page based on the protection level of the page.

Configuration parameters

 * $wgShowIconsOnMainPage: Adds the icons to the top of the Main Page of the Wiki if it is protected. False by default.
 * $wgShowReasonInPopup: Adds the reason given by the protecting user to the popup. True by default.

CSS configuration
A particular file, MediaWiki:ProtectionIndicatorCustom.css is loaded by the extension while adding the icons. This file can be used to customize the icons. The css class names for the icons follow the format  and   for cascading protection. It can also be used to completely hide an icon from view.

Other stuff
A parser tag,  can be used to completely prevent icons from appearing on a particular page.

Testing/Development/Bug fixing

 * Clone the github repository into the extensions/ folder of a test MediaWiki installation (worked on mediawiki-docker-dev).
 * Add  to your LocalSettings.php file.
 * Test installation by navigating to a page which is protected.