mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 03:14:36 +00:00
Add FunctionDefaultValues test for default parameters
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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>]
|
||||
|
||||
{{{ [.test[Special]] }}},{{{ [.test[]] }}}
|
||||
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>Special Content,Default Content</p>
|
||||
Reference in New Issue
Block a user