mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 03:19:56 +00:00
e01dfa1507
Just as we can define custom widgets we can also define custom parameterised filter operators
20 lines
430 B
Plaintext
20 lines
430 B
Plaintext
title: CustomOperators/Parameterised
|
|
description: Parameterised custom operator usage
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function [multiplybysomething[]](first:ignored,factor:2)
|
|
[multiply[2]multiply<factor>]
|
|
\end
|
|
|
|
<$text text={{{ [[123]multiplybysomething[]] }}}/>
|
|
-
|
|
<$text text={{{ [[123]multiplybysomething[x],[4]] }}}/>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>492-984</p> |