Extension:Create User Page
Appearance
Create User Page Release status: stable |
|
---|---|
Implementation | User activity |
Description | The Create User Page extension checks on login whether the user has a user page and, if not, creates it. |
Author(s) | Cindy Cicalese (cindy.cicalesetalk) |
Latest version | 3.1.0 (2023-06-21) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
License | MIT License |
Download | |
|
|
Translate the Create User Page extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The Create User Page extension checks whether the user has a user page and, if not, creates it with the content as specified in $wgCreateUserPage_PageContent
.
The check is done when the user logs in if $wgCreateUserPage_OnLogin
is set to true
(the default), otherwise the check is done on every page load.
The user account to be used for user page creation can be set with $wgCreateUserPage_AutoCreateUser
which is by default the user itself for whom the page is being created.
Installation
- Download and move the extracted
CreateUserPage
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CreateUserPage - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'CreateUserPage' );
- Configure as required.
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
$wgCreateUserPage_PageContent
- The content to put on the user page when it is created. Defaults to
{{User}}
. $wgCreateUserPage_OnLogin
- Check for the existence of the user page whenever the user logs in if
true
. Iffalse
, check on every page load. Defaults totrue
. $wgCreateUserPage_AutoCreateUser
- Defines the user account that should be used to create the user's page. If unset the respective user will be attributed to the edit for whom the page is being created. Defaults to
null
(unset). $wgCreateUserPage_CreateRedirect
- In addition to creating the user page, if a page of the same name does not yet exist in the main namespace, create it as a redirect to the user page.
Version History
- Version 3.1.0
- add
$wgCreateUserPage_CreateRedirect
option to create redirect from main namespace to user page (T313132)
- Version 3.0
- Fix bug where user pages were being created for anonymous users
- Dropped support for MediaWiki 1.34-
- Version 2.0
- Added
$wgCreateUserPage_AutoCreateUser
- Version 1.2
- Added
$wgCreateUserPage_OnLogin
- Version 1.1.1
- Really corrected user page creation to use wikitext instead of text (affects MediaWiki 1.29+)
- Version 1.1
- Corrected user page creation to use wikitext instead of text (affects MediaWiki 1.29+)
- Version 1.0
- Initial version
See also
- Extension:NewUserMessage - adds a message to newly created user's talk pages
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |