Extension:NewUserMessage/en
NewUserMessage Release status: stable |
|
---|---|
Implementation | User activity , Hook |
Description | Add a message to newly created user's talk pages |
Author(s) | |
Latest version | 3.6.0 (2016-10-31) |
MediaWiki | 1.36+ |
PHP | 7.3+ |
Database changes | No |
License | No license specified |
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 NewUserMessage extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The NewUserMessage extension adds a message to the talk pages of newly created wiki accounts.
Usually after a new user registers on a wiki powered by MediaWiki, the message in MediaWiki:Welcomecreation is displayed. This extension allows a message in a specified template to be added into the new user's talk page instead.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/NewUserMessage/en</tvar>|Download]] and move the extracted <tvar name=name>
NewUserMessage/en
</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/NewUserMessage%2Fen - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'NewUserMessage/en' );
- Configure as required
- 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>
Configuration
Global variables
There are some global variables which affect the operation of the extension. These should be set in your LocalSettings file after the require_once 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. If set to true , those edits won't be displayed even if "show bot edits" is selected on RecentChanges or Watchlist.
|
$wgNewUserMinorEdit
|
true
|
Should the new user message creation be a minor edit? |
$wgNewUserMessageOnAutoCreate
|
false
|
Should auto creation (CentralAuth) trigger a new user message? |
In-wiki configuration
Other settings of the extension can be made in the MediaWiki: namespace.
Page title | Default value | Meaning |
---|---|---|
MediaWiki:Newusermessage-template
|
Template:Welcome
|
Specify a template to wrap the new user message within. You can create translations (e.g. MediaWiki:Newusermessage-template/es ) that will be used when the registered user has set a different interface language on registration (this is possible through &uselang parameter or more easily through login language links). Used as a fallback when MediaWiki:Newusermessage-template-body is not set.
|
MediaWiki:Newusermessage-template-subject
|
Template:Welcome-subject
|
Specify a template to wrap the new user message thread subject within. Always preprocessed and substituted by the parser. |
MediaWiki:Newusermessage-template-body
|
Template:Welcome-body
|
Specify a template to wrap the new user message thread body within. |
MediaWiki:Newuseredit-summary
|
Adding [[Template:Welcome|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
|
New user message
|
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. The user set here is marked as reserved and won't be able to login! |
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 and time. |
MediaWiki:Newusermessage-substitute
|
none | Optional feature. If the page exists and contains any text (but spaces or a single dash ("-")), the welcome template will be substituted in the talk page. |
Note that these items are articles, to edit them go to the article in your browser and edit the text accordingly.
Example NewUserMessage page
A very simple example of the page you should create as Template:Welcome:
== Welcome to our Wiki ==
Hello {{{name}}} ...
- Template parameters
|name=
- User name|realName=
- Real name (can be empty)
See also
- Extension:Create User Page - checks on login whether the user has a user page and, if not, creates it.
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
File:OOjs UI icon information-progressive.svg |
- Pages with script errors
- Pages with broken file links
- Stable extensions/en
- User activity extensions/en
- Hook extensions/en
- Extensions with manual MediaWiki version
- Extensions with no license specified/en
- Extensions in Wikimedia version control/en
- All extensions/en
- Extensions not in ExtensionJson
- Extensions used on Wikimedia/en