mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 02:26:19 +00:00
4f2f689ab9
In other words, the transclude widget distinguishes between functions and macros and handles the parameters appropriately
21 lines
422 B
Plaintext
21 lines
422 B
Plaintext
title: Transclude/Parameterised/Shortcut
|
|
description: Simple parameterised transclusion
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function test(one:'Jaguar')
|
|
{<$text text=<<one>>/>}
|
|
\end
|
|
|
|
<$transclude $variable='test' one='Ferret'/>
|
|
<$transclude $variable='test'/>
|
|
<<test "Rat">>
|
|
<<test one:"Mouse">>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>{Ferret}{Jaguar}{Rat}{Mouse}</p> |