mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
a51191d334
* 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)
29 lines
1017 B
Plaintext
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]]""">>
|