MediaWiki:Gadget-CodeLinks.js/documentation

This gadget adds links to wikilink and template syntax, URLs, module names after  and , and tracking template names in comments in code formatted with Extension:SyntaxHighlight, for example in modules and in CSS and JavaScript pages.

Wikilinks are linked to the Wiktionary page, and URLs are linked to the URL, of course. Nothing special is done for interwiki links.

Module invocations are linked to the module page. Templates are linked to the template page. Both module invocations and templates receive a tooltip showing the page that they link to, because it is different from the link text. Names of tracking templates are linked to Special:WhatLinksHere so that users can quickly find the list of the pages that transclude them.