Extension:NewUserMessage
From MediaWiki.org
|
NewUserMessage Release status: stable |
|||
|---|---|---|---|
| Implementation | User activity | ||
| Description | Add a message to newly created user's talk pages | ||
| Author(s) | Nad, Siebrand | ||
| Last Version | 2.0 (2008-08-07) | ||
| MediaWiki | 1.11+ | ||
| License | GPL | ||
| Download | Download snapshot |
||
|
|||
Usually after a new user registers on a MediaWiki, the message in MediaWiki:Welcomecreation is displayed. This extensions allows a message in a specified template to be added into the new users talk page instead.
Contents |
[edit] Installation
Download the latest snapshot and extract it to your extensions directory. Then include it in your LocalSettings.php file as in the following example.
include("$IP/extensions/NewUserMessage/NewUserMessage.php");
[edit] Usage
[edit] Global variables
There are some global variables which affect the operation of the extension. These should be set in your LocalSettings file after the include of the NewUserMessage.php script.
| Variable | Default value | Meaning |
|---|---|---|
| $wgNewUserSuppressRC | false | Specify whether or not the new user message creation should show up in recent changes |
| $wgNewUserMinorEdit | true | Should the new user message creation be a minor edit? |
[edit] In-wiki configuration
Other settings of the extension can be made in the MediaWiki: namespace.
| Variable | Default value | Meaning |
|---|---|---|
| MediaWiki:Newusermessage-template | Template:Welcome | Specify a template to wrap the new user message within |
| MediaWiki:Newuseredit-summary | Adding [[welcome message]] to new user's talk page | Edit summary for the recent changes entry of a new users message. Always in content language. |
| MediaWiki:Newusermessage-editor | MediaWiki default | Set the username of the user that makes the edit on user talk pages. If this user does not exist, "MediaWiki default" will show up as editing user. |
| MediaWiki:Newusermessage-signatures | None | Optional feature. if it exists and contains a list of user names (* signature newline * etc...), these user names will be added after the template (randomly) along with the date & time. |
[edit] Example NewUserMessage page
A very simple example of the page you should create as Template:Welcome:
== Hello {{{1}}} ==
Welcome to our Wiki
[edit] Code
The code for this extension was imported into the MediaWiki subversion repository on 2008-02-10, so please download from SVN.
[edit] See also
- Extension:Newuserlog - a related extension used for logging creation of new user accounts
This extension is being used on one or more of Wikimedia's wikis. It means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki is produced by Special:Version on that wiki.

