Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.
View (macro)
TiddlyWiki Community Wiki
This page's contents need to be reviewed and/or refactored to comply with TiddlyWiki.org's quality standards.
Please improve the article, or discuss the issue on the talk page.
Syntax: <<view fieldname how ...>>
Retrieves a specified field (given by fieldname) from the tiddler to be displayed and outputs its value in one of the following ways (the optional //how// parameter):
- (unspecified): render as is (without formatting)
- link: format as a link (using createTiddlyLink)
- wikified: format using all the normal rendering rules
- date: expects a value of the form YYYYMMDDHHMM and outputs it using either a specified format (...) or config.views.wikified.dateFormat
The standard field names are:
- title - the tiddler title
- tiddler - the tiddler title (as well)
- text - the text of the tiddler
- modifier - the person who last modified it
- modified - date&time of last modification
- created - when it was created
- tags - the tiddler tags
If your tiddlers contain custom fields, they could be specified as well.
The view macro is used extensively in the standard tiddler rendering templates (ViewTemplate and EditTemplate).

