Assist Converting Documents into MediaWiki Format: Difference between revisions

From Calidus HUB
m (Minor correction)
(Updated to latest version)
Line 4: Line 4:


Create Macro - Assist Cleanup
Create Macro - Assist Cleanup
* See documentation - Assist Cleanup Macro
* See documentation - [[Assist Cleanup Macro]]
 
Create Macro - Vertopal Cleanup
* See documentation - [[Assist Clean Up Vertopal Macro]]




Line 23: Line 26:
Run Macro - Assist Cleanup
Run Macro - Assist Cleanup


Replace following (this assumes replacing for a document for TTM - replace TTM- with the name of your Assist and doc being converted e.g. WMS-, PORTAL-TTM-ARCH-, EPOD-DEVICE-, CTLTMS-, etc
Run Macro - Clean Up Vertopal
 
Essentially this does the following:


<pre>
<pre>
Line 45: Line 50:
</pre>
</pre>


{{Note}} Replace in the above - this assumes replacing for a document for TTM - replace TTM- with the name of your Assist and doc being converted e.g. WMS-, PORTAL-TTM-ARCH-, EPOD-DEVICE-, CTLTMS-, etc
The Vertopal Cleanup macro will put in "SYS-DESC-", so replace that.


Go through and ensure images are named with a reasonable name
Go through and ensure images are named with a reasonable name

Revision as of 17:16, 1 May 2025

Tools

Recommended initial editing tool - NOTEPAD++

Create Macro - Assist Cleanup

Create Macro - Vertopal Cleanup


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

Run Macro - Clean Up Vertopal

Essentially this does the following:

	<span.*</span> with nothing

	\[\[File\:vertopal_392608dac46847cb99daf0bb8d5090ed/media/image with \[\[File\:TTM-

	\.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 !

Note Note: Replace in the above - this assumes replacing for a document for TTM - replace TTM- with the name of your Assist and doc being converted e.g. WMS-, PORTAL-TTM-ARCH-, EPOD-DEVICE-, CTLTMS-, etc

The Vertopal Cleanup macro will put in "SYS-DESC-", so replace that.

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.