User:Jeblad/redirect

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Status of this gadget is stable, and it supports both ltr and rtl languages.

Redirect is a gadget to add a small icon to all links marked as a redirect.

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/redirect]]
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jeblad/redirect/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 (Redirect-link-ltr-icon.png Redirect-link-rtl-icon.png) 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.