Age (or "time since") macro/widget

Sounds great! :+1:

Thank you!

However, [get[date-field]] actually gets the field value from all tiddlers… I had to add all[current] to get only this tiddler’s field value.

Now, this gets me thinking …

If you have to first transclude a filter and then pipe it through a widget, wouldn’t it be easier if there was something like a “textfilter” macro?

<<textfilter {{!!date-field}} "[format:relativedate[]trim[ago]]">>

That “filters” the input value and outputs the resulting text?

Something like this:

\define textfilter(text, filter)
<$text text={{{ [[$text$]$filter$] }}} />
\end

Then I notice that this syntax doesn’t work, as you claim it does, in How can I pass the value of the a field or text into a macro - #2 by EricShulman

<<MacroName {{!!FieldName}}>>

I tried this with a JS macro that logs the input values, and “{{!!FieldName}}” is passed as a literal string. Also doesn’t work with the <<color>> core macro when passing a field value.

The other, more convoluted, syntax works, however:

<$macrocall $name="MacroName" var1={{!!FieldName}} />

Is there something I’m missing here?