Extension:NewUserMessage/fr
NewUserMessage État de la version : stable |
|
---|---|
Implémentation | Activité utilisateur , Accroche |
Description | Add a message to newly created user's talk pages |
Auteur(s) | |
Dernière version | 3.6.0 (2016-10-31) |
MediaWiki | 1.36+ |
PHP | 7.3+ |
Modifie la base de données |
Non |
Licence | Licence publique générale GNU v2.0 ou supérieur |
Téléchargement | |
|
|
Téléchargements trimestriels | 30 (Ranked 107th) |
Traduire l’extension NewUserMessage sur translatewiki.net si elle y est disponible | |
Problèmes | Tâches ouvertes · Signaler un bogue |
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
- Téléchargez et placez le(s) fichier(s) dans un répertoire appelé
NewUserMessage
dans votre dossierextensions/
.
Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewUserMessage - Ajoutez le code suivant à la fin de votre fichier LocalSettings.php :
wfLoadExtension( 'NewUserMessage' );
- Configure as required
- Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.
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=
- Nom d'utilisateur|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.
Cette extension est utilisée par au moins un des projets Wikimédia. Cela signifie probablement que l’extension est assez stable et fonctionnelle pour être utilisée sur des sites à fort trafic. Recherchez le nom de cette extension dans le CommonSettings.php de Wikimédia et dans le fichier de configuration InitialiseSettings.php pour situer les endroits où elle est installée. Une liste complète des extensions installées sur un Wiki donné peut être visualisée sur la page Special:Version de ce wiki. |
Cette extension est incluse dans les fermes de wikis ou les hôtes suivants et / ou les paquets : Cette liste ne fait pas autorité. Certaines fermes de wikis ou hôtes et / ou paquets peuvent contenir cette extension même s'ils ne sont pas listés ici. Vérifiez toujours cela avec votre ferme de wikis ou votre hôte ou votre paquet avant de confirmer. |
- Stable extensions/fr
- User activity extensions/fr
- Hook extensions/fr
- GPL licensed extensions/fr
- Extensions in Wikimedia version control/fr
- LocalUserCreated extensions/fr
- UserGetReservedNames extensions/fr
- All extensions/fr
- Extensions used on Wikimedia/fr
- Extensions included in Canasta/fr
- Extensions included in Miraheze/fr
- Extensions included in ProWiki/fr
- Extensions included in WikiForge/fr