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

Preloading

TiddlyWiki Community Wiki

Jump to: navigation, search
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.

Using the NewTiddler macro, newly-created tiddlers can be "preloaded" with boilerplate contents.

These predefined contents can either be entered directly, or retrieved from another tiddler.

[edit] Examples

<<newTiddler label:"new record"
	text:"foo"
	tag:"bar"
>>
<<newTiddler label:"new record"
	text:{{store.getTiddlerText("bar")}}
	tag:"bar"
>>

Both of these macro calls will create a button with

  • the label/caption "new record"
  • the tag "bar"

While the former macro creates a tiddler with "foo" as predefined content, the latter will add the contents from the tiddler called "bar" to the newly created tiddler.

Personal tools