However - if the script could render a new tiddler with the actual wikilinks as [[text]] it would also solve the case - and at the same time have the function of beeing a real converter.
In my specific case - it would be fantastic if I could have a script that could automate the whole process of taking a list (from a tiddler): 1) enclose each line in doubled square-brackets 2) transpose the list from vertical to horisontal 3) put the resulting row of wikilinks into the tagfield of a tiddler YS Måns Mårtensson On 11 Apr., 05:44, Måns <[email protected]> wrote: > Thanks Eric > This is a good script - and I will find some use for it. > What I need though is a wikified rendition of the transposed list + > the doubled square-brackets.. > Can i somehow make the list appear formatted as {{codetext}} ? > I need to be able to copy the result into the tagfield as tagnames + > the doubled square-brackets. > > YS Måns Mårtensson > > On 11 Apr., 05:01, Eric Shulman <[email protected]> wrote: > > > > Yes - exactly - a list of names : > > > Transposed to a row of wikilinks: > > > if 't' contains the input text (i.e., one name per line), then the > > following javascript expression will split it into separate lines and > > then rejoin it using doubled square-brackets: > > > '[['+t.split('\n').join(']] [[')+']]' > > > To use this in TiddlyWiki, you could copy/paste the input text into a > > tiddler (e.g., "SomeTiddler"), and then invoke the following inline > > scripting to read the multi-line input and render it as a line of > > links: > > > <script> > > var t=store.getTiddlerText('SomeTiddler',''); > > return '[['+t.split('\n').join(']] [[')+']]'; > > </script> > > > 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 -~----------~----~----~----~------~----~------~--~---

