2022년 5월 13일 오전 11:33
Widgets provide rich functionality within WikiText. They have the same syntax as HTML elements, but the tag name always starts with $
. For example:
<$button message="tm-navigate" to="HelloThere">Open ~HelloThere</$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}}
) - Filtered transclusions (eg,
attr={{{ [filter[op]] }}}
) - New in v5.3.0 Substituted Attribute Values
- 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:
- action-confirm
- action-createtiddler
- action-deletefield
- action-deletetiddler
- action-listops
- action-log
- action-navigate
- action-popup
- action-sendmessage
- action-setfield
- action-setmultiplefields
- ActionWidget Execution Modes
- ActionWidgets
- browse
- button
- checkbox
- codeblock
- count
- data
- diff-text
- draggable
- droppable
- dropzone
- edit-bitmap
- edit-text
- edit
- encrypt
- entity
- error
- EventCatcherWidget
- fieldmangler
- fields
- fill
- genesis
- image
- importvariables
- jsontiddler
- keyboard
- let
- linkcatcher
- link
- list
- LogWidget
- macrocall
- MessageCatcherWidget
- MessageHandlerWidgets
- navigator
- parameters
- password
- vars
- radio
- range
- reveal
- scrollable
- select
- setmultiplevariables
- setvariable
- set
- slot
- testcase
- text
- tiddler
- transclude
- TriggeringWidgets
- vars
- view
- wikify