1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 19:39:57 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/ubertransclusion/CustomWidget-ActionWidget.tid

28 lines
661 B
Plaintext
Raw Normal View History

2022-04-26 12:05:44 +00:00
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>