There was a lot of things going on in your code that I didn't understand. I assume that the current tiddler is the same as "person" ? You use "type" in the definition, but not in the code. And "art" in the code but not in the definition.
So I'm guessing you want something like the following. Note that you can reference a parameter as $art$ or as <<__art__>> in macro code. Inside a filter, a variable could be referenced as tag[$art$] or as tag<__art__> . Without a set of data, it's hard to test, but maybe this will help. Hopefully the new, wonderful GG editor doesn't insert spaces everywhere: \define device-a(art) <tr valign=middle align=left> <th>$art$</th> <$list filter="[tag<__art__>sort[title]]+[tag<currentTiddler>sort[title]]"> <td valign=middle align=center> <<currentTiddler>> </td> </$list> <$list filter="[tag<__currentTiddler__>]+[tag[$art$]count[]]" > <td><<currentTiddler>></td> </$list> </tr> \end <table margin="10"> <<device-a Stuff>> </table> On Wednesday, November 25, 2020 at 2:25:26 AM UTC-8 Gerald Weis wrote: > I have the following problem. In a tiddler I wrote the title exactly as I > did in the tag. Now I would like to insert the title as a tag name in a > macro. However, > > ยดยดยด > <$ list [tag [<<CurrentTitle>>]] + [tag [$ art $]]> > ``` > does not work. at the moment my input looks like this. > > ``` > << person-device-a "tiddler name" "geraeteart" >> > ``` > > Since there are several types of devices, the macro is called several > times. The macro currently looks like this. > > ``` > \ define person-device-a (person type) > <tr valign = middle align = left> <th> $ art $ </th> > <td> > <$ list filter = "[tag [$ art $] sort [title]] + [tag [$ person $] sort > [title]]"> > </td> > <td valign = middle align = center> > <$ list filter = "[tag [$ person $]] + [tag [$ art $] count []]"> </ $ > list> > </td> > </tr> > \end > ``` > > What I want is that I can save myself having to enter the tiddler name. Is > there a way to do this? > > > -- 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/78bc199b-be0b-4c67-b780-82d37675ff6en%40googlegroups.com.

