Extension:CockLock

The CockLock extension displays an icon indicator on edit-protected pages with the icon varying depending on the page's restriction level (semi-protection/full protection).

It was written by Jack Phoenix for Uncyclopedia in response to the Uncyclopedia Community Wishlist Survey of 2022.

Installation

 * 1) Download and place the files in a directory called   in your   folder.
 * 2) Add the following code at the bottom of your LocalSettings.php file:
 * 3) ✅ – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Customizing the lock images
By default, if no custom locks are configured, will be used.

To customize, upload the desired images as:
 * CockLock icon semiprotected.svg
 * CockLock icon fully protected.svg

Only .svg icons are supported (as of extension version 1.3.1). The normal size in which the image will be rendered is 20 pixels. HiDPI is supported.

Help page
The CockLock images link to the page specified in MediaWiki:Cocklock-help-page, which by default is Project:Protected page, but you'll want to change that if your wiki has information about what a protected page is and why pages are protected etc. at a different location.

Internationalization
As of October 2023, CockLock is available in the following languages:


 * English (en)
 * Finnish (fi)

More languages are more than welcome! Contact me on my MediaWiki.org talk page to submit a translation.