mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 02:26:19 +00:00
e01dfa1507
Just as we can define custom widgets we can also define custom parameterised filter operators
24 lines
547 B
Plaintext
24 lines
547 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> |