purpose | insert an item T into a list immediately before an item B |
---|---|
input | a selection of titles |
suffix | (optional) the name of a variable containing the title of the tiddler before which this one should be inserted |
parameter | New in: 5.2.2 the insertbefore operator accepts 1 or 2 parameters, see below for details |
output | the input tiddler list with the new entry inserted |
New in: 5.2.2
The insertbefore
operator requires at least one parameter which specifies the title to insert into the input list. A second parameter can be used to specify the title before which the new title should be inserted.
insertbefore:<before-title-variable>[<title>],[<before-title>]
T
to insert in the input list.T
before this title B
in the input list.B
instead of the before-title
parameter.If the item B
isn't present in the input list then the new item is inserted at the end of the list.