mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 02:26:19 +00:00
35 lines
770 B
Plaintext
35 lines
770 B
Plaintext
|
title: Ubertransclude/CustomWidget/OverrideUbertransclude
|
||
|
description: Custom widget definition attempting to override ubertransclude
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
<$ubertransclude $tiddler='TiddlerOne' one='Ferret'>
|
||
|
</$ubertransclude>
|
||
|
_
|
||
|
title: TiddlerZero
|
||
|
|
||
|
Antelope
|
||
|
_
|
||
|
title: TiddlerOne
|
||
|
|
||
|
\whitespace trim
|
||
|
<!-- Redefine the <$ubertransclude> widget by defining a transcludable variable with that name -->
|
||
|
<$set name="<$ubertransclude>" value="""\whitespace trim
|
||
|
<$parameters one='Jaguar'>
|
||
|
<$text text=<<one>>/>
|
||
|
<$slot $name="body">
|
||
|
Whale
|
||
|
</$slot>
|
||
|
</$parameters>"""
|
||
|
>
|
||
|
<$ubertransclude $tiddler="TiddlerZero">
|
||
|
Crocodile
|
||
|
</$ubertransclude>
|
||
|
</$set>
|
||
|
_
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>Antelope</p>
|