mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 18:39:57 +00:00
3af2cc2691
Can invoke any functions, not just those start with a period. And can pass zero parameters (in contrast when invoked as a custom filter operator there's no way to omit the first parameter).
21 lines
363 B
Plaintext
21 lines
363 B
Plaintext
title: CustomOperators/Simple
|
|
description: Simple custom operator usage
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
|
|
\function .multiplybytwo()
|
|
[multiply[2]]
|
|
\end
|
|
|
|
<$text text={{{ [[123].multiplybytwo[]] }}}/>
|
|
|
|
|
<$text text={{{ [[123]function[.multiplybytwo]] }}}/>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>246|246</p> |