Assist Converting Documents into MediaWiki Format
Tools
Recommended initial editing tool - NOTEPAD++
Create Macro - Assist Cleanup
- See documentation - Assist Cleanup Macro
Process
Convert document using Vertopal online conversion tool
https://www.vertopal.com/en/convert/docx-to-wiki-mediawiki
Use DOC/DOCx - PDF doesn't work very well.
NOTE: This does not convert embedded objects like excel, attachments, Visio or Word diagrams. If your document contains these, then svae these as PNG images to add to the document later.
Download and Extract to subfolder
Rename and Edit wiki file
Run Macro - Assist Cleanup
Replace following
<span.*</span> with nothing \[\[File\:vertopal_392608dac46847cb99daf0bb8d5090ed/media/image with \[\[File\:vertopal_392608dac46847cb99daf0bb8d5090ed/media/image \.png\|.*?\]\] with \.png\|800px\]\] (if mostly huge images) or \.png\]\] (if mostly small images) <\/?blockquote> with nothing <ol.*>\n<li> with \n </li></ol> with nothing = <br />\n with "= " (without the quotes) \{\| with \{\| class="wikitable" border="1" !width="\d*%"\| with !
Go through and ensure images are named with a reasonable name
e.g. if in home section in TTM change file from TTM-1.png to TTM-HOME-1.PNG
Check all images now have a name - search for File\:
Any inline icons, make size 16px - search for file\: and any that are within paragraphs will need manipulation
Put into Assist
Upload images using the numbers as guide.
Check sizes of all pictures - remove or add |800px if necessary.