Wowhead tooltips
From wiki.sixohthree.com
I have developed a Wowhead tooltip extension, wowhead.php, for use on this MediaWiki. This extension allows you to add Wowhead links and tooltips via wiki syntax, referencing items by name rather than item ID. The source code is released under the open source MIT License.
This extension is hosted on GitHub mediawiki-wowhead.
Contents |
[edit] Examples
- Traditional items
<wowhead>Bouquet of Red Roses</wowhead>= [Bouquet of Red Roses]<wowhead>Shadowmourne</wowhead>= [Shadowmourne]
- Support for enchants, as described in the wowhead.js demo page:
<wowhead rel="ench=2647">Greed</wowhead>= [Greed]
- Support for random enchants (must specify item id)
<wowhead rel="rand=-63&ench=2931&item=31928">Dark Band of Agility</wowhead>-- [Dark Band of Agility]
[edit] Installation
This extension has been confirmed to work on MediaWiki 1.15.3 and recent versions of trunk.
To install:
- Download the source code (zip, tar.gz) as wowhead.php.
- Save wowhead.php into your
mediawiki/extensions/directory. - Add the following line to your LocalSettings.php file:
require_once("$IP/extensions/wowhead.php");
That's all.
[edit] History
- 1.0 -- initial release
- 1.0.1 -- fixed "gray item, no tooltip" bug by using updated wowhead item links with no "?" character
- 1.0.2 -- smartly load http or https power.js file; if item id is available, prefer to check remote item using that value
[edit] Bugs
Bug reports may be emailed to adam@sixohthree.com or filed on GitHub.