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