mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-16 21:20:28 +00:00
27 lines
674 B
Plaintext
27 lines
674 B
Plaintext
|
title: Transclude/CustomWidget/TextWidgetOverride
|
||
|
description: Custom widget definition redefining the text widget
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
<$transclude $tiddler='TiddlerOne'>
|
||
|
</$transclude>
|
||
|
+
|
||
|
title: TiddlerOne
|
||
|
|
||
|
\whitespace trim
|
||
|
<!-- Redefining the text widget only works when it is explicitly invoked with the <$text> syntax, and not implicitly via typed text -->
|
||
|
\widget $text(text:'Jaguar')
|
||
|
\whitespace trim
|
||
|
<$genesis $type="$text" $remappable="no" text={{{ [<text>addprefix[≤]addsuffix[≥]] }}}/>
|
||
|
\end
|
||
|
|
||
|
<$text text="Dingo"/>
|
||
|
|
||
|
Crocodile
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>≤Dingo≥≤Jaguar≥</p>
|