Add FunctionDefaultValues test for default parameters

This commit is contained in:
Saq Imtiaz
2026-01-25 17:35:12 +01:00
committed by GitHub
parent 48c6694d30
commit f0d8852121

View File

@@ -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>