mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 21:04:40 +00:00
17 lines
412 B
Plaintext
17 lines
412 B
Plaintext
title: Functions/FunctionDefaultValues
|
|
description: Use defaults for missing parameters in functions in filters
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function .test(prefix:Default) [[ Content]addprefix<prefix>]
|
|
|
|
<$text text={{{ [.test[Special]] }}}/>,<$text text={{{ [.test[]] }}}/>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>Special Content,Default Content</p>
|