扩展:RottenLinks

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:RottenLinks and the translation is 11% complete.

Other languages:
English • ‎polski • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
RottenLinks
发布状态: 稳定版
描述 Provides the Special page Special:RottenLinks.
作者 John F. Lewis
维护者 John Lewis,
other sysadmins of Miraheze
最新版本 1.0.6 (2019-02-05)
MediaWiki 1.29+
PHP 5.6+
数据更新
许可协议 GNU General Public License 3.0 or later
下载
README

  • $wgRottenLinksBadCodes
  • $wgRottenLinksCurlTimeout
  • $wgRottenLinksExcludeProtocols
  • $wgRottenLinksExternalLinkTarget
翻译RottenLinks扩展如果在translatewiki.net可用
检查使用和版本矩阵。

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.

安装

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

Configuration

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

Usage

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".