Extension:NewUserMessage/zh

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 extensions allows a message in a specified template to be added into the new users talk page instead.

In case LiquidThreads is installed, this extension will create a new thread on the user talk page. See In-wiki configuration for details.

全域变量
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.

In-wiki配置
Other settings of the extension can be made in the MediaWiki: namespace.

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:

欢迎来到我们的Wiki
Hello ...

模板参数名


 * ：用户名
 * ：真名（可以为空）

主题
A very simple example of the page you should create as Template:Welcome-subject:

Hello

This message will be used as the thread subject — preprocessed and substituted. If this page is empty, this extension will not do anything when LiquidThreads is installed.

模板参数名


 * name：用户名（如果用户在注册时使用真实姓名）

Body
A very simple example of the page you should create as Template:Welcome-body:

欢迎来到我们的Wiki，

This message will be used as the thread body. It will be substituted if MediaWiki:Newusermessage-substitute‎ has contents. If this page is empty, this extension will not do anything when LiquidThreads is installed.


 * 模板参数名


 * name：用户名
 * realName：用户真名

复刻
This extension adds one new hook: