Skip to main content
Porting from MediaWiki        
List of things to look out for when porting from MediaWiki to Tiki

See also MediaWiki versus Tiki

__TOC__

Remove it and insert a {maketoc} tag using the Image button.

__NO_TOC__

Remove it, it's not needed.
Tiki does not do toc's automatically.

__FORCETOC__

Remove it. 😉

Square brackets

If you don't escape your square brackets, [this] will turn into this.
Write it like:

Copy to clipboard
[[this]

~pp~

Replace it with {CODE(wrap="1", colors="c++")} for C++ code, or {CODE(wrap="1")} for non-C++ code (pre).
Use the search/replace function.

~/pp~

Replace it with {CODE} (ending tag).

<br style="clear: both;">

Replace that evil HTML with the %clear% dynamic variable.

[http://1.4.0|1.4.0]

A very peculiar behaviour of the Tiki MW importer. 😊
Very often three digit version numbers turns into a link.
It should be: 1.4.0 rather than 1.4.0, right?

Templates

This is an example of a MediaWiki template in use:

Copy to clipboard

Layout begin:

Copy to clipboard
{{Layout_box1|

Use 'Layout_box1' as the 'class parameter in a DIV or BOX tag, like this:

Copy to clipboard
{DIV(class="Layout_box1")} the content {DIV}

Image:

Copy to clipboard
Image=Big_Logo_Visual C++.jpg‎|

Becomes:

Copy to clipboard
{IMG(src="img/wiki_up/Big_Logo_Visual_C++.jpg",imalign="left")}{IMG}

The images from the MediaWiki dump are stored in img/wiki_up, and the image name is using underscores instead of spaces in the name.
And we are aligning the image to the left.

Title:

Copy to clipboard
Title=Installing the Ogre SDK for Visual C++|

Becomes:

Copy to clipboard
-=Installing the Ogre SDK for Visual C++=-

Description:

Copy to clipboard
Description=Use this guide to install the precompiled OGRE SDK for Microsoft Visual C++. Once you have OGRE downloaded and setup, learn how to ((Setting Up An Application - Shoggoth|setup your first application)).

Simply becomes:

Copy to clipboard
Use this guide to install the precompiled OGRE SDK for Microsoft Visual C++. Once you have OGRE downloaded and setup, learn how to ((Setting Up An Application - Shoggoth|setup your first application)).

Just remove the Description= bit.

Layout end:

Copy to clipboard
}}

You can remove it. It's replaced by either the {BOX} or {DIV} tags. (End tags).

Result:

Copy to clipboard
{DIV(class="Layout_box1")}{IMG(src="img/wiki_up/Big_Logo_Visual_C++.jpg",imalign="left")}{IMG} -=Installing the Ogre SDK for Visual C++=- Use this guide to install the precompiled OGRE SDK for Microsoft Visual C++. Once you have OGRE downloaded and setup, learn how to ((Setting Up An Application - Shoggoth|setup your first application)). {DIV}

Rendered result:

Image
Installing the Ogre SDK for Visual C++

Use this guide to install the precompiled OGRE SDK for Microsoft Visual C++. Once you have OGRE downloaded and setup, learn how to setup your first application.



Info As you can see, the image does not have transparency.
It would look much better with a transparent background (use the magic wand and cut the background - if you can't, add a transparency layer). Use png.

Look at Wiki Styles for a list of styles.