Assist Converting Documents into MediaWiki Format: Difference between revisions

From Calidus HUB
(Minor correction)
m (Minor correction)
Line 23: Line 23:
Run Macro - Assist Cleanup
Run Macro - Assist Cleanup


Replace following
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


<pre>
<pre>
<span.*</span> with nothing
<span.*</span> with nothing


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


\.png\|.*?\]\] with \.png\|800px\]\] (if mostly huge images) or \.png\]\] (if mostly small images)
\.png\|.*?\]\] with \.png\|800px\]\] (if mostly huge images) or \.png\]\] (if mostly small images)
Line 48: Line 48:
Go through and ensure images are named with a reasonable name
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
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\:
Check all images now have a name - search for File\:

Revision as of 09:09, 28 August 2024

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 (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

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


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.