mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
fixes example and improves readability
This commit is contained in:
parent
544ee4668e
commit
31c9998c62
|
@ -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:
|
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
|
; missingTiddlerClass
|
||||||
* ''shadowTiddlerClass'': ''"tc-tiddler-shadow"'' if the tiddler is a shadow tiddler
|
: `tc-tiddler-exists` or...
|
||||||
* ''systemTiddlerClass'': ''"tc-tiddler-system"'' if the tiddler is a system tiddler
|
: `tc-tiddler-missing` depending on whether the tiddler exists
|
||||||
* ''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"''
|
;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}`,<br>e.g. `tc-tagged-introduction`<br><br>''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:
|
You can use these variables like this:
|
||||||
|
|
||||||
|
@ -30,6 +35,7 @@ You can use these variables like this:
|
||||||
<$tiddler tiddler="MyOtherTiddler">
|
<$tiddler tiddler="MyOtherTiddler">
|
||||||
<div class=<<missingTiddlerClass>>>
|
<div class=<<missingTiddlerClass>>>
|
||||||
<$transclude/>
|
<$transclude/>
|
||||||
|
</div>
|
||||||
</$tiddler>
|
</$tiddler>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user