Jump to content

Template:Show

From Insurer Brain
Revision as of 01:26, 20 December 2025 by Wikilah admin (talk | contribs)


Usage

To ensure the buttons "glue" to the end of the text, you must provide a unique id if using this more than once on a single page.

{{show
|id=bio1
|compact=yes
|text=This is a very long text that will span multiple lines. When it expands, the "less" button will stay right here at the end.
}}

Parameters

  • id: (Required if multiple on one page) A unique name like "1", "2", "bio", etc.
  • text: The content.
  • expandtext: Defaults to "more ▾".
  • collapsetext: Defaults to "less ▴".
  • state: Set to "expanded" to show by default.