Extension:RottenLinks
Jump to navigation
Jump to search
RottenLinks リリースの状態: 安定 |
|
---|---|
![]() |
|
説明 | Provides the Special page Special:RottenLinks. |
作者 | John F. Lewis |
メンテナー | John Lewis, other sysadmins of Miraheze |
最新バージョン | 1.0.10 (2020-10-09) |
MediaWiki | 1.29+ |
PHP | 5.6+ |
データベースの変更 | はい |
ライセンス | GNU 一般公衆利用許諾書 3.0 以降 |
ダウンロード | GitHub: README |
|
|
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
完了 – ウィキの「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. 既定値は
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".