2016-10-21 10:27:07 +00:00
caption: Widgets
2013-12-05 16:21:10 +00:00
created: 20131205160840915
2016-10-21 10:27:07 +00:00
modified: 20161020210726813
2014-09-11 08:15:58 +00:00
tags: WikiText
2013-12-05 16:21:10 +00:00
title: Widgets in WikiText
type: text/vnd.tiddlywiki
2014-02-20 21:42:31 +00:00
Widgets provide rich functionality within WikiText. They have the same syntax as [[HTML elements|HTML in WikiText]], but the tag name always starts with `$`. For example:
```
2014-08-28 20:43:44 +00:00
<$button message="tm-close-tiddler">Close Me!</$button>
2014-02-20 21:42:31 +00:00
```
Note that widgets inherit all the features of [[HTML in WikiText]]:
* Widget attributes can be specified as:
** Unquoted strings (that cannot contain spaces)
** Strings quoted with single or double quotes
2014-06-19 11:37:54 +00:00
** Strings quoted with triple-double quotes
2014-02-20 21:42:31 +00:00
** Macro invocations (eg `attr=<<myMacro>>`)
** Transclusions (eg, `attr={{MyTiddler!!field}}`)
2016-10-21 10:27:07 +00:00
** Filtered transclusions (eg, `attr={{{ [filter[op]] }}}`)
2014-02-20 21:42:31 +00:00
* The content of a widget is parsed in inline mode unless the opening tag is followed by two linebreaks, which forces block mode
** 'Inline mode' means that 'block mode' parse rules like headings, tables and lists are not recognised
See [[HTML in WikiText]] for more details.
The available widgets include:
2013-12-05 16:21:10 +00:00
2014-09-17 11:13:24 +00:00
<<list-links "[tag[Widgets]]">>