Skip to content
Converts twiki .txt files to the mediawiki format.
Perl Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


The original source is under the GPL license. Its original source can be found here:

I found myself having to migrate our old wiki from twiki to mediawiki. There didn't exist any straightforward tools to do a bulk conversion so I had to use a standalone converter. The only differences in from the original is the format. When I pulled it down from the web everything was on one line.

The very basic convertToMediawiki script takes all given arguments and runs them against the twiki2mediawiki script. The even more basic importFileToWiki script runs mediawiki's importTextFile.php script to import the converted files into the wiki. The first argument refers to the prefix used to keep your imported wiki files separate from your main wiki.

mkdir converted  # Make the converted directory where you plan to run the script
./ <twiki file(s)>

cd <wiki directory>/Maintenance/  # importTextFile.php has to be in this dir if not the script will not work
./importFileToWiki <prefix> <converted file(s)>

This source is NOT thouroughly tested. Use at your own risk. I needed a simple solution and this is what I came up with.
Something went wrong with that request. Please try again.