2022-04-30 11:44:26 +00:00
|
|
|
title: Transclude/Parameterised/Shortcut
|
|
|
|
description: Simple parameterised transclusion
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-09 17:00:09 +00:00
|
|
|
\procedure test(one:'Jaguar')
|
2022-04-30 11:44:26 +00:00
|
|
|
{<$text text=<<one>>/>}
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$transclude $variable='test' one='Ferret'/>
|
|
|
|
<$transclude $variable='test'/>
|
2022-05-08 15:05:32 +00:00
|
|
|
<<test "Rat">>
|
|
|
|
<<test one:"Mouse">>
|
|
|
|
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-30 11:44:26 +00:00
|
|
|
title: ExpectedResult
|
|
|
|
|
2022-05-08 15:05:32 +00:00
|
|
|
<p>{Ferret}{Jaguar}{Rat}{Mouse}</p>
|