NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{scrollbar:icons=false}

Hiding information on a long page, so readers can view it only as needed

The Cloak macro may be used in conjunction with the Toggle-cloak macro to show and hide blocks of content. In this example, the Toc macro in the first panel is cloaked. In the second contents panel, the contents are not cloaked. It is not possible to cloak a panel. The markup for the cloaked contents is shown in the last section on this page.

Composition Setup
cloak.toggle.type = text
cloak.toggle.open=[show]
cloak.toggle.close=[hide]
Panel
titleContents

Toggle Cloak
idTOC

Cloak
idTOC
42
Panel
titleContents
Table of Contents
maxLevel4
minLevel2

First heading

Some text.

First subheading

Some text.

Second subheading

Some text.

Second and last heading

The markup for the cloaked contents follows.

Code Block
{composition-setup}
cloak.toggle.type = text
cloak.toggle.open=[show]
cloak.toggle.close=[hide]
{composition-setup}
{panel:title=Contents}
{toggle-cloak:id=TOC}
{cloak:id=TOC}
{toc:maxLevel=4|minLevel=1}
{cloak}
Wiki Markup
{scrollbar:icons=false}