Of course this is the simplest form of concatenation in wikitext.
{{$:TLS/object_type}}: {{$:/TLS/object_title}}
I addressed this and the new forms of substitution which is a key way of concatenating here Variable substitution within \procedure or \define - #3 by TW_Tones I cover a whole suit of ways.
Personally I love the new functions for this kind of thing. So I would most likely use;
\function lable() [{$:TLS/object_type}] [[: ]] [{$:/TLS/object_title}] +[join[]]
And use <<label>>
or [<label>]
where needed.
- To answer that question I would say the
[join[]]
operator is the concatenation operator.
However if the purpose is to simply pass something once, as a value to an attribute we now have the Substituted Attribute Values (I sometimes call these backtick attributes) which you mentioned, but perhaps overlooked them, which can concatenate text, variables and filters.
attr=`${ [{$:TLS/object_type}] [[: ]] [{$:/TLS/object_title}] +[join[]] }$`
- So you don’t need the separately define function
- But I think functions make my code look great
attr=<<label>>
as defined above.
- Note filter expressions, are the only way to reference tiddlers and fields here in backtick attributes.
- Tip: the text widget is good for testing these;
<$text text=`${ [{$:TLS/object_type}] [[: ]] [{$:/TLS/object_title}] +[join[]] }$`/>
If you want to create lists with a function, in an attribute do ask,
but I use " filter or list +[format:titlelist[]join[ ]]"
and you may need to enlist this to use later.