mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-01 23:56:18 +00:00
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>
|