Extension:CockLock

From mediawiki.org
MediaWiki extensions manual
CockLock
Release status: stable
Implementation User interface
Description Displays an icon indicator on edit-protected pages with the icon varying depending on the page's restriction level
Author(s) Jack Phoenix
Latest version 1.3.1 (2022-04-20)
MediaWiki 1.31+
License GNU General Public License 2.0 or later
Download Source code git repository
Example Uncyclopedia (specifically the top of any protected page)

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[edit]

  1. Download and place the files in a directory called CockLock in your extensions/ folder.
  2. Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'CockLock' );
    
  3. Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Customization[edit]

Customizing the lock images[edit]

By default, if no custom locks are configured, the Padlock.svg file from Wikimedia Commons 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[edit]

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[edit]

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.