扩展:Info

This page is a translated version of the page Extension:Info and the translation is 42% complete.
MediaWiki擴充功能手冊
OOjs UI icon alert-invert.svg
Info
发布状态: 不稳定
实现 用户界面
描述 Adds an info tab on all normal pages, allowing for quick info displaying
作者 Suriyaa Sundararuban (Suriyaa Kudo讨论)
维护者 Suriyaa Sundararuban
最新版本 2.0.0 (2019-06-08)
MediaWiki 1.29+
PHP 5.6+
数据庫更改
许可协议 GNU通用公眾授權條款2.0或更新版本
下载

检查使用和版本矩阵。

The Info extension adds an info tab on all normal pages, that allows us to display the site information quickly.

安装

  • 下载最新发布版本文件,并将其放置在您extensions/文件夹中的Info目录内。
  • 只有從git安裝才运行Composer来安装PHP依赖,通过发行composer install --no-dev至扩展目录。 (参见任务T173141了解潜在问题。)
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'Info' );
    
  • 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
  • 配置要求
  •   完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

致使用MediaWiki 1.29或更早版本的用户:

上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()。 如果您需要在早期版本(MediaWiki 1.29和更早版本)中安装此扩展,而不是wfLoadExtension( 'Info' );,您需要使用:

require_once "$IP/extensions/Info/Info.php";

配置

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;