mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-29 11:30:28 +00:00
1b0eec143e
@pmario: I’ve taken your suggestion and made the HTML element type(s) be macro parameters.
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
created: 20131205160840915
|
|
modified: 20140619111725471
|
|
tags: WikiText
|
|
title: Widgets in WikiText
|
|
type: text/vnd.tiddlywiki
|
|
caption: Widgets
|
|
|
|
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:
|
|
|
|
```
|
|
<$button message="tm-close-tiddler">Close Me!</$button>
|
|
```
|
|
|
|
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
|
|
** Strings quoted with triple-double quotes
|
|
** Macro invocations (eg `attr=<<myMacro>>`)
|
|
** Transclusions (eg, `attr={{MyTiddler!!field}}`)
|
|
* 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:
|
|
|
|
<<list-links "[tag[Widgets]]">>
|