DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:htmldetailstag

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

plugin Use the HTML <details> and <summary> tags for toggling information

Last updated on
2021-03-18
Provides
Syntax
Repository
Source

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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki