Extension:RelativePageLinks
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
RelativePageLinks Release status: unmaintained |
|
---|---|
Implementation | Parser function |
Description | A MediaWiki extension that shortens long page links to relative links, if possible. |
Author(s) | Simon Heimler (Fannontalk) |
Latest version | 0.1.0 (April 2015) |
MediaWiki | 1.19+ |
PHP | 5.2+ |
Database changes | No |
License | MIT License |
Download | GitHub: Note: README |
RelativePageLinks shortens link titles on the current wiki page to relative paths, if possible. The current page name / url is used as a reference and will be substituted by .
. The RelativePageLinks extension uses JavaScript to do so therefore processes the end result that is generated by MediaWiki. This should ensure compatibility with all extensions.
This extension may come in handy if links are autogenerated and a short title can't be given. (e.g. links from SMW ASK query results)
Example: On the page Germany/Augsburg
is a link to Germany/Augsburg/University
. The link title will be automatically shortened to ./University
.
Installation
[edit]- Download and place the file(s) in a directory called
RelativePageLinks
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
require_once "$IP/extensions/RelativePageLinks/RelativePageLinks.php";
- Done â Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Instead of downloading the zip archive you may also check this extension out via Git:
git clone https://github.com/Fannon/RelativePageLinks.git
Configuration
[edit]There are no options.
Usage
[edit]Simply include and activate this extension and it should work.