Extension:Tooltips

This extension provides the ability to add nice tooltips to wiki text. This is remake of Extension:Tooltip by Paul Grinberg: javascript code was fully rewrited, design is completely new. Basic javascript was taken from Wowhead project and adapted for general needs. Screenshot

Step 1
Download the extension code:

Tooltip.php

Tooltip.i18n.php

Tooltip.css

power.js

basic.js

images/default.png

images/tooltip.png

images/inv_sword_14.jpg

and place it in the extensions directory.

Step 2
Add the following text to your LocalSettings.php

Step 3
Replace in Parser.php: to

Usage Instructions
There are two methods for using this extension in your wiki articles: via a Parser Function, and via a new Tag. These two methods are mutually exclusive and should NOT be interchanged on a given article in order to guarantee proper output.

Tag Format
Simply add the following text tooltip text directly inline with your article, where the "image=" (optional) is a name of the jpg image without '.jpg' (must be places in /extensions/Tooltip/images/).

Parser Function Format
Create a new Template called undefined and add the following content to it | Usage:  base text  (base text) To use this extension on your wiki article, simply call the template like so base text