Extension:ArchiveLinks
From MediaWiki.org
|
ArchiveLinks Release status: experimental |
|||
|---|---|---|---|
| Implementation | User interface, Special page | ||
| Description | Enables archival of external links with the aim of preventing Link Rot. | ||
| Author(s) | Kevin Browntalk | ||
| Last version | 0.1 | ||
| Database changes | yes | ||
| License | No license specified | ||
| Download | SVN | ||
|
|||
|
|||
| Check usage and version matrix | |||
Archive Links is an extension designed to fight link rot by preemptively archiving external links so that in the event that they go down a copy will still be available.
Contents |
Installation [edit]
As is standard with other MediaWiki extensions, you may install this extension by:
- extracting the extension in the extensions folder
- adding require_once( "$IP/extensions/ArchiveLinks/ArchiveLinks.php" ); to LocalSettings.php
- and creating the tables (or running install.php or update.php).
Configuration [edit]
All configuration values are put in to a single global variable $wgArchiveLinksConfig as an array. It is important to remember when you are configuring the array not to remove all the values by redefining it by using the array() keyword.
$wgArchiveLinksConfig['config_value_1'] = true; $wgArchiveLinksConfig['config_value_2'] = false;
$wgArchiveLinksConfig = array( 'config_val_1' => true, 'config_val_2' => false, );
Configuration Options [edit]
The following is a list of the valid configuration options for $wgArchiveLinksConfig.
| Config Value | Valid Options | Description of Value |
|---|---|---|
| archive_service |
|
|
| generate_feed |
|
If this option is set to true the queue table will be used to generate an archive feed that can be accessed via the API by bots and external services. If you would like to run your own local spider this must be set to false. |
| Example | Example |
