I have a tiddly with which I manage the IT equipment of the staff. There are also equipment tiddlers and personal tiddlers. The names of the devices are stored as tags in the person tiddlers. The names of the persons and the device classes are stored as tags in the device tiddlers. Now I would like to determine from the person tiddler which devices the person has. At the moment I have to enter the person name in the macro call, even though I have written the personal name exactly like the tag. I want to avoid that. My macro call currently looks like this:
<< person-device-a "person name" "device class" >> The macro currently looks like this: ``` \ define person-device-a (person class) <tr valign=middle align = left> <th>$class$</th> <td><$list filter = "[tag [$class$]sort[title]]+[tag[$person$]sort [title]]"></td> <td valign=middle align = center> <$list filter="[tag[$person$]]+[tag [$class $]count[]]"></$list> </td> </tr> \end ``` Mark S. schrieb am Donnerstag, 26. November 2020 um 01:19:55 UTC+1: > The angle braces REPLACE the square brackets in filter expressions. So > your code should look like: > > \define testme(parameter) > <$list filter="[tag<__parameter__>]"> > <$link to=<<currentTiddler>>/><br> > </$list> > \end > > > > On Wednesday, November 25, 2020 at 11:48:56 AM UTC-8 [email protected] > wrote: > >> On Wednesday, November 25, 2020 at 1:09:22 PM UTC-6 Mark S. wrote: >> >>> Inside a filter, a variable could be referenced as tag[$art$] or as >>> tag<__art__> . >>> >> >> Really? Did that work for you? I thought parameters-as-variables only >> work in a strict transclusion context with double angle brackets. In a >> simple test it yields a syntax error: >> >> \define testme(parameter) >> <$list filter="[tag<__parameter__>]]"> >> <$link to=<<currentTiddler>>/><br> >> </$list> >> \end >> >> <<testme Section>> >> > -- 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/698240b5-029c-498c-ab68-399a9460ad26n%40googlegroups.com.

