扩展:RottenLinks

This page is a translated version of the page Extension:RottenLinks and the translation is 48% complete.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎polski • ‎中文 • ‎日本語
MediaWiki擴充功能手冊
OOjs UI icon advanced.svg
RottenLinks
发布状态: 稳定版
Ext-RottenLinks (2019).png
描述 Provides the Special page Special:RottenLinks.
作者 John F. Lewis
维护者 John Lewis,
other sysadmins of Miraheze
最新版本 1.0.8 (2020-03-22)
MediaWiki 1.29+
PHP 5.6+
数据庫更改
许可协议 GNU通用公眾授權條款3.0或更新版本
下载
README

  • $wgRottenLinksBadCodes
  • $wgRottenLinksCurlTimeout
  • $wgRottenLinksExcludeProtocols
  • $wgRottenLinksExcludeWebsites
  • $wgRottenLinksExternalLinkTarget
检查使用和版本矩阵。

The RottenLinks extension provides the special page "Special:RottenLinks", which shows a table of all external links on your wiki pages, and tells you their status.

For reporting an issue or a bug, please use Miraheze Phabricator. See here for the workboard.

安装

  • 下载文件,并将其放置在您extensions/文件夹中的RottenLinks目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'RottenLinks' );
    
  • 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
  • 根据需要配置。
  • Run the following script to populate the special page "Special:RottenLinks":
    php extensions/RottenLinks/maintenance/updateExternalLinks.php
    
  •   完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

配置

$wgRottenLinksBadCodes
Holds a list of HTTP codes that are considered bad. 默认为[ "0", "400", "401", "403", "404", "405", "502", "503", "504" ]
$wgRottenLinksCurlTimeout
Sets the timeout for cURL in seconds. 默认为30
$wgRottenLinksExcludeProtocols
Holds a list of protocols that should not be checked for validity. 默认为[ "tel", "mailto" ]
$wgRottenLinksExternalLinkTarget
Sets the external link target (_self for the current tab or _blank for new tab). 默认为_self
$wgRottenLinksExcludeWebsites
List of websites to blacklist checking of response codes for. Defaults to false.

用法

Run the "updateExternalLinks.php" script provided with the extension every time you would like to create or update the list of rotten links shown on special page "Special:RottenLinks".