2022-05-06 14:01:17 +00:00
|
|
|
title: CustomOperators/Parameterised
|
|
|
|
description: Parameterised custom operator usage
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-23 15:40:21 +00:00
|
|
|
\function .multiplybysomething(first:ignored,factor:2)
|
2022-05-06 14:01:17 +00:00
|
|
|
[multiply[2]multiply<factor>]
|
|
|
|
\end
|
|
|
|
|
2022-05-23 15:40:21 +00:00
|
|
|
<$text text={{{ [[123].multiplybysomething[]] }}}/>
|
2022-05-06 14:01:17 +00:00
|
|
|
-
|
2022-05-23 15:40:21 +00:00
|
|
|
<$text text={{{ [[123].multiplybysomething[x],[4]] }}}/>
|
2022-05-06 14:01:17 +00:00
|
|
|
|
|
|
|
+
|
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>492-984</p>
|