On Thursday, March 9, 2017 at 8:29:40 AM UTC-8, Lost Admin wrote:
>
> I can't figure out how to properly set the defaults in the macro to do 
> what I want. Specifically, in the code below, the default for the filter 
> parameter of the macro call should not explicitly define "grid" as the tag, 
> but should take it from the title of the current tiddler.
>

> \define grid(filter:"[tag[grid]]", list:"[list[]]")
>

Try "[tag<currentTiddler>]" . Might work in some cases.
 

> Why I can sometimes use shorthands like {{ ... }} and <<...>> but other 
> times I have to use <$.../> and, more importantly how to identify when so I 
> don't keep re-writing things because they don't work.
>

Study the documentation at tiddlywiki.com, especially the parts about 
filters and filter operators. The whole 
macro/transclusion/variables/parametres thing is inconsistent. It's not 
like a real programming language. I've gotten to the point where about 80% 
of the time I can figure out how to do what I want, but still end up 
banging head against the table too much of the time, and would be hard 
pressed to explain the parts that I do understand.

Use someone else's stuff (like Jed and Stephan) if you can.

Good luck!
Mark
 

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/325bde1f-98ba-460e-83d9-88817f44236b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to