plugin:xtern
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:xtern [2019-02-11 02:03] – [Utilities for checking and correcting broken links] turnermm | plugin:xtern [2024-01-18 10:21] (current) – Aleksandr | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : turnermm02@shaw.ca | email : turnermm02@shaw.ca | ||
type : action | type : action | ||
- | lastupdate : 2019-02-04 | + | lastupdate : 2022-02-14 |
- | compatible : Detritus,"Elenor of Tsort","Frusterick Manners",Greebo | + | compatible : Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : links,icons | + | tags : links |
downloadurl: | downloadurl: | ||
Line 40: | Line 40: | ||
The plugin checks to see if an external url is accessible. | The plugin checks to see if an external url is accessible. | ||
{{ https:// | {{ https:// | ||
- | These changes do not apply to interwiki links. Interwiki links have the class '' | + | These changes do not apply to interwiki links. Interwiki links have the class '' |
=== HTTP Status codes 4xx === | === HTTP Status codes 4xx === | ||
Line 51: | Line 51: | ||
There is a script in the scripts directory which can be run from the lib/exe directory: | There is a script in the scripts directory which can be run from the lib/exe directory: | ||
php chk_links.php | php chk_links.php | ||
- | This will list all your broken links and the pages where they occur. | + | This will list broken links and the pages where they occur. |
=== Admin Panel === | === Admin Panel === | ||
- | You can also run a check in the plugin' | + | You can also run a check in the plugin' |
Checking the entire wiki on large sites may need more than the '' | Checking the entire wiki on large sites may need more than the '' | ||
+ | |||
+ | The admin panel check saves the list of broken links and their pages. | ||
=== Editing Broken Links === | === Editing Broken Links === | ||
+ | **Note: | ||
+ | |||
When the new window opens for editing, the broken links for this page will be displayed at the top of the page in yellow message banners. | When the new window opens for editing, the broken links for this page will be displayed at the top of the page in yellow message banners. | ||
__ BROKEN-LINK: | __ BROKEN-LINK: | ||
When the '' | When the '' | ||
- | {{ https:// | + | {{ https:// |
- | Keep in mind that this is a preview. | + | Keep in mind that this is a preview. |
+ | |||
+ | You can also open pages from the the links in the admin panel. The page will open in a new tab or window with the broken link markup in place. | ||
+ | |||
+ | == Displaying Broken Link Markup == | ||
+ | |||
+ | By default, the __BROKEN-LINK: | ||
+ | |||
+ | You can also use the '' | ||
+ | ==== No Icons ==== | ||
+ | It is possible to use this plugin without displaying its icons for broken, valid, and status 400 links. | ||
+ | |||
===== Configuration Options ===== | ===== Configuration Options ===== | ||
Line 68: | Line 83: | ||
|ca_required|This wiki uses a cacerts.pem file installed in the '' | |ca_required|This wiki uses a cacerts.pem file installed in the '' | ||
|max_time|Time in seconds to allow for broken link checking in the admin panel. See [[# | |max_time|Time in seconds to allow for broken link checking in the admin panel. See [[# | ||
+ | |[[# | ||
+ | |[[# | ||
+ | |alt_div|Some templates do not use the default id to identify the div which holds the page content; if yours is one of these, enter the div id here| | | ||
+ | |alt_class|Some templates identify the div which holds the page content by a class name; if yours is one of these, enter the class name here| | | ||
+ | |skip_pages|A comma separated list of pages where you want the xtern link icons to be suppressed. | ||
+ | |||
+ | |||
+ | |||
===== Discussion ===== | ===== Discussion ===== | ||
Please use the forum or the github issue tracker. | Please use the forum or the github issue tracker. | ||
plugin/xtern.1549847036.txt.gz · Last modified: 2019-02-11 02:03 by turnermm