created: 20200702104128510 modified: 20200702134809674 tags: $:/tags/ViewTemplate title: $:/core/ui/ViewTemplate/title type: text/vnd.tiddlywiki \define title-styles() fill:$(foregroundColor)$; \end \define config-title() $:/config/ViewToolbarButtons/Visibility/$(listItem)$ \end <div class="tc-tiddler-title"> <div class="tc-titlebar"> <span class="tc-tiddler-controls"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list> </span> <$set name="tv-wikilinks" value={{$:/config/Tiddlers/TitleLinks}}> <$link> <$set name="foregroundColor" value={{!!color}}> <span class="tc-tiddler-title-icon" style=<<title-styles>>> <$transclude tiddler={{!!icon}}/> </span> </$set> <!--MG: system tiddlers --> <$list filter="[all[current]!has[section]removeprefix[$:/]]"> <h2 class="tc-title" title={{$:/language/SystemTiddler/Tooltip}}> <span class="tc-system-title-prefix">$:/</span><$text text=<<currentTiddler>>/> </h2> </$list> <!--MG: normal titles --> <$list filter="[all[current]!has[section]!prefix[$:/]]"> <h2 class="tc-title"> <$set name="strippedTitle" filter="[all[current]split[/]last[]]"> <<strippedTitle>> </$set> </h2> </$list> <!--MG: with section --> <$list filter="[all[current]has[section]]"> <h2 class="tc-title"> <$set name="strippedTitle" filter="[all[current]split[/]last[]]"> <$view field="section"/>. <<strippedTitle>> </$set> </h2> </$list> </$link> </$set> </div> <$reveal type="nomatch" text="" default="" state=<<tiddlerInfoState>> class="tc-tiddler-info tc-popup-handle" animate="yes" retain="yes"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]" variable="listItem"><$transclude tiddler=<<listItem>> mode="block"/></$list> </$reveal> </div>