mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-11 15:26:05 +00:00
@@ -18,9 +18,9 @@ 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'': ''"tw-tiddler-exists"'' or ''"tw-tiddler-missing"'' depending upon whether the target tiddler exists
|
||||
* ''shadowTiddlerClass'': ''"tw-tiddler-shadow"'' if the tiddler is a shadow tiddler
|
||||
* ''systemTiddlerClass'': ''"tw-tiddler-system"'' if the tiddler is a system tiddler
|
||||
* ''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 ''"tw-tagged-{tagname}"''. For example ''"tw-tagged-introduction"''. Note that tag names are UrlEncoded which means that the tag ''$:/tags/Macro'' appears as the CSS class ''"tw-tagged-%24%3A%2Ftags%2FMacro"''
|
||||
|
||||
You can use these variables like this:
|
||||
|
@@ -22,7 +22,7 @@ Similar syntax is used to assign styles. For example:
|
||||
|
||||
Multiple styles and classes can be mixed. For example:
|
||||
|
||||
<<wikitext-example src:"@@.tw-tiddler-frame
|
||||
<<wikitext-example src:"@@.tc-tiddler-frame
|
||||
@@width:400px;
|
||||
Some text
|
||||
@@
|
||||
|
Reference in New Issue
Block a user