Extension:NoBogusUserpages

From Linux Web Expert

MediaWiki extensions manual
NoBogusUserpages
Release status: unmaintained
Implementation User rights
Description Allows only privileged users to create userpages for non-existent users.
Author(s) Daniel Friesen (Dantmantalk)
Latest version 1.1.1 (2017-01-27)
MediaWiki 1.25+
Database changes No
License GNU General Public License 2.0 or later
Download
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 NoBogusUserpages extension if it is available at translatewiki.net

The NoBogusUserpages extension implements a restriction that allows only privileged users to create userpages for non-existent users. With this extension installed, new page creation at the root level of the User: namespace is blocked unless the creator's username is the same as the desired page name or the user has been assigned the createbogususerpage right (see user rights below for how to do that). Without this extension, anyone with the right to create pages in the user namespace can create bogus pages for users who do not exist on the wiki.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/NoBogusUserpages</tvar>|Download]] and move the extracted <tvar name=name>NoBogusUserpages</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/NoBogusUserpages
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'NoBogusUserpages' );
    
  • 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

createbogususerpage

Allows users to create bogus userpages. By default this is given just to sysops.

$wgGroupPermissions['*']['createbogususerpage'] = false;
$wgGroupPermissions['sysop']['createbogususerpage'] = true;