mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 18:39:57 +00:00
683414f51e
This should clear up the remaining anomalies in #7009, let me know how you get on @btheado
30 lines
763 B
Plaintext
30 lines
763 B
Plaintext
title: Transclude/Parameterised/Positional/Variables
|
|
description: Positional parameterised transclusion of variables
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function myfunction(alpha:"apple",beta:"banana",gamma:"grenadine") [<alpha>]
|
|
\define mymacro(alpha:"apple",beta:"banana",gamma:"grenadine") $beta$
|
|
\function f(a) [<a>]
|
|
|
|
(Functions:
|
|
<$text text={{{ [<myfunction gamma:"unused" f1>] }}}/>
|
|
,
|
|
<$text text=<<myfunction gamma:"unused" f1>>/>
|
|
,
|
|
<<myfunction gamma:"unused" f1>>
|
|
)(Macros:
|
|
<$text text={{{ [<mymacro gamma:"unused" f1>] }}}/>
|
|
,
|
|
<$text text=<<mymacro gamma:"unused" f1>>/>
|
|
,
|
|
<<mymacro gamma:"unused" f1>>
|
|
)
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>(Functions:f1,f1,f1)(Macros:banana,banana,banana)</p> |