mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-12 21:09:57 +00:00
21b10a225f
Everything is draft.
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> |