Okay, I'm definitely not getting this syntax. Obviously I'm at the 'waving
a dead chicken over it' point, but generally I *can* wave a dead chicken
over it.
I want to make a generalized version of this from the tutorial:
<<list-links filter:"[tag[Tag Template]] +[sort[title]]" >> where 'Tag
Template' is the current tiddler.
After going through many variation trying to shoehorn variations of $title$
{title} <$title$> and currentTiddler in that spot I found this thread.
Given ...
<$set name=title value={{!!title}}
<<xxx>>
</set>
\define tags-test1() <$list filter="[tag[$(title)$]]+[sort[title]]" />
<<xxx>> returns tag1tag2tag3... no ordering, but almost what I want.
\define tags-test2() <$list-links filter="[tag[$(title)$]]+[sort[title]]"
/>
<<xxx>> returns Undefined widget 'list-links'
\define tags-test3() <$list-links filter:"[tag[$(title)$]]+[sort[title]]"
/>
<<xxx>> returns <$list-links filter:"[tag[Tag Template]]+[sort[title]]" />
I'm really not getting the syntax of the system here, even well enough to
reproduce it for what ought to be really simple things, and the tutorial
seems to me to skip from simple To do this one thing do 'X' to "It really
quite easy you see <X{$(Y[X])$}> passes the variable as a parametrized
function using the context of the Y-macro to reverse the polarity of the
neutron flow".
I'd like to know where I went wrong in translating this to my tag-list
function/template, but I'd really *love* to know if there an intermediate
tutorial floating around somewhere that Googles not finding? I don't recall
the old tiddlywiki being this obfuscated?
On Sunday, June 14, 2015 at 1:07:31 PM UTC-4, Jed Carty wrote:
>
> This is a prproblem with how tiddlywiki parses strings. You need to use a
> set widget and a macro.
>
> \define thisList()
> <$list filter="[tag[$:/Note]]$(TestVariable)$" />
> \end
>
> <$set name=TestVariable value={{!!test}} >
> <<thisList>>
> </$set>
>
> should work.
>
> I have some examples up here
> http://inmysocks.tiddlyspot.com/#Concatenating%20Strings%20-%20What%20Breaks
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/78e10908-8af9-4123-87c3-d63ef18e9a18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.