> I cut the script into a ToggleRightSidebar tiddler: Now I get a funny
> $1 appearing next to the toggle arrow, which is there because of this
> line:
> <script label="$1" title="show/hide right sidebar content">
> I guess I must have an old script designed for inline use.
> The $1 is easy to remove anyhow.

You should not have to edit the script in any way.  The $1 is a
'substitution marker' that is used with the <<tiddler>> macro, which
permits you to pass parameter values that are automatically
substituted when the tiddler is rendered.

If you examine the *source* of ToggleRightSidebar (i.e., 'edit the
tiddler'), you can see some very basic documentation:

Usage: <<tiddler ToggleRightSidebar with: "label">>

The "label" parameter is *optional*.  The code in the script uses the
triangle 'arrows' by default if you omit the parameter (and the
"with:" keyword) from the macro, hence my previous advice to use just
"<<tiddler ToggleRightSidebar>>"

Note: You can use substitution markers $1 through $9 in your tiddler
content, corresponding to the positional order of any params passed
via <<tiddler>>, thus:
   <<tiddler TiddlerName with: foo bar baz mumble frotz>>
would result in these substitutions:
   $1=foo, $2=bar, $3=baz, $4=mumble $5=frotz

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
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