Hello 

What i wanna do is 
1. Macro see what the user is called in the tiddler title. 
2. Search which devices of the device class e.g. Screen the user has. 
3. Show the devices in the user's tiddler.


[email protected] schrieb am Donnerstag, 26. November 2020 um 15:39:22 
UTC+1:

> My bad, that was a typo caused by my text editor’s bracket autocomplete. 
> It 
> does work with the typo fixed, which is strange because I swear this has 
> not 
> worked for me before. Maybe at the time I didn’t know anything about 
> TiddlyWiki and I was doing something else wrong. Learned something new, 
> thanks! 
>
> Tones, I would think the benefit is that the <__parameter__> syntax can’t 
> get 
> messed up by quoting, no matter what is in the parameter (same reason you 
> might want to use it outside a filter). In your version, if there was a 
> double-quote in the name of the tag, the filter would break. You could use 
> triple quotes around the filter, but then triple quotes would mess it up, 
> and 
> so on.
>
>
> On Wednesday, November 25, 2020 at 6:19:55 PM UTC-6 Mark S. wrote:
>
>> 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/f25a1dc2-d00a-474c-98aa-6dc3b53451e5n%40googlegroups.com.

Reply via email to