mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-27 15:01:07 -08:00
24 lines
No EOL
553 B
Text
24 lines
No EOL
553 B
Text
title: Functions/Function/Indented
|
|
description: Indented function definition
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function .dividebysomething(factor:0.5)
|
|
[divide<factor>]
|
|
\end
|
|
|
|
\function multiplebysomething(first:ignored,factor:2)
|
|
[multiply<factor>multiply[2].dividebysomething[0.25]]
|
|
\end
|
|
|
|
<$text text={{{ [[4]function[multiplebysomething]] }}}/>
|
|
|
|
|
<$text text={{{ [[6]function[multiplebysomething],[ignored],[4]] }}}/>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>64|192</p> |