Extension:ProtectSite

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MediaWiki extensions manual
ProtectSite
Release status: stable
File:ProtectSite MediaWiki extension.png
Implementation Special page
Description Allows a site administrator to temporarily block various site modifications
Author(s) Eric Johnston
Chris Stafford
Jack Phoenix
Latest version 0.5.0 (2016-12-05)
MediaWiki 1.39+
Database changes No
License GNU General Public License 2.0 or later
Download

  • $wgProtectSiteLimit
  • $wgProtectSiteDefaultTimeout
  • $wgProtectSiteExempt
protectsite
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the ProtectSite extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

ProtectSite extension adds a new special page, Special:ProtectSite, where users with the protectsite user right can block various site modifications.

The extension will show up in the protection log (Special:Log/protect) as a protection of Special:AllPages.

When the extension is enabled, it will override the default settings that may already be defined for the timeout period specified.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/ProtectSite</tvar>|Download]] and move the extracted <tvar name=name>ProtectSite</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ProtectSite
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'ProtectSite' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

User rights

By default the bureaucrat group has the protectsite right, which is required to access the special page.

Parameters

  • $wgProtectSiteLimit — maximum time allowed for protection of the site
  • $wgProtectSiteDefaultTimeout — default timeout, 1 hour by default
  • $wgProtectSiteExempt — array of non-sysop user groups to be not affected by rights changes