Usage

Standard block usage (floats toggle to the far right):

{{show
|text=The primary driver for the acquisition was the target's proprietary AI technology.
}}

Compact Usage

This version prevents the "jump" and keeps the link next to the text.

{{show
|compact=yes
|text=This text is short and the button stays close and aligned.
}}

Parameters

  • text: The content to be hidden/shown.
  • expandtext: The text for the "show" link (Defaults to "more ▾").
  • collapsetext: The text for the "hide" link (Defaults to "less ▴").
  • inline: Set to "yes" to use span tags.
  • compact: Set to "yes" to keep the toggle link next to the text and fix the "push down" alignment issue.
  • state: Set to "expanded" to have the text visible on page load.
  • style: Pass additional CSS styles directly.

Required CSS

Add this to your MediaWiki:Common.css to ensure the "more" link doesn't float away:

.mw-compact-toggle .mw-collapsible-toggle {
    float: none !important;
    display: inline-block !important;
    margin-left: 0.5em;
    vertical-align: top !important;
}