MediaWikiBacklink

MediaWikiBacklink provides a backlink on MediaWiki pages to their respective mainspace documentation pages. This is a handy tool primarily designed for Dev wiki developers who may wish for a quick and easy way to return to a MW page's mainspace page to edit documentation. An ES6-compliant version exists as well, though it is not currently compatible.

The script will work if the typical Dev wiki naming conventions are followed, i.e. PageCreator and MediaWiki:PageCreator/code.js or ChatBinaryButton and MediaWiki:ChatBinaryButton.js. Deviations from the norm (i.e. MediaWiki:ChatBinaryButton2.js) will result in a return from the function. If Dev wiki naming conventions are followed on other wikis (like the author's test wiki), the script will operate as intended, but it was primarily designed for the Dev wiki.

Installation
Add the following to your common.js or your global.js page.

Changelog

 * 26-12-16 - Initial revision