MoinMoin

MoinMoin is another wiki engine. Home page: http://moinmo.in/. See their MediaWiki and MoinMoin vs MediaWiki pages (written from their viewpoint). Most prominent public use is probably the Ubuntu Linux help wiki.

Moin doesn't require a database - all pages and versions are kept as files. This is good for performance and ease of setup, but can lead to problems on large wikis, e.g. when the Ubuntu wiki hit 32,000 pages (a directory per page, but ext2fs only allows 32k directories).

One notable feature Moin has that MW doesn't is access control lists (ACLs). Although there is an extension http://www.mediawiki.org/wiki/Extension:PermissionACL

If you're looking here, you probably either want to convert from MoinMoin to MediaWiki, or convert from MediaWiki to MoinMoin.

MoinMoin to MediaWiki
There are a number of hacky scripts for this. They are all defective in various ways - anyone who does this job does it precisely once, so there's no-one who really maintains a good converter script.

w3c created a mm2mw.pl script (same name as Dan Littlejohn's, but unrelated) which seems to produce good results.


 * https://github.com/okfn/moinmoin2mediawiki - updated version of Rotan Hanrahan's mm2mw.pl script by Rufus Pollock.
 * Corrects for a lot of changes in MoinMoin markup since 2008.
 * Still has problem mentioned below re authentication token which I was unable to fix -- just have to run convert and upload XML files by hand using Special:Import (though this won't import any attachments ...)
 * This is on github and aim to respect all pull requests so hope this can get collaboratively improved
 * mm2mw.pl Perl script by Rotan Hanrahan - imports directly into a running Mediawiki.
 * Seems to create good results
 * Handles tables and attachments
 * Has problem with the latest version of mediawiki, due to authentication token. Had to temporarily comment all the functionality related to wpLoginToken on MediaWiki
 * Further problems due to not dealing with cookies. Workaround: run 'convert' and upload XML files to Special:Import by hand.
 * Seems to have a problem with last column on tables. On method ProcessTableRow, changed to have @cells = @cells[1..@cells-1]; instead of @cells = @cells[1..@cells-2]; 

Both the scripts below need you to clean up after them by hand.


 * mm2mw.pl Perl script by Dan Littlejohn - outputs Mediawiki wikitext. NOTE: Dead link - is there a copy of this up anywhere else?
 * Breaks all CamelCase into Sentence Case - including in the middle of external links.
 * The Filter subroutine works pretty nicely for one page at a time - see below for additions.
 * For a need to convert one page at a time, David Gerard took Filter, commented out all link-creation functions and wrapped it in a hacky CGI to convert individual Moin pages. This worked pretty well. (Code not released, sorry.)
 * Doesn't do tables. Use this version of Filter (drop it into mm2mw.pl) to do simple tables (any fancy table markup will not work).
 * moin2media Python script created by the Linux Foundation for in-house use. Outputs importable Mediawiki XML.
 * Breaks some external links the way mm2mw does, but not most.
 * Doesn't preserve multiple levels of bullet points.
 * Does do tables!

See summary on mediawiki-l.

MoinMoin does pretty good DocBook export. There's a DocBook to Mediawiki translator on blender.org - anyone tested it on the DocBook that MoinMoin puts out?

(In David Gerard's testing, the docbook.py export routine from Moin 1.5.2 crashed on about 20% of the 600 pages in the wiki he wanted to move! This may have been the Moin or Python installation having been hacked around, or it may have been bugginess in Moin 1.5.2. Anyone else tried this?)

See also (can someone please try these and write up their strengths and weaknesses?):
 * the Python script that Fedora used to convert their MoinMoin wiki to MediaWiki.
 * the conversion program developed at Catalyst and used on the DAViCal Wiki

mm2mw.pl
Dan Littlejohn's converter is the least worst to date. Here's more line noise to add to Filter:

# list convert - numerical s/^ 1.(.*?)/\#$1/g; s/`(.*?)`/\$1\<\/tt\>/g; s/--\((.*?)\)--/\$1\<\/s\>/g; s/\~-(.*?)-\~/\$1\<\/small\>/g; s/\~\+(.*?)\+\~/\$1\<\/big\>/g;
 * 1) link convert - ` * ` ->  * 
 * 1) strikethrough convert
 * 1) link convert smaller - ~- * -~ -> *
 * 1) link convert larger - ~+ * +~ -> *

See also /Filter for a version of Filter that includes the above and does simple tables.

MediaWiki to MoinMoin
moinmo.in has a hacky converter script. Their page on MediaWiki links to a parser module that allows MoinMoin to understand MediaWiki markup to some degree.