>From my understanding of the docs and poking around while building my Json 
plugin, I would say that yes, they are important.

I still find myself looking up almost every widget to see if I am using the 
right syntax.

The trend that I have seen is that parameters that start with $ are "named 
parameters", those that do not are collected into a 'paramObject' 
internally, and are "optional parameters". I'm not sure if this can be 
generalized exactly like that..... but is how I think about them. This can 
be seen clearest in the <$action-setfield> widget. If you don't have 
$tiddler & $field it won't work ($value is optional). If you have $tiddler, 
but no $field or $value (etc), but you do have a set of optional 
parameters, such as  <$action-setfield $tiddler=<<currentTiddler>> 
name="the Name" date="the Date" location="the Location"> then those are 
interpreted as !!field = "value".
AttributeDescription
$tiddler The title of the tiddler whose fields are to be modified (if not 
provided defaults to the current tiddler 
<https://tiddlywiki.com/#Current%20Tiddler>)
$field Optional name of a field to be assigned the $value attribute
$index Optional index of a property in a data tiddler 
<https://tiddlywiki.com/#DataTiddlers> to be assigned the $value attribute
$value The value to be assigned to the field or index identified by the 
$field or $index attribute. If neither is specified then the value is 
assigned to the text field. If no value is specified, $field or $index will 
be deleted.
$timestamp Specifies whether the timestamp(s) of the target tiddler will be 
updated (*modified* and *modifier*, plus *created* and *creator* for newly 
created tiddlers). Can be "yes" (the default) or "no"
*{any attributes not starting with $}* Each attribute name specifies a 
field to be modified with the attribute value providing the value to assign 
to the field


On Wednesday, February 20, 2019 at 8:36:25 AM UTC-8, @TiddlyTweeter wrote:
>
> I'm just starting to (vaguely) understand TW code...
> A problem is variations I see in used syntax ... especially about when you 
> use $ or not. I get confused.
>
> Is it ... ?
>
> <$link to="hobbit" ...
>
> or is it ... ?
>
> <$link $to="hobbit"...
>
> Is it ... ?
>
> <$action-sendmessage $message="tm-close-tiddler" 
> $param={{{[has[draft.of]field:draft.of<item>]}}}/>
>
> or is it ... 
>
> <$action-sendmessage $message="tm-close-tiddler" 
> param={{{[has[draft.of]field:draft.of<item>]}}}/>
>
> (Thanks to Thomas for that one: 
> https://groups.google.com/d/msg/tiddlywiki/tUwDeDPQyDc/ie4Zyhx8BQAJ)
>
> Just trying to get clearer
> Josiah
>

-- 
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/8db3dd3f-9553-4280-87ac-7cacff6ba505%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to