mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
21 lines
423 B
Plaintext
21 lines
423 B
Plaintext
|
title: Transclude/Parameterised/Shortcut
|
||
|
description: Simple parameterised transclusion
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
\procedure test(one:'Jaguar')
|
||
|
{<$text text=<<one>>/>}
|
||
|
\end
|
||
|
|
||
|
<$transclude $variable='test' one='Ferret'/>
|
||
|
<$transclude $variable='test'/>
|
||
|
<<test "Rat">>
|
||
|
<<test one:"Mouse">>
|
||
|
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>{Ferret}{Jaguar}{Rat}{Mouse}</p>
|