Spoilers? Are you talking about having something like spoiler font... like on tvtropes or sites like that? (actually followed the link... so yes this is what you want)
I did a naive version of this myself using the span macro. Here are some examples of usage... of course this assumes that the background is white... you'd have to adjust if you use a custom theme (just chuck this in the Sandbox on your trac installation to play with it): === '''Span Macro for Coloring ''(Or Other Things)''''' === * [[span(style=color:red, red)]] * [[span(style=color:green, green)]] * [[span(style=color:yellow, yellow)]] * [[span(style=color:#8A2BE2, blueviolet)]] * [[span(style=color:#FFFFFF, spoiler)]] But seeing your post got me thinking about a fancier implementation... So here you go: http://trac-hacks.org/wiki/SpoilerMacro There are some other things that probably still need to be done to make this work good... and there might be a value in making it work using the preprocessor mode and to support wiki markup within the content... but that's a start and basically implements the capability in the link you referenced. Feedback welcome/appreciated. If you have suggestions for changes submit tickets for them over at trac-hacks.org. Ben On Fri, Feb 24, 2012 at 9:01 AM, <[email protected]> wrote: > How can I get spoilers for the trac wiki? > > It would be best, if that plugin would still support javascript-free > browsers. > > I found a very good javascript-free implementation for spoilers. [1] > Unfortunately it does not work together with the #!html tag. > > In the past there was one thread in the mailing list about spoilers for > trac wiki, but the links are down. So if you have any recommendation about > how to get spoilers into the trac wiki I'd really appreciate that. > > [1] http://forums.digitalpoint.com/showthread.php?t=768374#post7109062 > > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Trac Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/trac-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
