diff --git a/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid b/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid index d52c9d425..31ee624cb 100644 --- a/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid @@ -19,10 +19,15 @@ The TiddlerWidget sets the CurrentTiddler that applies for processing its conten The tiddler widget assigns several useful CSS classes to variables that it creates: -* ''missingTiddlerClass'': ''"tc-tiddler-exists"'' or ''"tc-tiddler-missing"'' depending upon whether the target tiddler exists -* ''shadowTiddlerClass'': ''"tc-tiddler-shadow"'' if the tiddler is a shadow tiddler -* ''systemTiddlerClass'': ''"tc-tiddler-system"'' if the tiddler is a system tiddler -* ''tiddlerTagClasses'': A space separated list of CSS classes named ''"tc-tagged-{tagname}"''. For example ''"tc-tagged-introduction"''. Note that tag names are UrlEncoded which means that the tag ''$:/tags/Macro'' appears as the CSS class ''"tc-tagged-%24%3A%2Ftags%2FMacro"'' +; missingTiddlerClass +: `tc-tiddler-exists` or... +: `tc-tiddler-missing` depending on whether the tiddler exists +;shadowTiddlerClass +:`tc-tiddler-shadow` if the tiddler is a shadow tiddler +;systemTiddlerClass +:`tc-tiddler-system` if the tiddler is a system tiddler +;tiddlerTagClasses +:a space separated list of CSS classes named `tc-tagged-{tagname}`,
e.g. `tc-tagged-introduction`

''Note:'' tag names are UrlEncoded which means that the tag [[$:/tags/Macro]] appears as the CSS class `tc-tagged-%24%3A%2Ftags%2FMacro` You can use these variables like this: @@ -30,6 +35,7 @@ You can use these variables like this: <$tiddler tiddler="MyOtherTiddler">
>> <$transclude/> +
```