mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 19:39:57 +00:00
9e8d05f699
To ensure that custom filter operators cannot clash with future core operators.
24 lines
544 B
Plaintext
24 lines
544 B
Plaintext
title: CustomOperators/NestedParameterised
|
|
description: Nested parameterised custom operator usage
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function .dividebysomething(first:ignored,factor:0.5)
|
|
[divide[2]multiply<factor>]
|
|
\end
|
|
|
|
\function .multiplebysomething(first:ignored,factor:2)
|
|
[multiply[2].dividebysomething[],<factor>]
|
|
\end
|
|
|
|
<$text text={{{ [[123].multiplebysomething[]] }}}/>
|
|
-
|
|
<$text text={{{ [[123].multiplebysomething[x],[4]] }}}/>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>246-492</p> |