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?
1. 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