mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 10:34:53 +00:00
28 lines
661 B
Plaintext
28 lines
661 B
Plaintext
title: Ubertransclude/CustomWidget/ActionWidget
|
|
description: Custom widget definition
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
<$ubertransclude $tiddler='Result'>
|
|
</$ubertransclude>
|
|
_
|
|
title: Actions
|
|
|
|
\whitespace trim
|
|
<!-- Define the <$action-mywidget> widget by defining a transcludable variable with that name -->
|
|
<$set name="<$action-mywidget>" value="""\whitespace trim
|
|
<$parameters one='Jaguar'>
|
|
<$action-setfield $tiddler="Result" $field="text" $value=<<one>>/>
|
|
</$parameters>"""
|
|
>
|
|
<$action-mywidget one="Dingo">
|
|
Crocodile
|
|
</$action-mywidget>
|
|
</$set>
|
|
_
|
|
title: ExpectedResult
|
|
|
|
<p>Dingo</p> |