2022-04-30 09:00:38 +00:00
|
|
|
title: Transclude/CustomWidget/TextWidgetOverride
|
2022-04-24 20:24:38 +00:00
|
|
|
description: Custom widget definition redefining the text widget
|
|
|
|
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'>
|
|
|
|
</$transclude>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: TiddlerOne
|
|
|
|
|
|
|
|
\whitespace trim
|
|
|
|
<!-- Redefine the <$text> widget by defining a transcludable variable with that name -->
|
2022-05-13 07:49:53 +00:00
|
|
|
\widget $text(text:'Jaguar')
|
2022-05-02 09:56:22 +00:00
|
|
|
\whitespace trim
|
2022-05-05 07:20:14 +00:00
|
|
|
<$genesis $type="text" $remappable="no" text=<<text>>/>
|
2022-05-13 07:49:53 +00:00
|
|
|
<$set name="$text" value="">
|
2022-05-05 07:20:14 +00:00
|
|
|
<$slot $name="ts-body">
|
|
|
|
Whale
|
|
|
|
</$slot>
|
|
|
|
</$set>
|
2022-05-02 09:56:22 +00:00
|
|
|
\end
|
|
|
|
<$text text="Dingo">
|
|
|
|
Crocodile
|
|
|
|
</$text>
|
2022-05-03 15:53:00 +00:00
|
|
|
+
|
2022-04-24 20:24:38 +00:00
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>DingoCrocodile</p>
|