From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:NewUserActions and the translation is 39% complete.
Other languages:

MediaWiki 拡張機能マニュアル
OOjs UI icon advanced-invert.svg
リリースの状態: 実験的
実装 利用者アクティビティ , フック
説明 Run actions when a user is newly created.
作者 Sébastien Santoro (Derecksonトーク)
MediaWiki 1.23+
PHP 5.4+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
  • $wgNewUserActionsSuppressRC
  • $wgNewUserActionsCreateUserPage
  • $wgNewUserActionsOnAutoCreate
  • $wgNewUserActionsMinorEdit
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 a 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";
  • 必要に応じて設定します
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。



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.