thanks PMario, that does sort of work (makes a proper table), but I'm
left wondering how to use parameters with the TiddlerName tiddler. I
left this detail out before but maybe its relevant now. My
TiddlerName tiddler has this:
|++...@[n] [[(go)|Note$1$2:$3]] <<tiddler [[Note$1$2:$3]]>>===|
<<tiddler $1##$2.$3>>|
and I'd like to insert "a", "b", &(the for/next value "i") into the
tiddler when it's rendered by the script.
I tried this:
tmp = store.getTiddlerText('VerseTransclusion' with: 'sometiddler'
'partofsection' '"+ i +"')";
but that didn't work. It gave this error:
SyntaxError: missing ) after argument list
I found getParameters at Eric's resource there but don't understand it
enough to translate into my needs here (if it even is applicable)
Thanks,
Dave
On Feb 9, 11:52 am, PMario <[email protected]> wrote:
> hi Dave,
> Something like this?
> <script>
> var out = "" ;
> var tmp = null;
> for (var i=1; i<7; ++i)
> {
> tmp = store.getTiddlerText('TiddlerName');
> tmp = (tmp)?tmp:'tiddler not found';
> out += tmp + '\n';
>
> }
>
> return wikify(out,place) ;
> </script>
>
> Descriptions:
> [1]http://tiddlywiki.org/wiki/Dev:GetTiddlerText
> [2]http://tiddlywiki.org/wiki/Dev:Wikify
>
> Valuable place to find many things
> [3]http://www.tiddlytools.com/insideTW/
>
> <<tiddler xx>> produces
> <span>xx tiddler text</span>
> thats why it didn't work
>
> On Feb 9, 6:31 am, Dave Parker <[email protected]> wrote:
>
> > Good evening...
>
> > If I use this script:
>
> > <script>
> > var out = "" ;
> > for (var i=1; i<7; ++i)
> > {
> > out += "|a|b|\n" ;}
>
> > return out ;
> > </script>
>
> > I get a 6 row table of 2 columns.
>
> > But if I use this:
>
> > <script>
> > var out = "" ;
> > for (var i=1; i<7; ++i)
> > {
> > out += "<<tiddler [[TiddlerName]]\>\>\n" ;}
>
> > return out ;
> > </script>
> > referring to a tiddler "TiddlerName" that has
> > |a|b|
> > in it,
>
> > I get 6 separate two-cell tables. I need to make the tables using the
> > <<tiddler TiddlerName>> method. Can anyone tell me why this is
> > happening and how to correct it?
>
> > Thanks,
> > Dave P
>
>
--
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.