Template:Reveal

From Old Tongue Wiki
Revision as of 20:07, 17 October 2026 by Rand (talk | contribs) (Created page with "<includeonly><div class="mw-collapsible mw-collapsed ot-reveal" data-expandtext="{{{show|Show}}}" data-collapsetext="{{{hide|Hide}}}"> <div class="ot-reveal-label">{{{label|Details}}}</div> <div class="mw-collapsible-content"> {{{text|{{{1|}}}}}} </div> </div></includeonly><noinclude> A block that is hidden when the page loads and opened by clicking. <pre> {{Reveal|label=Heading|show=Show heading|hide=Hide heading|text= Content, which may run to several paragraphs. }} <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A block that is hidden when the page loads and opened by clicking.

{{Reveal|label=Heading|show=Show heading|hide=Hide heading|text=
Content, which may run to several paragraphs.
}}
  • label: the heading shown while the block is closed. Defaults to "Details".
  • show, hide: the toggle text. Default to "Show" and "Hide".
  • text: the content. An unnamed first parameter also works, but it breaks if the content contains an equals sign, so text= is safer.