plugin:htmldetailstag
Table of Contents
HTML Details Tag Plugin
Compatible with DokuWiki
- 2024-02-06 "Kaos" unknown
- 2023-04-04 "Jack Jackrum" unknown
- 2022-07-31 "Igor" unknown
- 2020-07-29 "Hogfather" yes
Similar to folded, sectiontoggle, wrap
This plugin enables the HTML tags <details>
and <summary>
, which hide content that can be made visible by clicking on the summary text. You can use this to hide spoilers or large content.
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Examples/Usage
<details> <summary>Summary Text</summary> Details Text </details>
The above text results in:
IMAGE_PLACEHOLDER
After clicking the summary, the content is visible:
IMAGE_PLACEHOLDER
Syntax
- The block to hide starts with
<details>
and ends with</details>
.- If the content should be visible by default, use
<details open>
instead.
- The first content element should be
<summary>TEXT</summary>
.- If left out, the summary text “Details” will be used instead.
- The rest of the content will be invisible by default.
In short:
<details[ open]> [<summary>SUMMARY<summary>] CONTENT </details>
Discussion
See discussion.
plugin/htmldetailstag.txt · Last modified: 2023-03-27 12:57 by Aleksandr