Extension:RelativePageLinks

Category:Unmaintained extensions#RelativePageLinks Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:MIT licensed extensions
MediaWiki extensions manual
RelativePageLinks
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Parser function Category:Parser function extensions
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+Category:Extensions with manual MediaWiki version
PHP 5.2+
Database changes No
License MIT License
Download Category:Extensions in GitHub version control
README
Category:All extensionsCategory:Extensions not in ExtensionJson

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


Instead of downloading the zip archive you may also check this extension out via Git:

git clone https://github.com/Fannon/RelativePageLinks.git

Configuration

There are no options.

Usage

Simply include and activate this extension and it should work.

Category:All extensions Category:BeforePageDisplay extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions not using extension registration Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:MIT licensed extensions Category:ParserFirstCallInit extensions Category:Parser function extensions Category:Unmaintained extensions