On Saturday, February 7, 2015 at 2:59:00 AM UTC-5, Tobias Beer wrote:
>
> All About ToggleText
>
>
> By the way, what exactly is *ToggleText* and where to find it?
>

My TiddlySpace inherited ToggleText from a set of spaces included by class 
projects at my university -- mostly just a set of common plug-ins. The full 
source of the ToggleText tiddler is as I noted above:

<html>
  <a href="javascript:;" onclick=
    " var s=this.nextSibling.style;
     s.display=s.display=='none'?'inline':'none';">
  $1
  </a>
  <span style="display:none">
  $2
  </span>
</html>


Thanks for the help. I think your concept of substituting a variable to 
change $1 dynamically in a different tiddler that would then call 
ToggleText makes a lot of sense. However, I don't really see how to 
implement it.

I don't understand how to substitute variables into a tiddler directly. Is 
there way to call a tiddler with specific values for the variables within 
the tiddler source, equivalent to calling a routine with the variables in 
parenthesis? Like this in most languages:

routine GoToPage(page1,page2,true){
 if x ~= 0 {
   x==y;
 }
 if true {
   CallSilentTransition();
 }
}

(That's just an example from the top of my head, of course. Is there a way 
to deliberately substitute into tiddlers like this?)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to