We used these scripts for migrating an old Confluence instance to Mediawiki. In one space, the macro for expandable sections was heavily used. Also, the macros gallery, latex and multimedia were used. Since we decided to copy these sections manually, I will post my findings here. Maybe it will be usefull for someone.
expand
It was mainly used in tables, the XML of these sections looks like:
Maybe, it can be replaced with the following in Mediawiki:
| <div class="toccolours mw-collapsible mw-collapsed">
click here to expand
<div class="mw-collapsible-content">
* something
** something more
</div></div>
| next collum
latex
If you embed some formula in latex, it looks like this in the export:
There has to be a function that iterates over all images attached to the page and then add it to the gallery. There is also an option to include attached images from other pages, that is even more tricky. I would suggest to add these in an post process..
We used these scripts for migrating an old Confluence instance to Mediawiki. In one space, the macro for expandable sections was heavily used. Also, the macros gallery, latex and multimedia were used. Since we decided to copy these sections manually, I will post my findings here. Maybe it will be usefull for someone.
expand
It was mainly used in tables, the XML of these sections looks like:
Maybe, it can be replaced with the following in Mediawiki:
latex
If you embed some formula in latex, it looks like this in the export:
With the Extension Math, Latex can be rendered:
gallery
This seams to be a bit tricky.
There has to be a function that iterates over all images attached to the page and then add it to the gallery. There is also an option to include attached images from other pages, that is even more tricky. I would suggest to add these in an post process..
multimedia
If the extension TimedMediaHandler is used, that is maintained by Mediawiki, the Syntax is as simple as: