Extension:StaffPowers

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
StaffPowers

Release status:Extension status stable

ImplementationTemplate:Extension#type User rights
DescriptionTemplate:Extension#description Applies staff powers, like unblockableness, superhuman strength and general awesomeness to select users.
Author(s)Template:Extension#username Łukasz Garczewski
Jack Phoenix
Mainframe98
Latest versionTemplate:Extension#version 1.4 (2017-02-24; 7 months ago (2017-02-24))
MediaWikiTemplate:Extension#mediawiki 1.29+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example ShoutWiki
ParametersTemplate:Extension#parameters

$StaffPowersStewardGroupName, $StaffPowersShoutWikiMessages

Added rightsTemplate:Extension#rights

unblockable

Hooks usedTemplate:Extension#hook
BlockIpManual:Hooks/BlockIp

Translate the StaffPowers extension if it is available at translatewiki.net

Check usage and version matrix.

The StaffPowers extension applies staff powers, like unblockableness, superhuman strength and general awesomeness to select users.

Users who have the unblockable user right cannot be blocked by other users. Additionally, users who belong to the user group specified in $wgStaffPowersStewardGroupName cannot be blocked, except by users who have the unblockable user right. This right is assigned to the staff user group by default.

Installation[edit]

  • Download and place the file(s) in a directory called StaffPowers in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'StaffPowers' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

This extension introduces two new global variables, $wgStaffPowersShoutWikiMessages and $wgStaffPowersStewardGroupName.

  • $wgStaffPowersShoutWikiMessages determines if ShoutWiki specific messages should be shown. This is true by default.
  • $wgStaffPowersStewardGroupName determines which group should be considered unblockable by all except those with the unblockable right. It is set to steward by default. To disable this function, set it to false, NULL or an empty string.