1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-07 02:26:19 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/ubertransclusion/CustomWidget-ActionWidget.tid
2022-04-26 13:05:44 +01:00

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>