Transclusions of fields, variables, procedures, functions, and macros are an essential part of TiddlyWiki. Here's the standard syntax for including bits and pieces from other places in a tiddler.
See Updated Summary of Transclusion Syntax for a more detailed treatment.
Transclude the text field of a tiddler |
Here is some text to be transcluded. Here is some text to be transcluded. |
Transclude a specific field of a tiddler, here caption |
Include me please! |
Transclude an index from a data tiddler | (The Metadata tiddler contains details about Grok TiddlyWiki like its version number and project URL.)
Grok TiddlyWiki version 2.0.0 |
Transclude a tiddler through a template |
Here is some text to be transcluded. |
Transclude the current tiddler through a template |
The caption of the current tiddler is “Transclude the current tiddler through a template”. |
Transclude a tiddler with parameters |
(This one can't be shown as a live example because the live example code loses the parameters before they can be passed on.) |
Transclude the result of a filter |
|
Transclude the result of a filter through a template |
Place the (You may be wondering if there's a way to avoid even the repetition of adding the reference to the template to all your tiddlers. The answer is yes, and we'll be getting there in a couple chapters.) |
Transclude the value of a variable |
Hello! |
Call a procedure |
Hi Soren! |
Transclude the result of the first item in a filter expression returned by a function |
Alice (5 letters) |
Call a function within a filter expression using the function operator |
|
Call a function within a filter expression as an operator (requires the function to have a . in its name) |
|
Call a macro (transcluding its result), treating its parameter as a variable |
Hi Soren! |
Call a macro (transcluding its result), using its parameter in text substitution |
Hi Soren! |
Include the value of a variable in a macro via text substitution |
|