1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-29 16:53:14 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/examples/insertbefore Operator (Examples).tid
Ben Webber a51191d334
Support specifying insertbefore position title as parameter (#6477)
* Support specifying insertbefore position title as parameter

Closes: #6133

* Update insertbefore calls with new variable parameter syntax

See-also: 96b52606a (Support specifying insertbefore position title as parameter, 2022-02-21)
2022-02-24 11:08:06 +00:00

29 lines
1017 B
Plaintext

created: 20220223004441865
modified: 20220223004441865
tags: [[Operator Examples]] [[insertbefore Operator]]
title: insertbefore Operator (Examples)
type: text/vnd.tiddlywiki
\define before-title() Friday
\define missing-title() Yesterday
\define display-variable(name)
''<$text text=<<__name__>>/>'': <code><$text text={{{ [<__name__>getvariable[]] }}}/></code>
\end
These examples use the following predefined variables:
* <<display-variable before-title>>
* <<display-variable missing-title>>
<<.operator-example 1 """[list[Days of the Week]insertbefore[Today]]""">>
<<.operator-example 2 """[list[Days of the Week]insertbefore[Today],[Tuesday]]""">>
<<.operator-example 3 """[list[Days of the Week]insertbefore[Today],<before-title>]""">>
<<.operator-example 4 """[list[Days of the Week]insertbefore:before-title[Today]]""">>
<<.operator-example 5 """[list[Days of the Week]insertbefore[Today],<missing-title>]""">>
<<.operator-example 6 """[list[Days of the Week]insertbefore:missing-title[Today]]""">>