> I had been using an ExpandSliders script that I recently noticed is no
> longer in tiddlytools.  It looked as though ToggleSliders is what I
> should be using instead, so I made the switch,

ExpandSlidersScript was re-written and renamed ToggleSliders, since
it:
A) actually toggles (expands or *collapses*) multiple sliders with a
single click
B) has been converted from an 'inline script' into a 'transclusion',
written using only 'pure TW' syntax, so there's no dependencies.

> In the "Usage" and "Example" that appears (between triple brackets) in
> the tiddler ToggleSliders, the macro is:
> <<tiddler ToggleSliders with: here "open all" "close all">>
> However, in the working example (not between triple brackets), the
> macro adds ##show:
> <<tiddler ToggleSliders##show with: here "open all" "close all">>

When you view a transclusion tiddler directly (as opposed to *using*
it by embedding it in another tiddler via <<tiddler TiddlerName
with: ... >>) it will display its ##info section (the documentation),
rather than the ##show section, so that the tiddler is 'self-
documenting'.

The *visible* syntax, without "##show", is the correct syntax to use.
The additional "##show" section reference is needed in this case only
because it is embedded within the ToggleSliders tiddler itself.  It
ensures that the example embedded direclty in the transclusion's
##info section will invoke the functionality rather than attempting to
recursively transclude the documentation into *itself*.

> I can only get the macro to work when I include the ##show.  Are there
> cases where one would be able to use it without ##show?

The tiddler works for me (in other tiddlers) without the ##show.  For
example:
   http://www.TiddlyTools.com/#QuickStart
has a 'show all'/'hide all' command link (look near the upper right of
the rendered tiddler content) that toggles all the sliders in
QuickStart at one time, using this syntax:
   <<tiddler ToggleSliders with: 'here' 'show all' 'hide all'>>

The conversion from inline script to transclusion should not have
changed the way you use this tiddler (except for the name, of
course).  Can you create a *minimal test case* and then post the
document somewhere so I can debug it?

-e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to