Extension:Info

From mediawiki.org
This page is a translated version of the page Extension:Info and the translation is 50% complete.
Outdated translations are marked like this.
MediaWiki 拡張機能マニュアル
Info
リリースの状態: 不安定
実装 ユーザー インターフェイス
説明 すべての通常のページに情報タブを追加し、迅速な情報表示を可能にする
作者 Suriyaa Sundararuban (Suriyaa Kudoトーク)
メンテナー Suriyaa Sundararuban
最新バージョン 2.0.0 (2019-06-08)
MediaWiki 1.29+
PHP 5.6+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード

Info拡張機能は、すべての通常ページに情報タブを追加するので、サイト情報をすばやく表示することができます。

インストール

  • 最新のリリースをダウンロードするして、ファイルをextensions/フォルダー内のInfoという名前のディレクトリ内に配置します。
  • Gitでのインストールの場合のみ、PHPの依存関係をインストールするためComposerを実行します。 (合併症の可能性についてはタスク T173141を参照。)
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'Info' );
    
  • 更新スクリプトを実行します。このスクリプトは、この拡張機能が必要とするデータベーステーブルを自動的に作成します。
  • 必要に応じて設定する
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

This extension comes with an extra user right called "info" to allow fine grained control of its usage. By default it is assigned to the "user" user group, i.e. to all users with an account who are logged in. In case you would like to also assign it to anonymous users for them to make use of page info display functionality without the need of a post add the following code to your "LocalSettings.php" file right after invoking this extension:

$wgGroupPermissions['*']['info'] = true;

Revoking the permission for the "user" user group and granting it at the same time only to the "sysop" user group may be done by adding the following two lines:

$wgGroupPermissions['user']['info'] = false;
$wgGroupPermissions['sysop']['info'] = true;