SimpleSpoilers - butscher/WikidPad GitHub Wiki
Allows you to mark sections of a page to be hidden by default when exported. It uses minimal javascript, which means it does not render in the built-in preview mode.
While it should work with all modern browsers, I have only tested it with Firefox and Internet Explorer.
Save the attached [/attachment/wiki/SimpleSpoilers/SimpleSpoilers.py SimpleSpoilers.py] to your Wikidpad/user_extensions file.
Mark the beginning and the ending of a spoiler with a spoiler tag. The first tag should include a name for the spoiler. The button for showing the spoiler will appear at this first tag. The ending tag should not include a name and should be after all the hidden content. Getting these out of order, putting a name on the ending tag, or leaving it off the first tag will all cause weird things to happen. Spoilers (should) be nestable, if you really need it.
[:spoiler: The Life of Brian] The movie "The Life of Brian" is about a man named Brian and what happens in his life. [:spoiler:]
The output has a div tag containing one button and one div for the hidden contents. Keeping with other HTML I've seen from WikidPad, all three elements have the "wikidpad" class. Additionally, the top most div has the "spoiler" class as well.