Hi Dave, Is it really a script TW, or do you play my game? > > I hope that makes it more clear... Since 3PO decrypted it. Yes, I think, it is.
I prepared 2 tiddlers for you [1][2] for easy access. You will need RefreshTiddler [3] from tiddlytools, for refreshing. There are some checks for input values, ... but they are __not__ tested. Testing is your part, if it fits your needs. regards Mario [1] http://a-pm-experimental.tiddlyspot.com/#ScriptMaster [2] http://a-pm-experimental.tiddlyspot.com/#ScriptTemplate [3] http://www.tiddlytools.com/#RefreshTiddler Thats inside the tiddlers. But the list will break the lines. NewTiddler: ScriptMaster contains !The structure {{{ |++...@[n] [[(go)|Note$1$2:$3]] <<tiddler [[Note$1$2:$3]]>>===| <<tiddler $1##$2.$3>>| }}} !Setup |Show # lines before start line|<<option txtCntPre>>| |Start at line: |<<option txtCntStart>>| |Number of lines to display: |<<option txtCntNumber>>| <<tiddler RefreshTiddler with: "refresh settings">> <<tiddler ScriptTemplate with: Act1 scene1>> === end of Script Master NewTiddler: Script Template !Script List <script> var co = config.options; var out = ''; /* initialize / create the variables */ co.txtCntNumber = (co.txtCntNumber != undefined)? co.txtCntNumber : '10'; /* change 10 to your default value */ co.txtCntPre = (co.txtCntPre != undefined)? co.txtCntPre : '0'; /* change 0 to your default value */ co.txtCntStart = (co.txtCntStart != undefined)? co.txtCntStart : '1'; /* change 1 to your default value */ /* check for negative values */ var cntNumber = parseInt(co.txtCntNumber); var cntPre = parseInt(co.txtCntPre); var cntStart = parseInt(co.txtCntStart); /* user input check */ cntNumber = (cntNumber > 0) ? cntNumber : 10; /* should be same as above! */ cntPre = (cntPre >= 0) ? cntPre : 0; cntStart = (cntStart > 0) ? cntStart : 1; /* limit the smallest start value */ var max = cntStart + cntNumber; /* create the table */ for (var i=cntStart; i<max; ++i) { out += "|++...@[n] [[(go)|Note$1$2:line"+ i + "]] <<tiddler [[Note $1$2:line" + i +"]]>>===|<<tiddler $1##$2.line" + i +">>|\n" } return out; </script> == end of Script Template == On Feb 10, 2:27 am, Dave Parker <[email protected]> wrote: > Hi Mario - I'm glad I was able to entice you!! > > > ^ .. width, with no parameter .. does sets width to auto. > > actually thats part of the nested sliders plugin that says the slider > shows in the form of a popup. > > > [n] .. activated by key 'n' > > not exactly, its just a little slider label "n", so it should look > like this in the table: > | [n] |Act1 Scene1:line 1 Leah - "help me Obiwan Kenobi, you're my > only hope!"| > > when you hover over the n (for "note") it'll display a popup like this > |(go) (and here are the notes for Act1 scene1:line1 if they exist) | > and if you click on "(go)", it'll open up the notes so you can either > create or edit them. > > and the tiddler "Act1" has this section: > !scene1.line1 > scene1:line1 Leah - "help me Obiwan Kenobi, you're my only hope!" > > >Fore one line, there are 2 tiddlers involved? > > I guess you could say 3, there's the note tiddler, there's the > template tiddler (here known as "TiddlerName") with the <<tiddler $1## > $2.$3>> and that (due to the parameters) refers to a 3rd called Act1 > and the various sections > > >Please give 2! examples for $1 $2 $3 > > Act1, scene1, line1 > Act7, scene3, line34>Which one is the counting variable i in for(i=1;i< .. > > $3 is the counting variable, so elsewhere in the TW I'd have already > picked the first 2 variables, and here it would pick out however many > lines from the "Act" tiddler, which could be quite huge if opened in > its entirety. With the [n] thing you could write notes for each > line. I intend to make it so you can click something to look at the > next 8 or 10 and/or the previous bunch too. > > I hope that makes it more clear... > > thanks, > Dave > > On Feb 9, 3:19 pm, PMario <[email protected]> wrote: > > > Hi Dave. > > q:-)) You lured me. Yes it is relevant. > > > Let's split things a little bit, to make the problem simpler, for me > > to understand and solve the little parts. > > > My thoughts: > > > > TiddlerName tiddler has this: > > > |++...@[n] [[(go)|Note$1$2:$3]] <<tiddler [[Note$1$2:$3]]>>===| > > > <<tiddler $1##$2.$3>>| > > > =============== > > > R2D2 says: > > |++...@[n] [[(go)|Note$1$2:$3]] <<tiddler [[Note$1$2:$3]]>>===| > > <<tiddler $1##$2.$3>>| > > > I feel like Luke Skywalker now.. > > > | .. start of the table > > +++ .. start of NestedSliderPlugin > > ^ .. width, with no parameter .. does sets width to auto. > > * .. closes display, if click occurs somewhere in tiddler > > @ .. the slider will be opened if mouse hovers it > > [n] .. activated by key 'n' > > > If $1=X $2=Y $3=Z it opens a Tiddler named NoteXY:Z ->right? > > > [[(go)|Note$1$2:$3]] > > ^^^^ ^^^^^^ > > | | > > | +-- Link to NoteXY:Z > > +-----Label (go) prittylink > > > And if the mouse goes there it hovers the content of that tiddler ->right? > > > <<tiddler [[Note$1$2:$3]]>> > > > cool idea! > > > === .. end of nested slider > > > | .. finished the left part of the table > > > <<tiddler $1##$2.$3>>| > > Displays the Section content of tiddler X##Y.Z -> right? > > > | .. end of right part of the table. > > > ========= > > There are 3 Variables $1 $2 $3 which are normaly resolved with: > > tiddler: OneLine contains: > > <<tiddler template with: R2D2 Luke says>> > > > tiddler: template contains: > > $2 $3: Hello $1! > > > The result: Luke says: Hello R2D2! > > ============= > > > Luke has some questions now: > > > The above is one line of the table? -> right? > > Fore one line, there are 2 tiddlers involved? > > > Please give 2! examples for $1 $2 $3 > > Which one is the counting variable i in for(i=1;i< .. > > > regards Mario > > -- 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.

