wiki:SpoilerMacro

Spoiler Macro

Description

This macro adds a "Spoiler!" button around text content of the macro so that it is hidden from view until you hit the button. This implements a concept that was mentioned on the trac-user mailing list. It replicates this approach with some cleanups to make it work better as a macro. You can show or hide a particular spoiler by clicking on it. A button to show and hide all the spoilers is also injected into the page.

Bugs/Feature Requests

Existing bugs and feature requests for SpoilerMacro are here.

If you have any issues, create a new ticket.

defect

1 / 1

task

1 / 1

Download

Download the zipped source from here.

Source

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

Installation

You can install this plugin using easy_install:

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

Example

This is a [[Spoiler([wiki:WikiStart spoiler!])]].

{{{
#!Spoiler

This is a much bigger bit of spoiler info with [wiki:StartPage wiki markup]

And it's a lot more complicated

||it||even||has||
||a||table||inside||

}}}

You can see a video of this in action as well.

Recent Changes

13967 by rjollos on 2014-06-12 21:38:35
Added __init__.py. Fixes #11822.

Thanks to g1itch for reporting.

13692 by rjollos on 2014-02-20 03:33:45
Replaced deprecated add_javascript with add_script. Fixes #11588.
11335 by netjunki on 2012-02-27 07:23:43
trying to fix conflict with other JS in other plug-ins
(more)

Author/Contributors

Author: netjunki
Maintainer: Benjamin Lau
Contributors:

Last modified 6 weeks ago Last modified on Mar 25, 2016, 12:06:57 PM