On Thu, Feb 21, 2008 at 3:23 PM, Magnus Manske magnusmanske@googlemail.com wrote:
On Wed, Feb 20, 2008 at 5:26 PM, Apple Grew applegrew@gmail.com wrote:
As far as rendering wikimarkup is concerned, how does Database.php is going to help?
- Tweak the database class to grab content from your local source
instead of a database 2. Have MediaWiki do the rendering for you by simply requesting the article via HTTP 3. Profit!
Hi, Magnus, is wiki2xml (http://svn.wikimedia.org/viewvc/mediawiki/trunk/wiki2xml/php/) your project?
Yes.
Its output was pretty encouraging, but it seems it has some issues with rendering the {{wikipedia}} template. Use the following url to see the problem I am talking about.
http://tools.wikimedia.de/~magnus/wiki2xml/w2x.php?doit=1&whatsthis=wiki...
Internally, wikitext gets always converted to XML, then this gets converted to the actual output format. Here, you're apparently running into two problems:
- XHTML output is a little shaky ATM
- Something doesn't parse right, as you can see when you switch to XML
output (at the end, there's a "<span>" as plain text) I'll look into that.
And what does the Use API checkbox do? When I check this on then the templates are not rendered at all.
This option works when you enter a list of articles, instead of raw wikitext; it will then use the API of the given MediaWiki installation to do the template replacement, which is faster and more reliable.
Magnus
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Thanks for the reply, the database trick looks encouraging. Currently I am trying to use Bliki (java) library to do the rendering. This is a better option for me as I am also programming my application Java.