This was successfully done by DanielaNicklas with a TikiWiki v1.7, the scripts were running under Windows XP. The result is http://www.die-ketzer.de/wiki, a German rpg stuff - wiki.

Rather than converting the wiki markup, the approach is to convert the HTML, doing some specialized stuff with tiki-URLs.

What this approach does:

What this approach does not:

Get a list of pages

If you have access to the server, login to the mysql database and perform: select pagename from tiki_pages; Otherwise, you have to use http://hostname/tiki/tiki-listpages.php and copy&paste (avoid this).

Paste the plain pagenames into a textfile with one pagename per line.

Get the print-html-version of all pages

Use this script: gettiki_html.py

You have to adjust the config variables in the script:

   1 wikihost="hostnameofthewiki.org"
   2 wikipath="/tiki/tiki-print.php?page="
   3 targetdir="pages"
   4 pagelistfile = "pagelist"

The script gets the wiki pages from the pagelistfile and stores them in the targetdir.

Convert html to MoinMoin-Wikimarkup

Adopt

It uses a modified version of

which can be placed in the same directory.

Note: The <i> tag is not converted in this version of the script. Look at the source and copy the syntax used for the <em> tag to fix that. --MarkStosberg

Adoptions:

TikiWiki uses numbers for categories. Hence, if you want to link in TikiWiki to a category, you have to type in [tiki-browse_categories.php?parentId=4 Category Stuff]. In MoinMoin, we want to have {CategoryStuff.

In the converter script, there are to lists that map tiki-categories:

In some wikis, all pages that belong to a category do start with the same prefix (like "Help" in MoinMoin). This can be done here:

   1 # Pages that start with key go to Category
   2 page2category = {
   3     'NameInTiki': 'CategoryNewName',
   4     'AnothernameInTiki': 'CategoryAnotherOrSameNewName'}

The actual mapping from tiki-categories to MoinMoin is done in the parser:

   1         self.tikicategory = {
   2             1 : 'NameInTiki',
   3             4 : 'AnotherNameIn'
   4             }

You may want to rename certain pages (and all links to them!) Configure this list:

   1         self.linkreplacements = {
   2             'HomePage': 'FrontPage',
   3             'UserPageYourPage': 'YourName'
   4             }

Install MoinMoin

Finishing

tikiwiki

MoinMoin

!Überschrift1, !!Überschrift2 ...

= Überschrift 1 = , == Überschrift 2 ==

-= Überschriftsbalken =-

geht nicht

Preformatted Text: Leerzeichen am Anfang

 in drei geschweifte Klammern einbetten

* Liste Stufe 1, ** Liste Stufe 2

(Leer)* Liste Stufe 1, (Leer)(Leer)* Liste Stufe 2

||tabelle|tabelle|tabelle||

||tabelle||tabelle||tabelle||

:: zentrierter Text ::

geht nicht - allenfalls über zentrierte Tabelle: ||<tablewidth="100%":>zentrierter Text||

Label))}

 ["Wikilink"], [wiki:Wikilink Label]

[http://url | label]

[http://url label]

Bilder: Link auf Image-Gallery-URL

attachment:bildname.png, kann dann direkt hochgeladen werden; oder http://imageurl (wird dann dynamisch eingebunden)

andere Dokumente: geht nicht

attachment:sonstwas.pdf, kann dann direkt hochgeladen werden

Kategorien: aus Extramenu auswählen

aus Menu auswählen oder Name auf die Seite schreiben

Foren

gibt es nicht. Wiki-Seiten oder das F&S-Forum verwenden

Shoutbox

gibt es nicht. Nach Ersatz wird noch gesucht. Bis dahin: einfach auf Seite ShoutBox schreiben

Inhaltsverzeichnis einer Seite: geht nicht

[[TableOfContents]]

Have Fun

:-)

MoinMoin: MigrationStrategy/FromTikiWiki (last edited 2007-10-29 19:22:00 by localhost)