Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-06 Thread David Allen
I think I figured it out using the set widget. <$set name=redoneplanet filter="[prefix[{!!planet}]]" value="<$link to={{!!planet}}>{{!!planet}}" emptyValue={{!!planet}}> <> This way, when the planet field does not have square brackets, a link is created to the tiddler of the same name. If it

Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-06 Thread David Allen
Your suggestion is having the same problem as the solution I came up with, unless I'm not understanding what you're doing. Here's what I've got: <$setvars _aplanet={{!!planet}} theplanet="aplanet[1]"> >><> On Mon, Jan 4, 2016 at 12:27 AM, Tobias Beer wrote: > Hi

Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-06 Thread Tobias Beer
Hi David > I think I figured it out using the set widget. > Your example doesn't work for me if I put it into a tiddler tagged *$:/tags/ViewTemplate* on tiddlywiki.com This one does: <$set name=planet filter="[{!!planet}get[title]]" emptyValue="{{!!planet}}" value="<$link

Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-06 Thread Tobias Beer
Hi again, David, I think the proper way to do it would be to use a template: {{||$://templates/planet-link}} and then: title: $://templates/planet-link <$list filter={{!!planet}}/> Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups

Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-03 Thread David Allen
Really, the only thing I need now is a way to override the formatting used with the <$link> widget, so that the link doesn't appear to be missing. Since the link widget I'm using is linking to {{!!planet}} and the planet field is the planet name surrounded by dual square brackets, what its trying

Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-03 Thread Tobias Beer
Hi David, > I just need a way to override the link widget's formatting now. Otherwise > Eric Shulman's solution works beautifully. > Unfortunately, that is not true. Although you may feel like you can avoid retrieving the title using a variable, you do need a proper reference and *[[Some

Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-03 Thread Tobias Beer
Hi David, I believe you can use my plugin tobibeer/setvars to properly store a list item in a variable , e.g. <$setvars _planet={{!!planet}} planet="planet[1]"> <$link to=<>><> Best

Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-02 Thread David Allen
That mostly worked. The only problem now is with the template tiddler I used to create the new event tiddlers. Here's the body of the tiddler: \define empire_lookup() {{EmpireEventLookupTable##$(thejointype)$}} \end <$set name=thejointype value={{!!jointype}}> {{!!planet}} <> <$link

[tw] Re: Square brackets, transclusion, and widget problem

2016-01-02 Thread Eric Shulman
On Saturday, January 2, 2016 at 8:32:51 PM UTC-8, David Allen wrote: > > The problem is, the value that shows up in the new event tiddler does not > contain the square brackets, which makes it not work with the filter > above. What I'd like is some way to construct a string that has square >