Extensão: NewUserMessage
Appearance
Estado de lançamento: estável |
|
|---|---|
| Implementação | Atividade do utilizador, Hook |
| Descrição | Adicione uma mensagem nas páginas de discussão do utilizador recém criadas |
| Autor(es) | |
| Última versão | 3.6.0 (2016-10-31) |
| MediaWiki | 1.36+ |
| PHP | 7.3+ |
| Alterações à base de dados | Não |
|
|
| Licence | GNU - Licença Pública Geral 2.0 ou superior |
| Transferência | |
| Traduza a extensão NewUserMessage se esta estiver disponível em translatewiki.net | |
| Problemas | Tarefas em aberto · Reportar um erro |
The NewUserMessage extension adds a message to the talk pages of newly created wiki accounts.
Instalação
- Exporte e coloque o ficheiro, ou ficheiros, num diretório chamado
NewUserMessage, na sua pastaextensions/.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewUserMessage
- Acrescente o seguinte código ao fundo do ficheiro $LocalSettings:
wfLoadExtension( 'NewUserMessage' );
- Configure conforme necessário
Pronto – Na página especial Special:Version da sua wiki verifique se a extensão foi instalada.
Configuração
Variáveis globais
There are some global variables that affect the extension's operation. These should be set in your LocalSettings file after the require_once of the NewUserMessage.php script.
| Variável | Valor predefinido | Significado |
|---|---|---|
$wgNewUserSuppressRC
|
false
|
Specify whether or not the new user message creation should show up in recent changes. If set to true, those edits will not 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? |
Configuração na wiki
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. The user set here is marked as reserved and won't be able to login! 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 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.
| Este extensão está a ser utilizado em um ou mais projetos da Wikimedia. Isso provavelmente significa que a extensão é estável e funciona bem o suficiente para ser usada por esses sites de alto tráfego. Procure o nome desta extensão nos arquivos de configuração CommonSettings.php e InitialiseSettings.php da Wikimedia para ver onde está instalado. Uma lista completa das extensões instaladas em um determinado wiki pode ser vista na página Special:Version do wiki. |
| This extension is included in the following wiki farms/hosts and/or packages: |
Categories:
- Stable extensions/pt
- User activity extensions/pt
- Hook extensions/pt
- LocalUserCreated extensions/pt
- PageSaveComplete extensions/pt
- UserGetReservedNames extensions/pt
- GPL licensed extensions/pt
- Extensions in Wikimedia version control/pt
- All extensions/pt
- Extensions used on Wikimedia/pt
- Extensions included in Canasta/pt
- Extensions included in Miraheze/pt
- Extensions included in ProWiki/pt
- Extensions included in Telepedia/pt
- Extensions included in Weird Gloop/pt
