2022-04-30 09:00:38 +00:00
|
|
|
title: Transclude/Parameterised/Positional/Shortcut
|
2022-04-29 21:35:47 +00:00
|
|
|
description: Positional parameterised transclusion using shortcut syntax
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
|
|
|
{{TiddlerOne}}
|
|
|
|
{{TiddlerOne|Ferret}}
|
|
|
|
{{TiddlerOne|Butterfly|Moth}}
|
|
|
|
{{TiddlerOne|Beetle|Scorpion|Snake}}
|
|
|
|
{{TiddlerOne||TiddlerTwo|Beetle|Scorpion|Snake}}
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-29 21:35:47 +00:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
|
|
|
<$parameters zero='Jaguar' one='Lizard' two='Mole'>[{<$text text=<<zero>>/>}{<$text text=<<one>>/>}{<$text text=<<two>>/>}]</$parameters>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-29 21:35:47 +00:00
|
|
|
title: TiddlerTwo
|
|
|
|
|
|
|
|
\whitespace trim
|
|
|
|
<$parameters zero='Mouse' one='Horse' two='Owl'>
|
2022-04-30 09:00:38 +00:00
|
|
|
(<$transclude $tiddler=<<currentTiddler>> zero=<<zero>> one=<<one>> two=<<two>>/>)
|
2022-04-29 21:35:47 +00:00
|
|
|
</$parameters>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-29 21:35:47 +00:00
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>[{Jaguar}{Lizard}{Mole}]</p><p>[{Ferret}{Lizard}{Mole}]</p><p>[{Butterfly}{Moth}{Mole}]</p><p>[{Beetle}{Scorpion}{Snake}]</p><p>([{Beetle}{Scorpion}{Snake}])</p>
|