2022-04-30 09:00:38 +00:00
|
|
|
title: Transclude/CustomWidget/VariableAttribute
|
2022-04-24 20:24:38 +00:00
|
|
|
description: Custom widget definition using an attribute called $variable
|
|
|
|
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'>
|
|
|
|
</$transclude>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-21 14:47:19 +00:00
|
|
|
<!-- Redefine the <$$mywidget> widget by defining a transcludable variable with that name -->
|
|
|
|
\widget $$mywidget($variable:'Jaguar')
|
2022-05-02 09:56:22 +00:00
|
|
|
\whitespace trim
|
|
|
|
<$text text=<<$variable>>/>
|
2022-06-09 17:02:47 +00:00
|
|
|
<$slot $name="ts-raw">
|
2022-05-02 09:56:22 +00:00
|
|
|
Whale
|
|
|
|
</$slot>
|
|
|
|
\end
|
2022-05-21 14:47:19 +00:00
|
|
|
<$$mywidget $variable="Dingo">
|
2022-05-02 09:56:22 +00:00
|
|
|
Crocodile
|
2022-05-21 14:47:19 +00:00
|
|
|
</$$mywidget>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>DingoCrocodile</p>
|