@Eric Shulman Great, that works, thanks! Really minor follow-up question.
What do I have to put before [field:father-id{!!id}] to get it to actually
show up on the page as text and a link?
Currently, I can do this: <<list-links [field:id{!!father-id}]>> (which is
the inverse, for finding fathers as opposed to finding sons) but that
produces a list e.g.
- Robert Smith
I just want it to show
Robert Smith
Because people only have one biological father! I think the <<list-links>>
bit is a 'macro'? I've tried:
<[field:id{!!father}]>
<<[field:id{!!father}]>>
<<$link [field:id{!!father}]>>
<$link to=[field:id{!!father}]>[field:id{!!father}]</$link>
All with no luck.
Slightly more general question, I've found myself a bit baffled by
macros/whatever they are. TiddlyWiki as loads of examples of operators, but
unless you know what you need to put before them, they aren't actually
usable! For example, I know the subtract operator looks like this:
[[23]subtract[19]]
But obviously, just putting that in a tiddler doesn't produce the value
"4", you have to put something before it. I've got no clue what that should
be, and the code actually used in the wiki:
<<.operator-example 1 "[[23]subtract[19]]">>
Does not work.
Sorry to dump loads of questions! I just get the impression that TiddlyWiki
is incredibly powerful and perfect for my use-case, but there is a lot of
basic syntax stuff that I just don't get.
On Sunday, June 27, 2021 at 1:13:52 PM UTC+1 Eric Shulman wrote:
> On Sunday, June 27, 2021 at 4:04:14 AM UTC-7 [email protected] wrote:
>
>> Now doing this <<list-links [field:father-id[634750-LiR]]>>
>> Works to retrieve the children of Robert Smith. However, that involves
>> manually typing in Robert Smith's id. Instead I want something like
>> this: <<list-links [field:father-id[{{!!id}}]]>>
>> But that doesn't work...
>>
>
> When specifying the parameter value for a filter operator, *the type of
> brackets indicate the kind of parameter value* you are using:
>
> square brackets are for *literal* values, e.g.
> [field:father-id[634750-LiR]]
> angle brackets are for *variable* values, e.g.,
> [field:father-id<somevariable>]
> curly braces are for *field references*, e.g., [field:father-id{!!id}]
>
> Also note that within filter syntax, use *single* brackets/braces, rather
> than the *doubled* brackets/braces that are used within regular wiki text
> syntax;
> i.e., [634750-LiR] instead of [[634750-LiR]], <somevariable> instead of
> <<somevariable>>, and {!!id}} instead of {{!!id}}
>
> enjoy,
> -e
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a7683e9a-7bb6-48d4-8d67-054bc776fd6bn%40googlegroups.com.