wiki:SpoilerMacro

Version 2 (modified by Benjamin Lau, 12 years ago) (diff)

--

Spoiler Macro

Description

Add a "Spoiler!" button around text content of the macro so that it's hidden from view until you hit the button. This implements a concept that was mentioned on the trac-user mailing list and basically duplicates this approach with some cleanups to make it work better as a macro.

Bugs/Feature Requests

Existing bugs and feature requests for SpoilerMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:spoilermacro here].

Or you can install using easy_install:

easy_install http://trac-hacks.org/svn/spoilermacro/0.12

Source

You can check out SpoilerMacro from here using Subversion, or browse the source with Trac.

Example

[[Spoiler(This is a spoiler. Don't show me until you hit the button)]]

Recent Changes

16348 by rjollos on 2017-03-18 14:56:41
0.7: Conform to PEP8 and remove unused imports

The macro has been tested with Trac 1.2.

16326 by netjunki on 2017-03-13 01:49:42
cleaned up the insertion logic for the reveal all/hide all buttons; add them to the top and bottom of the page
13967 by rjollos on 2014-06-12 19:38:35
Added __init__.py. Fixes #11822.

Thanks to g1itch for reporting.

(more)

Author/Contributors

Author: netjunki
Maintainer: netjunki
Contributors: