Convert Word To MediaWiki Format
I’ve been doing some work in MediaWiki lately and found that I often need to move information from Word to MediaWiki. Here is an awesome converter that I found which makes it a lot easier. It’s not perfect but it sure is better than doing it manually!
Word2MediaWiki
Convert Microsoft Word document content to MediaWiki markup.
This is a Word Visual Basic macro. Usage requires a running copy of Microsoft Word that supports Visual Basic macros (Word 97 or greater).
Features
- Replaces smart quotes/double-quotes with dumb equivalents
- Escapes the following characters: * # { } [ ] ~ ^^ | ‘
- Converts external hyperlinks
- Converts H1-H5 headings
- Converts bold/italic/underline/strikethrough/superscript/subscript formatting
- Converts bulleted/numbered lists
- Converts simple tables.
Caveats
- No guarantees, no official support, just like the
- No in-document hyperlink conversion
- May not work well with documents that have highly customized styles/templates. It works best with documents written in the default “Normal” template
- Nested tables have not been tested and may not function as expected.
- Image/graphics/figures are not supported.
Installation
- Download the Word2MediaWiki macro library
- Start Word
- Bring up the Visual Basic Editor (Tools->Macro->Visual Basic Editor or Alt+F11).
- From the VBE, import the macro library (File->Import File…) and select the file you downloaded.
Usage
- Open a word document to convert
- Run the Word2MediaWiki macro by bringing up the Macros dialog (Tools->Macro->Macros… or Alt+F8), selecting Word2MediaWiki and clicking Run.
- The macro converts the document to MediaWiki markup and places a copy of the content on the system clipboard.
- Switch to a MediaWiki editor and paste the result.
Another option for you is to use OpenOffice 2.3 (and above). They have a MediaWiki conversion tool build right it!
If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?
One Response to “Convert Word To MediaWiki Format”
-
Von Says:
January 30th, 2009 at 7:25 pmI’m guessing the installation instructions are for a Windows version of Word. I don’t see a VB Editor in the Mac version of Word. Anyone know if this works on a Mac and how to install?

