Diffusion extension-ProtectionIndicator (master)
README.md
README.md
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 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-<cascading>-<flaggedrevs>-<level>-<action>``.)
- 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
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits