Hy!
sumanah, from the MWiki forums suggested I ask for help here.
I'm building an application and would like add wiki support to it. So I was wondering, how it would be possible to parse a wiki text with MediaWiki?
-- Hannes
On 18/02/12 17:41, Hannes Kirsman wrote:
Hy!
sumanah, from the MWiki forums suggested I ask for help here.
I'm building an application and would like add wiki support to it. So I was wondering, how it would be possible to parse a wiki text with MediaWiki?
-- Hannes
What kind of support do you want? Basically you would need the Parser object, and call parse() on it, but you will need to begin pulling a lot of dependencies. You need a Title for the parsed page, the links are stored in a LinkHolder, templates fetch the revisions... so you will need to go into mediawiki and start removing blocks of code or end up with a full MediaWiki.
You can also try some alternate parser. http://www.mediawiki.org/wiki/Alternative_parsers
----- Original Message -----
From: "Platonides" platonides@gmail.com
You can also try some alternate parser. http://www.mediawiki.org/wiki/Alternative_parsers
Indeed: if your goal is *not* to parse the Wikipedia corpus proper, but merely to embed a Mediawikitext engine into your app which will parse a specification *very slightly* tightened from that of stock Mediawiki, then there are a number of parser-replacement projects underway in various languages which may be in shape for you to use -- some of them have been discussed or announced here, and will be in the archives.
Cheers, -- jra
wikitext-l@lists.wikimedia.org