Extension:NewUserActions

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:NewUserActions and the translation is 31% complete.

Other languages:
English • ‎polski • ‎日本語
The extension is still a work in progress.
MediaWiki 拡張機能マニュアル
Crystal Clear action run.svg
NewUserActions
リリースの状態: 実験的
実装 User activity, Hook
説明 Run actions when a user is newly created.
作者 Sébastien Santoro (Derecksontalk)
MediaWiki 1.23+
PHP 5.4+
データベースの変更 いいえ
ライセンス GNU General Public License 2.0 or later
ダウンロード
使用するフック
AddNewAccount
LocalUserCreated
UserGetReservedNames
translatewiki.net で翻訳を利用できる場合は、NewUserActions 拡張機能の翻訳にご協力ください
使用状況とバージョン マトリクスを確認してください。
問題点 未解決のタスク · バグを報告

The NewUserActions extension executes configurable actions when a new wiki account is created. It has been inspired by Extension:NewUserMessage .

利用できる操作

利用者ページの作成

This action allow to create an user page, following a specific template. This can for example be used to offer a generic starting template for user pages.

インストール

  • ダウンロードして、ファイルを extensions/ フォルダー内の NewUserActions という名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    require_once "$IP/extensions/NewUserActions/NewUserActions.php";
    
  • Configure as required
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

Configuration

グローバル変数

There are some global variables which affect the operation of the extension. These should be set in your LocalSettings.php file.

変数 既定値 意味
$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.

ページ名 既定値 意味
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.