1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 03:49:56 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/transclude/CustomWidget-ActionWidget.tid
2022-04-30 10:00:38 +01:00

28 lines
649 B
Plaintext

title: Transclude/CustomWidget/ActionWidget
description: Custom widget definition
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
<$transclude $tiddler='Result'>
</$transclude>
_
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>