mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-30 22:56:17 +00:00
29 lines
929 B
Plaintext
29 lines
929 B
Plaintext
|
title: Transclude/Parameterised/Positional/Shortcut
|
||
|
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}}
|
||
|
+
|
||
|
title: TiddlerOne
|
||
|
|
||
|
\whitespace trim
|
||
|
<$parameters zero='Jaguar' one='Lizard' two='Mole'>[{<$text text=<<zero>>/>}{<$text text=<<one>>/>}{<$text text=<<two>>/>}]</$parameters>
|
||
|
+
|
||
|
title: TiddlerTwo
|
||
|
|
||
|
\whitespace trim
|
||
|
<$parameters zero='Mouse' one='Horse' two='Owl'>
|
||
|
(<$transclude $tiddler=<<currentTiddler>> zero=<<zero>> one=<<one>> two=<<two>>/>)
|
||
|
</$parameters>
|
||
|
+
|
||
|
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>
|