Jump to content

Extension:RottenLinks

From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Extension:RottenLinks and the translation is 50% complete.
MediaWiki 拡張機能マニュアル
RottenLinks
リリースの状態: 安定
説明 Provides the Special page Special:RottenLinks.
作者 John Lewis, Universal Omega
メンテナー Miraheze system administrators
最新バージョン continuous updates
MediaWiki 1.39+
PHP 7.2+
データベースの変更 はい
Composer miraheze/rotten-links
ライセンス GNU 一般公衆利用許諾書 3.0 以降
ダウンロード
README
CHANGELOG

  • $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.

問題やバグを報告するには、Miraheze Phabricatorを使用してください。 ワークボードについてはこちらを参照してください。

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のRottenLinksという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'RottenLinks' );
    
  • 更新スクリプトを実行します。このスクリプトは、この拡張機能が必要とするデータベーステーブルを自動的に作成します。
  • 必要に応じて設定します。
  • Run the following script to populate the special page "Special:RottenLinks":
    php extensions/RottenLinks/maintenance/updateExternalLinks.php
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

If you would like to use RottenLinks with MediaWiki 1.39, you have to use the REL1_39 branch.

設定

$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 です。
$wgRottenLinksHTTPProxy
Sets a proxy to use for requests. Defaults to "" (use no proxy). Example: $wgRottenLinksHTTPProxy = "http://username:[email protected]:8080";
$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. 既定値は false です。 Omit the protocol, e.g. use $wgRottenLinksExcludeWebsites = [ "www.example.com" ];

使用法

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