Extension:ShowRealUsernames

From mediawiki.org
This page is a translated version of the page Extension:ShowRealUsernames and the translation is 39% complete.
MediaWiki 拡張機能マニュアル
ShowRealUsernames
リリースの状態: 安定
実装 特別ページ
説明 Extends Special:ListUsers to also show each user's real name and/or other user-specific information.
作者 Paul Lustgarten and RV1971
最新バージョン 1.4.0 (2018-04-17)
MediaWiki 1.30+
PHP 5.4+
ライセンス GNU 一般公衆利用許諾書 3.0 以降
ダウンロード
  • $wgShowRealUsernamesFields
  • $wgShowRealUsernamesInline
  • showrealname
Quarterly downloads 3 (Ranked 146th)
translatewiki.net で翻訳を利用できる場合は、ShowRealUsernames 拡張機能の翻訳にご協力ください

The ShowRealUsernames extension extends the user listings produced by Special:ListUsers to include the registered real name of each user, displayed immediately following the wiki user name, and/or other user-specific information.

インストール

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

アップグレード

アップグレードは、旧バージョンの場所に新バージョンをインストールするだけです。

バージョン 1.3 以下

既存の設定はこれまで通り動作しますが、新機能を利用したい場合があります。

設定

By default, the user's real name is appended to the wiki name in Special:ListUsers. You can replace the wiki name with the real name by setting

$wgShowRealUsernamesInline = true;

in your LocalSettings.php.

The fields retrieved from the database by the ShowRealUsernames extension are configured in $wgShowRealUsernamesFields, which currently defaults to 'user_real_name', 'user_name', 'user_email'. You can customize this in your LocalSettings.php.

The system messages sru-realname-inline and sru-realname-append are provided to format the name. Parameters ($1, $2, …) are replaced by the fields defined in $wgShowRealUsernamesFields in the order of definition.

Only users having the showrealname right do see the real names. By default, this right is granted to all registered users. To restrict it to a group add something like the following lines to your LocalSettings.php:

$wgGroupPermissions['user']['showrealname'] = false;

$wgGroupPermissions['bureaucrat']['showrealname'] = true;

使用法

This extension operates automatically whenever the Special:ListUsers page is displayed.

リリースノート

These are the release notes for version 1.4.0. See Extension:ShowRealUsernames/History for older releases.

Configuration changes

The extension is now loaded using the wfLoadExtension() mechanism introduced in MediaWiki 1.25. It is therefore incompatible with older MediaWiki versions.

Bugfixes

Removed closing ?> at end of files.

Alternative extension