hallowelt / migrate-confluence

Tool to migrate content from Confluence export files into a MediaWiki compatible import source
GNU General Public License v3.0
35 stars 8 forks source link

Add expand macro #80

Closed DvogelHallowelt closed 1 year ago

DvogelHallowelt commented 1 year ago

ERM27235

75

markus-96 commented 1 year ago

This is awesome! Thankfully, I did not yet start the migration process.. A few tweaks from my site: I do not like the template at all.. I modified it to match the style (a bit) of Confluence: Vorlage:Expand

<templatestyles src="Vorlage:Expand/styles.css" />
<div id="collapse-pre-one" class="mw-collapsible mw-collapsed">
<div class="mw-collapsible-toggle toccolours" style="float: none; overflow:auto; border:none;"><span class="down" style="font-weight:bold;">v <span style="color: DarkBlue; cursor: pointer;">{{{title|}}}</span></span>
<span class="up" style="font-weight:bold;">> <span style="color: DarkBlue; cursor: pointer;">{{{title|}}}</span></span></div>
<div class="mw-collapsible-content">
{{{body|}}}
</div></div>

Vorlage:Expand/styles.css

/**from https://www.mediawiki.org/wiki/Manual:Collapsible_elements/Demo/Advanced/styles.css **/
#collapse-pre-one  .mw-collapsible-toggle .up,
#collapse-pre-one.mw-collapsed .mw-collapsible-toggle .down {
 display: none;
}
#collapse-pre-one .mw-collapsible-toggle .down,
#collapse-pre-one.mw-collapsed  .mw-collapsible-toggle .up {
 display: block;
}

some pictures, the macro is again embeded inside a table:

confluence: collapsed: grafik expanded: grafik

BlueSpice: collapsed: grafik expanded: grafik