Extension:RottenLinks

From mediawiki.org
This page is a translated version of the page Extension:RottenLinks and the translation is 35% complete.
Manuel des extensions MediaWiki
RottenLinks
État de la version : stable
Description Provides the Special page Special:RottenLinks.
Maintenance Miraheze system administrators
Dernière version continuous updates
MediaWiki 1.39+
PHP 7.2+
Modifie la base
de données
Oui
Composer miraheze/rotten-links
Licence Licence publique générale GNU v3.0 ou supérieur
Téléchargement
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.

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

Installation

  • Téléchargement et placez le(s) fichier(s) dans un répertoire appelé RottenLinks dans votre dossier extensions/.
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'RottenLinks' );
    
  • Exécutez le script de mise à jour qui va créer automatiquement les tables de base de données dont cette extension a besoin.
  • Configuration requise
  • Run the following script to populate the special page "Special:RottenLinks":
    php extensions/RottenLinks/maintenance/updateExternalLinks.php
    
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

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. Par défaut [ "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). Example: $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). Par défaut _self.
$wgRottenLinksExcludeWebsites
List of websites to blacklist checking of response codes for. Par défaut false. Omit the protocol, e.g. use $wgRottenLinksExcludeWebsites = [ "www.example.com" ];

Utilisation

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