ReferencePopups

This is a reimplementation of Wikipedia's reference popup gadget; the feature that lets you hover over a citation and displays the contents of the reference in a floating box. The obvious advantage of this is that you can view the references in situ without having to scroll to the bottom, or click the citation and lose your [mental] place in the article.

Installation
Add the appropriate row to your  in MediaWiki:Common.js:

Usage Notes
The popups are configurable via the built-in UI. You can trigger them via clicking instead of hovering, and you can customise the hover delay and turn the animations on and off. It's also possible to disable them entirely on a per user basis for individual users who don't want it.

The configuration UI is hard-coded in English, that is the only part which is language specific.

Design Notes

 * The current code is a prototype. It's fully functional, except for the lack of i18n, but is not particularly clean internally.

TODO

 * The pop-up tries to color itself appropriately for the wiki's color scheme automatically but does so poorly. It needs to get a lot more complicated with the color manipulation logic.
 * The internal structure should be refactored so the popup is a jQuery UI widget to give better separation of concerns in the logic.
 * The configuration UI is significantly large, it should be factored out into an on-demand sub-module to reduce the base size.