Folks,
This thread is to celebrate and share new tricks and techniques that the new TiddlyWiki version enables. Please share your own, but please provide simple examples that would work on Tiddlywiki.com or discuss more complex possibilities in their own thread.
Using then and else we can now use filters to output messages without using more complex widgets
{{{ [all[current]tags[]limit[1]then[Has Tags]else[No tags]] }}}
Or to avoid a link being created
<$text text={{{ [all[current]tags[]limit[1]then[Has Tags]else[No tags]] }}}/>
Generate "field value pairs" from the current tiddler to include in a new tiddler button\define field-values-here()
<$list filter="[all[current]fields[]] -[[created]] -[[text]] -[[modified]] -[[title]] -[[tags]]" variable=fieldname>
<<fieldname>>="""<$text text={{{ [get<fieldname>trim[]addprefix["]addsuffix["]] ~[[""]] }}}/>""" </$list>
\end
Then use `<<field-values-here>>` to populate the "pragma when creating a new tiddler", without tags in this example.
Without trim this often failed with unwanted spaces in the output.
Regards
Tony