Extension:NewUserActions

This page is a translated version of the page Extension:NewUserActions and the translation is 83% complete.

拡張機能はまだ未完成です。
MediaWiki 拡張機能マニュアル
NewUserActions
リリースの状態: 実験的
実装 利用者アクティビティ , フック
説明 利用者が新規作成された際に操作を実行する。
作者 Sébastien Santoro (Derecksonトーク)
MediaWiki 1.23+
PHP 5.4+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgNewUserActionsSuppressRC
  • $wgNewUserActionsCreateUserPage
  • $wgNewUserActionsOnAutoCreate
  • $wgNewUserActionsMinorEdit
Quarterly downloads 1 (Ranked 143rd)
translatewiki.net で翻訳を利用できる場合は、NewUserActions 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

NewUserActions 拡張機能はウィキ アカウントが新規作成された際に構成可能な操作を実行します。 Extension:NewUserMessage にインスパイアされたものです。

利用できる操作

利用者ページの作成

この操作は、特定のテンプレートに従った利用者ページを作成できます。 This can for example be used to offer a generic starting template for user pages.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のNewUserActionsという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewUserActions
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'NewUserActions' );
    
  • 必要に応じて設定します
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

グローバル変数

拡張機能の動作に影響を与えるグローバル変数がいくつかあります。 これらは、LocalSettings.phpファイルで設定する必要があります。

変数 既定値 意味
$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 true の場合、新しい利用者ページを作成します。

ウィキ内設定

拡張機能の目的のひとつは、柔軟性を高めることです。 そのため、一部のパラメータはwiki上で設定することが可能です。

その他の設定はMediaWiki名前空間で行ってください。

ページ名 既定値 意味
MediaWiki:Newuseractions-userpage-template Template: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. 常にコンテンツ言語で。
MediaWiki:Newuseractions-editor New user actions 編集を行う利用者の利用者名を設定します。 この利用者が存在しない場合、編集した利用者として「MediaWiki default」が表示されます。 ここで設定された利用者は、予約済みとなり、ログインできなくなります。