MediaWiki:Gadget-CodeLinks.js/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for MediaWiki:Gadget-CodeLinks.js. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This gadget adds links to wikilink and template syntax, URLs, module names after require and mw.loadData, 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 ({{#invoke:}}) 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.