Jump to content

Extension:HAWelcome

From mediawiki.org
This page is a translated version of the page Extension:HAWelcome and the translation is 100% complete.
MediaWiki 拡張機能マニュアル
HAWelcome
リリースの状態: 安定
実装 通知
説明 利用者が初めて編集をしたときに自動で歓迎します。
作者 Krzysztof Krzyżaniak
Maciej Błaszkowski
Jack Phoenix
Mainframe98
最新バージョン 0.7.1 (2017-10-25)
MediaWiki 1.43+
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README
  • $wgHAWelcomeSignatureFromPreferences
  • $wgHAWelcomeStaffGroupName
  • $wgHAWelcomeWelcomeUsername
  • welcomeexempt
translatewiki.net で翻訳を利用できる場合は、HAWelcome 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

Highly Automated Welcome Tool (HAWelcome)拡張機能は拡張機能の設定に応じて匿名利用者と登録した利用者を含む新規利用者が初めての編集後に自動で歓迎します。

The extension was originally written by Krzysztof Krzyżaniak and Maciej Błaszkowski for Fandom and subsequently forked by Jack Phoenix for ShoutWiki and by wikiHow developers for wikiHow.

インストール

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

設定

HAWelcome has three configuration variables that go in LocalSettings.php . There is also configuration on-wiki.

LocalSettings.php

  • $wgHAWelcomeWelcomeUsername - This configuration variable contains the name of the user that should leave the welcome message. If this user is flagged as a bot, the edits will be marked as a bot edit. For compatibility with ShoutWiki's setup, the default value is ShoutWiki.
  • $wgHAWelcomeStaffGroupName - The name of the group that can serve as a fallback when no sysops have been active in the last 60 days. This is the staff group by default.
  • $wgHAWelcomeSignatureFromPreferences - This configuration variable toggles if the signature of the welcomer should be the one they have set in their preferences. This is false by default, and messages will use the default signature.

ウィキ上で

HAWelcome adds two new configuration messages:

  • welcome-user - Determines of which user the signature should be placed under the welcome message. This can be a username or any of the special values:
    • @sysop - The most recently active sysop, with no fallback on staff
    • @latest - The most recently active sysop or staff when no sysops have been active in 60 days
    • @disabled - Don't leave welcome messages. In addition to @disabled, the message content may also be set to a single dash (-)
  • welcome-enabled - Determines which action to perform. It can be any combination of the following:
    • page-user - Create a user page for a registered user. The content of the user page is controlled by the message welcome-user-page
    • message-anon - Leave welcome messages for anonymous users. The content of the message is controlled by the message welcome-message-anon
    • message-user - Leave welcome messages for registered users. The content of the message is controlled by the message welcome-message-user
    • board-welcome - Leave a welcome message on the UserBoard. The content of the message is controlled by the message user-board-welcome-message

利用者権限

There is one user right, assigned to the groups bot, staff, sysop and bureaucrat by default: welcomeexempt. Users with this right will not receive a message or have their user page created when they make their first edit.

互換性

HAWelcome integrates with SocialProfile in two ways:

  • If the user has opted to use the social profile, the user page will be created in the UserWiki: namespace, rather than the User: namespace.
  • A message can be left on the UserBoard if this is enabled.

既知の制限

See also