On Thursday, December 10, 2020 at 5:05:04 PM UTC-8 [email protected] wrote:

> There is a pad[] filter operator in the very soon to be released TW 5.1.23


prior to TW5.1.23, padding can be done using split[] and join[], like this:

<$vars num="12">
{{{ [<num>addprefix[00000]split[]last[5]join[]] }}}
<$vars>

The resulting output is "00012".  Note that if the num value has more than 
5 digits, it will be truncated to only show the last 5 digits.

-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fa03c8b6-1db3-4633-b092-ec9cb78518c0n%40googlegroups.com.

Reply via email to