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

pad Operator

29 novembre 2020 à 17h53
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

Learn more about how to use Filters

Depuis : 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