Changes between Version 8 and Version 9 of SpoilerMacro


Ignore:
Timestamp:
Sep 22, 2016, 6:35:27 PM (7 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • SpoilerMacro

    v8 v9  
    66
    77This 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 [http://css-tricks.com/examples/SpoilerRevealer/ 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.
     8
     9{{{
     10
     11This is a [[Spoiler([wiki:WikiStart spoiler!])]].
     12
     13{{{
     14#!Spoiler
     15
     16This is a much bigger bit of spoiler info with [wiki:StartPage wiki markup]
     17
     18And it's a lot more complicated
     19
     20||it||even||has||
     21||a||table||inside||
     22
     23}}}
     24}}}
     25
     26You can see a [http://www.youtube.com/watch?v=TyuelS_e0Js video of this] in action as well.
    827
    928== Bugs/Feature Requests
     
    3251}}}
    3352
    34 == Example
    35 
    36 {{{
    37 
    38 This is a [[Spoiler([wiki:WikiStart spoiler!])]].
    39 
    40 {{{
    41 #!Spoiler
    42 
    43 This is a much bigger bit of spoiler info with [wiki:StartPage wiki markup]
    44 
    45 And it's a lot more complicated
    46 
    47 ||it||even||has||
    48 ||a||table||inside||
    49 
    50 }}}
    51 }}}
    52 
    53 You can see a [http://www.youtube.com/watch?v=TyuelS_e0Js video of this] in action as well.
    54 
    5553== Recent Changes
    5654