Extension:RottenLinks/vi

Category:Extensions with invalid or missing type/viCategory:GPL licensed extensions/vi
Cẩm nang phần mở rộng MediaWiki
RottenLinks
Trạng thái phát hành: ổn địnhCategory:Stable extensions/vi
Mô tả Provides the Special page Special:RottenLinks.
Tác giả John Lewis, Paladox, Universal Omega
Maintainer(s) Miraheze system administrators
Phiên bản continuous updates
MediaWiki 1.39+Category:Extensions with manual MediaWiki version/vi
PHP 7.2+
Database changes
Composer miraheze/rotten-linksCategory:Extensions supporting Composer/vi
Giấy phép GNU General Public License 3.0 or later
Tải xuống Category:Extensions in GitHub version control/vi
README
CHANGELOG
  • $wgRottenLinksBadCodes
  • $wgRottenLinksCurlTimeout
  • $wgRottenLinksExcludeProtocols
  • $wgRottenLinksExcludeWebsites
  • $wgRottenLinksExternalLinkTarget
Category:All extensions/vi

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.

Installation

  • Tải và đặt (các) tệp trong một thư mục với tên RottenLinks trong thư mục extensions/ của bạn.
  • Thêm mã sau vào dưới cùng tệp $LocalSettings của bạn:
    wfLoadExtension( 'RottenLinks' );
    
  • Chạy mã cập nhật mà sẽ tự động tạo các bảng cơ sở dữ liệu mà phần mở rộng này cần.
  • Configure as required.
  • Run the following script to populate the special page "Special:RottenLinks":
    php extensions/RottenLinks/maintenance/updateExternalLinks.php
    
  • Yes Xong – Chuyển tới Special:Version trên wiki của bạn để xác nhận phần mở rộng được cài đặt thành công.

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

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.
$wgRottenLinksHTTPProxy
Sets a proxy to use for requests. Defaults to "" (use no proxy). Ví dụ: $wgRottenLinksHTTPProxy = "http://username:password@proxy.example.com:8080";
$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.
$wgRottenLinksExcludeWebsites
List of websites to blacklist checking of response codes for. Defaults to false. Omit the protocol, e.g. use $wgRottenLinksExcludeWebsites = [ "www.example.com" ];

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

Category:Extensions by Miraheze/vi Category:Wiki farm extensions
Category:All extensions/vi Category:Extensions by Miraheze/vi Category:Extensions in GitHub version control/vi Category:Extensions included in Canasta/vi Category:Extensions included in Miraheze/vi Category:Extensions included in WikiForge/vi Category:Extensions supporting Composer/vi Category:Extensions with invalid or missing type/vi Category:Extensions with manual MediaWiki version/vi Category:GPL licensed extensions/vi Category:LoadExtensionSchemaUpdates extensions/vi Category:Stable extensions/vi Category:Wiki farm extensions