NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Multiple macros are available to show and hide blocks of content. For example, if you want to provide a transcript with a video, you can use one of these macros to hide the transcript. Readers who want to read the transcript can click the link to expand the text.   

  • If you want to specify different text for the expand and collapse links, use the combination of Cloak, Toggle Cloak, and Composition macros.
  • Otherwise, use the Expand macro. (It is easier to implement.) 

Key point for accessibility: Make sure the link text briefly and uniquely describes the hidden content or what the link does, as in the following examples:

  • Transcript of this video
  • Show
  • Hide

Avoid vague link text such as "Click here." 

...

Panel
borderColorblue
borderStylesolid
titleContents of this page

Toggle Cloak
idTOC

Cloak
idTOC

To enter the macros

  1. Type as much of the following as needed to open the macro browser. 

    Code Block
    {cloak
  2. When the macro browser opens, select the Cloak or Toggle Cloak macro from the list.
  3. In the macro dialog box, enter the ID (such as TOC in the example). 
  4. Click Save.

...