mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-18 20:10:02 +00:00

* change 3 set-widgets to 1 var-widget call. Add data-tags and userClass. * add new documentation and change the existing one accordingly.
12 lines
684 B
Plaintext
12 lines
684 B
Plaintext
title: $:/core/ui/ViewTemplate
|
|
|
|
\define frame-classes()
|
|
tc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$ $(userClass)$
|
|
\end
|
|
\define folded-state()
|
|
$:/state/folded/$(currentTiddler)$
|
|
\end
|
|
<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify "$:/state/popup/tiddler-info">> userClass={{!!class}}><$tiddler tiddler=<<currentTiddler>>><div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class=<<frame-classes>>><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
|
</div>
|
|
</$tiddler></$vars>
|