Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.

Tiddler Fields

TiddlyWiki Community Wiki

Jump to: navigation, search
This page is still incomplete. You can help by contributing to its expansion.
Please improve the article, or discuss the issue on the talk page.

Contents

[edit] TiddlyWiki as a Database

To appreciate the power and versatility of TiddlyWiki, it is helpful to understand TiddlyWiki as a versatile relational database, with a JavaScript engine, and a data warehouse within which each tiddler is a data record with a set of fields. Fields may be generated by the TiddlyWiki core engine, by plugins or by other means.

[edit] Default Fields

  • Title: unique title of the tiddler
  • Modifier: author/editor (corresponds to the current username)
  • Modified: last-modified date/time (12-digit number with the format YYYY0MM0DD0hh0mm)
  • Created: date/time the tiddler was created (12-digit number with the format YYYY0MM0DD0hh0mm)
  • Tags: a set of space-separated keywords (tags), enclosed in square brackets ([[...]] if the tag contains a space
  • Tiddler Body: contains textual content

The title field is a tiddler's unique identifier, so there cannot be two tiddlers with identical titles.

[edit] Additional Core Fields

There are additional fields that are or can be generated by the Tiddler

  • changecount
The first time you edit and save an existing tiddler, a changecount field is created, with an initial value of 1
Each subsequent time you edit the tiddler, the value of changecount is increased by 1
When you import tiddlers with the built-in ImportTiddlers function and you leave the Checkbox for:
"Keep these tiddlers linked to this server so that you can synchronise subsequent changes"
selected, the following server fields will be added to the imported tiddlers:
server.type adaptor (usually http or file)
server.host originating URL
server.workspace workspace
server.page.revision last update (format: YYYY0MM0DD0hh0mm)
  • doNotSave
used for temporary tiddlers which are not persistent (not saved to file)

[edit] Storage of Tiddler Fields

Within TiddlyWiki's store area, each tiddler is recorded in the following format:

<div title="Tiddler Title" modifier="Author/Editor" modified="YYYY0MM0DD0hh0mm" created="YYYY0MM0DD0hh0mm" tags="foo bar [[lorem  ipsum]]">
<pre>Body of the tiddler<\/pre>
</div>

[edit] Extended Fields

In addition to the TiddlyWiki core fields, it is possible to add extended fields.

Personal tools