On Wed, Feb 27, 2008 at 2:24 PM, Dirk Riehle <dirk(a)riehle.org> wrote:
(Wiki Creole is a subset of MediaWiki syntax; it
might be sufficient
for what your XHTML files express---you probably don't have templates
etc.)
WikiCreole is not a subset of MediaWiki syntax, or even close.
Translating XHTML to WikiCreole will cause all of the following to
completely fail to work in MediaWiki: bold, italics, explicit line
breaks, image inclusions, tables, and escaping of all kinds. It will
also cause unintended behavior for external links, and possibly some
weirdness with headings. In fact the only syntax that *is* the same
is headings (mostly), internal wikilinks, free links, interwiki links,
paragraphs, lists, and horizontal rules. Of those, only headings,
paragraphs, and lists are likely to be common constructs that can
easily be translated from XHTML: free links (text the same as target)
are rare in manually-written XHTML, horizontal rules are fairly rare
generally, and both internal and interwiki links would not be easy to
discern from external links for an automated tool. You're probably
going to get a mess if you try this.
I know that there are some tools to make a rough job at converting
XHTML to MediaWiki markup, although it's never going to be very
reliable or consistent. I can't seem to find them in a couple
minutes' Googling, unfortunately.