2022-04-30 09:00:38 +00:00
|
|
|
title: Transclude/Parameterised/Slotted
|
2022-04-24 20:24:38 +00:00
|
|
|
description: Parameterised transclusion with slotted values
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-04-30 09:00:38 +00:00
|
|
|
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
2022-04-24 20:24:38 +00:00
|
|
|
<$value $name="content">
|
|
|
|
Hippopotamus
|
|
|
|
</$value>
|
2022-04-30 09:00:38 +00:00
|
|
|
</$transclude>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
|
|
|
<$parameters one='Jaguar'>
|
|
|
|
<$text text=<<one>>/>
|
|
|
|
<$slot $name="content">
|
|
|
|
Whale
|
|
|
|
</$slot>
|
|
|
|
</$parameters>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>FerretHippopotamus</p>
|