Extension:NewUserMessage

From mediawiki.org
This page is a translated version of the page Extension:NewUserMessage and the translation is 73% complete.
Outdated translations are marked like this.
MediaWiki 拡張機能マニュアル
NewUserMessage
リリースの状態: 安定
実装 利用者アクティビティ , フック
説明 新しく作成された利用者のトークページにメッセージを追加する
作者
最新バージョン 3.6.0 (2016-10-31)
MediaWiki 1.36+
PHP 7.3+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgNewUserMessageOnAutoCreate
  • $wgNewUserSuppressRC
  • $wgNewUserMinorEdit
Quarterly downloads 16 (Ranked 128th)
translatewiki.net で翻訳を利用できる場合は、NewUserMessage 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

NewUserMessage拡張機能は新しく作成されたアカウントのトークページにメッセージを追加します。

通常、新しい利用者がMediaWikiを利用するウィキに登録した後、MediaWiki:Welcomecreationのメッセージが表示されます。この拡張機能により、指定されたテンプレート内のメッセージを新しい利用者トークページに追加することができます。

インストール

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

設定

グローバル変数

拡張機能の操作に影響するいくつかのグローバル変数があります。これらは、NewUserMessage.phpスクリプトのrequire_onceの後にLocalSettingsファイルで設定する必要があります。

変数 既定値 意味
$wgNewUserSuppressRC false 最近の変更で新しい利用者メッセージの作成を表示するかどうかを指定します。 trueに設定すると、最近の更新またはウォッチリストで「ボットを表示する」が選択されていても、それらの編集内容は表示されません。
$wgNewUserMinorEdit true Should the new user message creation be a minor edit?
$wgNewUserMessageOnAutoCreate false Should auto creation (CentralAuth) trigger a new user message?

内部Wikiの設定

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

ページ名 既定値 意味
MediaWiki:Newusermessage-template Template:Welcome Specify a template to wrap the new user message within. You can create translations (e.g. MediaWiki:Newusermessage-template/es) that will be used when the registered user has set a different interface language on registration (this is possible through &uselang parameter or more easily through login language links). Used as a fallback when MediaWiki:Newusermessage-template-body is not set.
MediaWiki:Newusermessage-template-subject Template:Welcome-subject 新しいユーザーメッセージのスレッド件名を入力するテンプレートを指定します。常に前処理されて、パーサーによって置換されます。
MediaWiki:Newusermessage-template-body Template:Welcome-body 新しいユーザーメッセージのスレッドボディを入力するTemplateを指定します。
MediaWiki:Newuseredit-summary Adding [[Template:Welcome|welcome message]] to new user's talk page 新しいユーザーメッセージの最近の変更での要約欄を編集します。常にコンテンツの言語で書いてください。
MediaWiki:Newusermessage-editor New user message Set the username of the user that makes the edit on user talk pages. 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!
MediaWiki:Newusermessage-signatures none Optional feature. if it exists and contains a list of user names (* signature newline * etc…), these user names will be added after the template (randomly) along with the date and time.
MediaWiki:Newusermessage-substitute‎ none Optional feature. If the page exists and contains any text (but spaces or a single dash ("-")), the welcome template will be substituted in the talk page.

これらの項目は記事の判定であることに注意してください。それらを編集するには、ブラウザでsその記事を開いて、ウィキテキストを編集してください。

NewUserMessage ページの例

Template:Welcomeとして作成するべきであるページの例 :

== Wikiへようこそ==
$nameさん、こんにちは...

Hello {{{name}}} ...
テンプレートのパラメーター
  • |name= - 利用者名
  • |realName= - Real name (can be empty)

関連項目