I have a set of Wiki pages (MediaWiki style) on my company's intranet that I would like to convert to Microsoft Office Word documents (or something that I can import in it). I am looking for something that has:
Would you have any hint of a solution that could fit my needs?
A very simple solution is to open the URL of the Wiki in Word's Open Document dialog, e.g. by pasting the URL http://en.wikipedia.org/w/index.php?title=Microsoft_Word&printable=yes into the File Name text box. This does not require any programming, still gives a satisfying result.
If you need a batch solution, you can write a simple script in VBA that creates and saves the documents for you:
Sub OpenFromWiki()
Documents.Open FileName:= _
"http://en.wikipedia.org/w/index.php?title=Microsoft_Word&printable=yes", _
ConfirmConversions:=False, ReadOnly:=True, AddToRecentFiles:=False, _
PasswordDocument:="", PasswordTemplate:="", Revert:=False, _
WritePasswordDocument:=""
End Sub
You could install the OpenDocument Export Extension, which will allow you to download single pages or Collections in OpenDocument format, which can be opended with MS Word.
With the mwlib
python package, which is internally used by the extension, you also can easily execute batch scripts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With