2022-05-02 08:15:45 +00:00
|
|
|
title: Transclude/Parameterised/Positional/Shortcut/Parameters
|
|
|
|
description: Positional parameterised transclusion using shortcut syntax and parameters pragma
|
|
|
|
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-05-02 08:15:45 +00:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-02 12:49:41 +00:00
|
|
|
\parameters(zero:Jaguar,one:'Lizard',two:'Mole')
|
2022-05-02 08:15:45 +00:00
|
|
|
[{<$text text=<<zero>>/>}{<$text text=<<one>>/>}{<$text text=<<two>>/>}]
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-05-02 08:15:45 +00:00
|
|
|
title: TiddlerTwo
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-02 12:49:41 +00:00
|
|
|
\parameters(zero:'Mouse',one:Horse,two:'Owl')
|
2022-05-02 08:15:45 +00:00
|
|
|
(<$transclude $tiddler=<<currentTiddler>> zero=<<zero>> one=<<one>> two=<<two>>/>)
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-05-02 08:15:45 +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>
|