From 152c3db9a1296fad25b2844e716c7f7c63e69364 Mon Sep 17 00:00:00 2001 From: William Jackson Date: Tue, 5 Jan 2016 21:02:18 +0200 Subject: [PATCH] Updated docs to include setting of TextReferences Can now accept any number of attributes of the form TextReference="value" -- these may be fields "(Tiddler!!field="value") or indices (Tiddler##index="value.) --- editions/tw5.com/tiddlers/widgets/ActionSetFieldWidget.tid | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/ActionSetFieldWidget.tid b/editions/tw5.com/tiddlers/widgets/ActionSetFieldWidget.tid index 0e46808f7..ffe8901b5 100644 --- a/editions/tw5.com/tiddlers/widgets/ActionSetFieldWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ActionSetFieldWidget.tid @@ -19,7 +19,8 @@ The ''action-setfield'' widget is invisible. Any content within it is ignored. |$index |Optional index of a property in a [[data tiddler|DataTiddlers]] to be assigned the $value attribute| |$value |The value to be assigned to the field or index identified by the $field or $index attribute. If neither is specified then the value is assigned to the text field. If no value is specified, $field or $index will be deleted.| |$timestamp |Specifies whether the timestamp(s) of the target tiddler will be updated (''modified'' and ''modifier'', plus ''created'' and ''creator'' for newly created tiddlers). Can be "yes" (the default) or "no" | -|//{any attributes not starting with $}// |Each attribute name specifies a field to be modified with the attribute value providing the value to assign to the field | +|Attributes of the form TextReference="value" |Each TextReference identifies a field or index to be assigned the corresponding attribute value | +|//{any other attributes not starting with $}// |Each attribute name specifies a field to be assigned the value specified by the attribute value | ! Examples @@ -53,7 +54,7 @@ Here is an example of a button that assigns tags and fields to the tiddler Hello <$macrocall $name='wikitext-example-without-html' src='<$button> -<$action-setfield $tiddler="HelloThere" tags="MoreTag [[Further More Tags]]" color="green"/> +<$action-setfield HelloThere!!tags="MoreTag [[Further More Tags]]" HelloThere!!color="green"/> <$action-sendmessage $message="tm-edit-tiddler" $param="HelloThere"/> Edit ~HelloThere '/>