The TiddlerWidget is used to set a value for the current tiddler variable, valid within the scope of the TiddlerWidget.
Attribute | Description |
---|---|
tiddler | The title of the tiddler to become the new current tiddler |
The tiddler widget assigns several useful CSS classes to variables that it creates:
tc-tiddler-exists
or...tc-tiddler-missing
depending on whether the tiddler existstc-tiddler-shadow
if the tiddler is a shadow tiddler tc-tiddler-system
if the tiddler is a system tiddlertc-tagged-{tagname}
,tc-tagged-introduction
tc-tagged-%24%3A%2Ftags%2FMacro
. See How to apply custom styles by tag for more detailsYou can use these variables like this:
<$tiddler tiddler="MyOtherTiddler">
<div class=<<missingTiddlerClass>>>
<$transclude/>
</div>
</$tiddler>
See also $:/core/ui/ViewTemplate.