Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add expand macro #80

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Add expand macro #80

merged 1 commit into from
Jul 13, 2023

Conversation

DvogelHallowelt
Copy link
Contributor

ERM27235

#75

@osnard osnard merged commit 536305c into main Jul 13, 2023
@osnard osnard deleted the expandmacro branch July 13, 2023 06:57
@markus-96
Copy link

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

@osnard osnard mentioned this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants