wikifab/custom-recent-changes

此包的最新版本(1.1.1)没有提供许可信息。

安装次数: 2,304

依赖者: 0

建议者: 0

安全性: 0

星级: 3

关注者: 3

分支: 0

公开问题: 0

类型: mediawiki-extension

1.1.1 2019-09-23 07:53 UTC

This package is auto-updated.

Last update: 2024-09-29 04:43:24 UTC


README

CustomRecentChanges 对 Special:RecentChanges 页面进行了重新设计,使其更易于阅读。

安装

  • 下载此存储库的完整存档
  • 解压并将 CustomRecentChanges 文件夹放入 extensions 目录。
  • LocalSettings.php 中添加以下行
wfLoadExtension('CustomRecentChanges');

使用方法

最近更改页面位于 Special:DokitRecentChanges

配置

默认情况下,它将显示 5 个命名空间

  • 页面 (0)
  • 用户 (2)
  • 文件 (6)
  • 类别 (14)
  • 组 (220)

但你可以通过编辑以下配置变量添加尽可能多的命名空间

$wgRCNamespacesList

(数组) 整数数组。在过滤器中,仅显示指定的命名空间。

示例

<?php
    # LocalSettings.php 
    
    $wgRCNamespacesList = [
        0, // User
        2, // File
        14 // Category
    ];
?>

$wgRCNamespacesListIgnored

(数组) 整数数组。在过滤器中,显示所有命名空间,但不包括忽略的。

示例

<?php
    # LocalSettings.php 
    
    // Will ignore the File namespace
    $wgRCNamespacesListIgnored = [
        2, // File
    ];
?>

翻译

像往常一样,翻译文件位于 i18n 文件夹中。您可以在过滤器栏上翻译/更改命名空间按钮。只需向文件添加翻译即可。

翻译命名空间按钮的键以 customrecentchanges-namespace- 开头,以小写的英文或官方命名空间名称结尾。

Group 命名空间的法语示例

// fr.json
{
    "customrecentchanges-namespace-group": "Groupes"
}