This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

pad Operator

29th November 2020 at 5:53pm
Filter Operators String Operators
purposereturns each item in the list padded to the specified length
inputa selection of titles
suffix(optional). Whether to pad by adding a "suffix" or "prefix". Defaults to "prefix".
parameterthe pad operator accepts 1 or more parameters, see below for details
outputthe input titles padded to the specified length

New in: 5.1.23

The pad operator requires at least one parameter which specifies the desired length of the input titles. A second optional parameter can be used to specify the string to pad with (defaults to "0").

[pad[<length>],[<padding-string>]]
  • length : the desired final length of the input titles.
  • padding-string: (optional). The string to use to pad to the desired length. Defaults to "0".

Examples