Extension:NewUserActions/zh
The extension is still a work in progress.
NewUserActions 发行状态: 试验版 |
|
---|---|
实现 | 用户活动 , 函数钩 |
描述 | Run actions when a user is newly created. |
作者 | Sébastien Santoro (Dereckson留言) |
MediaWiki | 1.23+ |
PHP | 5.4+ |
数据库更改 | 否 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
季度下載量 | 1 (Ranked 131st) |
前往translatewiki.net翻譯NewUserActions扩展 | |
問題 | 开启的任务 · 报告错误 |
The NewUserActions extension executes configurable actions when a new wiki account is created. It has been inspired by 扩展:NewUserMessage .
Actions available
Create user page
This action allow to create a user page, following a specific template. This can for example be used to offer a generic starting template for user pages.
安裝
- 下载文件,并将解压后的
NewUserActions
文件夹移动到extensions/
目录中。
开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewUserActions - 将下列代码放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'NewUserActions' );
- 按需求配置
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
配置
Global variables
There are some global variables which affect the operation of the extension. These should be set in your LocalSettings.php file.
Variable | 默认值 | 含义 |
---|---|---|
$wgNewUserActionsSuppressRC
|
false
|
Specify whether or not the new actions 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.
|
$wgNewUserActionsMinorEdit
|
true
|
Should the actions edit will be marked as minor. |
$wgNewUserActionsOnAutoCreate
|
false
|
Should auto creation (CentralAuth) trigger the actions? |
$wgNewUserActionsCreateUserPage
|
false
|
If true, create a new user page. |
In-wiki configuration
One of the goal of the extension is to improve flexibility. As such, some parameters are configurable on wiki.
Other settings of the extension can be made in the MediaWiki: namespace.
Page title | 默认值 | 含义 |
---|---|---|
MediaWiki:Newuseractions-userpage-template
|
Template:New user page
|
Specify a template to use as default new user page. |
MediaWiki:Newuseractions-userpage-summary
|
Initial content from [[Template:New user page]].
|
Edit summary for the recent changes entry of a new users message. Always in content language. |
MediaWiki:Newuseractions-editor
|
New user actions
|
Set the username of the user that makes the edits. 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. |