扩展: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;
This extension was migrated from git.suriyaa.tk code and checked into a GitHub software repository. |