Jump to content

Extension:RestrictUserPageCreation

From mediawiki.org
MediaWiki extensions manual
RestrictUserPageCreation
Release status: stable
Implementation User interface, Skin
Description A MediaWiki extension that prevents users from creating user pages unless they have a specified number of edits.
Author(s) Derf Jaggedtalk
Latest version 1.0 (2025-6-1)
MediaWiki 1.35+
PHP 5.5+
Database changes No
Licence MIT License
Download

RestrictUserPageCreation is a MediaWiki extension that prevents users from creating user pages unless they have a specified number of edits. If Moderation is installed, only approved edits are counted.

For reporting an issue or a bug, please open a GitHub issue.

Installation

[edit]

Requires Mediawiki 1.35 or higher.

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

Configuration

[edit]

Add the following setting to LocalSettings.php with the desired threshold. By default, the threshold is set to 2.

$wgRestrictUserPageCreationEditThreshold = 2;

Example

[edit]

The following message is displayed if a user tries to create a User page but does not meet the threshold.

See also

[edit]