Image:WoWItem.zip
From Addons
WoWItem.zip
(37KB, MIME type: application/zip)
Warning: This file may contain malicious code, by executing it your system may be compromised.
Contents |
- For the following example, I'll use the following information.
{itemname} = "Dreadmist Mask";
Download
Change Log
Version 7.7 and up
Moved to CurseForge.
Version 7.6
- Added an import feature to Special:WoWItem.
Version 7.5
- Added Special:WoWItem to test basic requirements.
- Using absolute path to create folders for icon storage.
Version 7.4
- Fixed a few notices.
Version 7.3
- Added support for non-enUS sites.
Version 7.2
- Now uses the WoW Armory to retrieve item information. If you really want to use Allakhazam, just set the variable $WoWItem_site equal to 'allakhazam'.
Version 7.1
- Icons will now be stored locally in "$IP / wowitemimages / [a-f0-9]{2} / [a-f0-9]{1} /" (externally accessible via "$wgServer / $wgScriptPath / wowitemimages / [a-f0-9]{2} / [a-f0-9]{1} /")
- You don't have to know what this means, just that pages with a lot of item links will load faster.
- You will have to resave all pages with item links in order to make them use the local images.
Version 7
- Reverted to Version 6
- Readded details for Special:Version
Version 6.1
This version does not work!
- Added details for Special:Version
- You can now change key URL's via MediaWiki:wowitem-icon-url, MediaWiki:wowitem-search-url, and MediaWiki:wowitem-xml-url. However, doing so at this time will break it since I have not added support for sites other than allakhazam.com.
Version 6
- Ugly fix to correct the suffix bug (aka, the "Of Bug").
Version 5
- Fixed header output errors (hopefully).
Version 4
- Changed the format of "Item not found".
Version 3
- Custom style sheets were broken with this installed, now they work.
Version 2
- Asthetics
Examples
- Just a plain link
<item>Hearthstone</item>
<item not found>Hearthstone</item not found>
- Icon link.
<item img="true">Judgement Legplates</item>
<item not found>Judgement Legplates</item not found>
- Display Item HTML.
<item html="true">Dreadmist Mask</item>
<item not found>Dreadmist Mask</item not found>
- Display Item HTML.
<item img="true" html="true">Vanir's Left Fist of Brutality</item>
<item not found>Vanir's Left Fist of Brutality</item not found>
See Also
MediaWiki.com/Extension:WoWItem
Known Issues
Some items are not listed on WoWArmory.com. I'm working on a way to check WoWArmory.com and Allakhazam.com (shouldn't be too hard).
- My bad, just needed to wrap the item name in urlencode().
- Due to the way MediaWiki stores data returned by a hook, you may have to resave pages that have <item not found> in them.
- Only a problem if:
- you used my botched Version 6.1 and saved a page with an item link in it.
- new items were added to WoW and not yet in Allakhazam's database and you tried to link to them
- you managed to make it work with a different website other than Allakhazam
- The script probes Allakhazam.com or WoWArmory.com twice if it sees an item with " of " in the name only if it doesn't find it the first time. E.g. "Corpse Harvester of Power": will probe [the site] twice to find <item not found>Corpse Harvester</item not found>. "Helm of Desolation": will only probe once and find <item not found>Helm of Desolation</item not found>, which is found on the first pass.
Due to the way World of Warcraft handles items, it is not possible to link to items with sub names such as, "Corpse Harvester of the Bear". Attempting to link to such items will result in "<item not found>Corpse Harvester of the Bear</item not found>". I'm working on a way to make the script ignore sub names.
- Fixed (ugly)
Seems to break custom style sheets. I'm working on a fix.
- Fixed
If you don't put the require_once line at the end of LocalSettings.php (or after the headers have been sent), you will receive the following error:
Warning: Cannot modify header information - headers already sent by (output started at
{$IP}/extensions/WoWItem/includes/overlibmws/overlibmws.php:3) in {$IP}/includes/WebResponse.php on line #
Warning: Cannot modify header information - headers already sent by (output started at
{$IP}/extensions/WoWItem/includes/overlibmws/overlibmws.php:3) in {$IP}/includes/WebResponse.php on line #
- Fixed, hopefully.
|
File history
Click on date to see the file uploaded on that date.
- 04:22, 10 November 2008 . . Treader (Talk | contribs) . . (37,214 bytes)
- 17:00, 8 November 2008 . . Treader (Talk | contribs) . . (35,802 bytes)
- 07:14, 10 June 2008 . . Treader (Talk | contribs) . . (37,014 bytes)
- 06:31, 13 April 2008 . . Treader (Talk | contribs) . . (36,997 bytes)
- 10:10, 9 December 2007 . . Treader (Talk | contribs) . . (37,478 bytes)
- 19:38, 6 October 2007 . . Treader (Talk | contribs) . . (34,458 bytes)
- 20:18, 4 October 2007 . . Treader (Talk | contribs) . . (34,254 bytes)
- 12:44, 4 October 2007 . . Treader (Talk | contribs) . . (32,348 bytes)
- 00:03, 4 October 2007 . . Treader (Talk | contribs) . . (34,050 bytes)
- 12:19, 29 September 2007 . . Treader (Talk | contribs) . . (32,246 bytes)
- 10:30, 2 August 2007 . . Treader (Talk | contribs) . . (31,403 bytes)
- 06:44, 31 July 2007 . . Treader (Talk | contribs) . . (31,359 bytes)
- 06:16, 31 July 2007 . . Treader (Talk | contribs) . . (31,331 bytes)
- 06:14, 31 July 2007 . . Treader (Talk | contribs) . . (31,297 bytes)
- Edit this file using an external application
See the setup instructions for more information.
Links
The following pages link to this file:
Last edited by Treader on 22:51, 11 November 2008.
View Count: 1,491.
Times Edited: 18.



