Page History
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:
- Show
- Hide
Avoid vague link text such as "Click here."
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Expand Macro
You can use the Expand macro to show and hide blocks of content. For examples of the Expand macro in use, try searching for the Expand macro. For instructions, refer to Atlassian help:
https://confluence.atlassian.com/conf613/expand-macro-964960814.html
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|
Make sure the text for the link is accessible, such as "Transcript of this video." Avoid vague link text such as "Click here."
For an example of the Expand macro in use, refer to Video of Downloading a Collection via the GUI.
Cloak, Toggle Cloak, and Composition Setup Macros
...
To enter the Composition Setup macro
Type as much of the following as needed to open the macro browser.
Code Block {composition
- From Type {Com and from the list of macros, select Composition Setup.Enter
In the
parameters in the panel of the macro. Refer to the ServiceRocket site for documentationMultiexcerpt include MultiExcerptName ExitDisclaimer nopanel true PageWithExcerpt wikicontent:Exit Disclaimer to Include
...
macro panel, enter the parameters. The following code block lists example parameters.
Code Block cloak.toggle.type = text cloak.toggle.open=[show] cloak.toggle.close=[hide]
The Composition Setup macro follows. It is not visible on the completed page.
...
Panel | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
To enter the macros
Type as much of the following as needed to open the macro browser.
Code Block {cloak
- Type { and the first few characters.
- When the macro browser opens, select the Cloak or Toggle Cloak macro from the list.
- In the macro dialog box, enter the ID (such as TOC in the example).
- Click Save.
...