Hello there!
I'm a Flash Video Game Developer working on a word based game. I stumbled across the MediaWiki API component during my research and I've been testing it locally in the game to retrieve word definitions and displaying them in the game for the player. In general, everything works great locally, but there's a few odd issues that I'd like to get worked out, if possible.
I actually posted my questions on the MediaWiki forums last night, but just realized that the API specifically requests that questions be sent to this email address. The link below goes to my post on the forums and the suggestions a moderator, Skizzerz, has already provided.
http://www.mwusers.com/forums/showthread.php?14641-Questions-about-the-Media...
Any help you may be able to provide would be greatly appreciated. Thanks for this great component. It's been fairly simple to use so far.
Aaron. EduGameDev
On 04/25/2010 11:32 PM, Aaron Ward wrote:
Hello there!
I'm a Flash Video Game Developer working on a word based game. I stumbled across the MediaWiki API component during my research and I've been testing it locally in the game to retrieve word definitions and displaying them in the game for the player. In general, everything works great locally, but there's a few odd issues that I'd like to get worked out, if possible.
As in the forum, you can get definitions from Wiktionary, though it's not quite that simple (there is not a "data" API to Wiktionary, you can only get the page text).
You have a choice between:
1. Getting the raw text of the page with the API and extracting the lines that start with a # for definitions. 2. Getting the rendered HTML of the page as normal, and extracting the contents of the <ol> in <div id="bodyContent">. 3. Creating something easier to use with the pre-extracted lists at http://toolserver.org/~enwikt/definitions.
In an ideal world there would be a public API using the data from (3), but no one has done that yet.
Conrad
mediawiki-api@lists.wikimedia.org