User:Jeblad/disambiguate

Gadget is discontinued.

Disambiguate is a gadget to add a small icon to all links marked as going to a disambiguation page.

There is one page

Enabling the gadget from a remote site is by adding the following script to your local Special:MyPage/common.js on each project or your global m:Special:MyPage/global.js for all projects.

Please keep the tracking line, it makes it possible to check if this gadget should be made globally available.

// Tracking [[User:Jeblad/disambiguate]]
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jeblad/disambiguate/style.css&action=raw&ctype=text/css', 'text/css' );

It is a good idea to add the loader script to a local gadget, thereby making it easy for all users on the project to enable the functionality. Adding this to Common.css is a good idea too, but unfortunately it often triggers lengthy discussions.

The icons ( ) are a bit cramped, if anyone wants to make better ones feel free! The image must (or really should) be turned into a data URL, and the service dataurl.net/#dataurlmaker can be used for this. Check if loader creates dataurls itself, it seems to be in the works.