Extension:信息

本頁使用了標題或全文手工轉換
From mediawiki.org
This page is a translated version of the page Extension:Info and the translation is 67% complete.
MediaWiki扩展手册
Info
发行状态: 不穩定
实现 用户界面
描述 在所有普通页面上添加信息选项卡,以便快速显示信息
作者 Suriyaa Sundararuban (Suriyaa Kudo留言)
维护者 Suriyaa Sundararuban
最新版本 2.0.0 (2019-06-08)
MediaWiki 1.29+
PHP 5.6+
数据库更改
许可协议 GNU通用公眾授權條款2.0或更新版本
下載

信息扩展为所有普通页面添加了一个信息选项卡,使我们能够快速显示网站信息。

安裝

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

配置

该扩展具有名为"信息"的额外用户权限,可对其使用进行精细控制。 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;