I know I can copy the rendered Tiki-Wiki page into LibreOffice and then export it into MediaWiki format, but what about hundreds of pages? Is there a reliable script?
I need to convert only tables.
You need to convert this:
||row1-column1|row1-column2||row2-column1|row2-column2||
Into this:
{| | row1-column1||row1-column2 |- | row2-column1||row2-column2 |}
So your script has to do 5 string substitutions:
||
{|\n
\n|}
@@SEPARATOR_ROW@@
|
\n|-\n
Another way could be to convert your tiki table in HTML format, as MediaWiki also supports HTML format.
References for the wiki syntax:
You need to convert this:
Into this:
So your script has to do 5 string substitutions:
||
by{|\n
||
by\n|}
||
by@@SEPARATOR_ROW@@
|
by||
@@SEPARATOR_ROW@@
by\n|-\n
Another way could be to convert your tiki table in HTML format, as MediaWiki also supports HTML format.
References for the wiki syntax: