1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-18 11:29:55 +00:00

Split the tiddler subtitle into individual segments tagged $:/tags/ViewTemplate/Subtitle (#6779)

This commit is contained in:
Jeremy Ruston 2022-07-15 17:37:25 +01:00 committed by GitHub
parent 19331cc6f9
commit 1ca6305acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 4 deletions

View File

@ -4,7 +4,11 @@ tags: $:/tags/ViewTemplate
\whitespace trim
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-subtitle">
<$link to={{!!modifier}} />
<$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}}/>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Subtitle]!has[draft.of]]" variable="subtitleTiddler" counter="indexSubtitleTiddler">
<$list filter="[<indexSubtitleTiddler-first>match[no]]" variable="ignore">
&nbsp;
</$list>
<$transclude tiddler=<<subtitleTiddler>> mode="inline"/>
</$list>
</div>
</$reveal>

View File

@ -0,0 +1,4 @@
title: $:/core/ui/ViewTemplate/subtitle/modified
tags: $:/tags/ViewTemplate/Subtitle
<$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}}/>

View File

@ -0,0 +1,4 @@
title: $:/core/ui/ViewTemplate/subtitle/modifier
tags: $:/tags/ViewTemplate/Subtitle
<$link to={{!!modifier}}/>

View File

@ -0,0 +1,2 @@
title: $:/tags/ViewTemplate/Subtitle
list: $:/core/ui/ViewTemplate/subtitle/modifier $:/core/ui/ViewTemplate/subtitle/modified

View File

@ -1,9 +1,9 @@
caption: $:/tags/ViewTemplate
created: 20180926170345251
description: marks the view template
description: identifies the individual segments that are displayed as part of the view template
modified: 20180926171456532
tags: SystemTags
title: SystemTag: $:/tags/ViewTemplate
type: text/vnd.tiddlywiki
The [[system tag|SystemTags]] `$:/tags/ViewTemplate` marks the view template
The [[system tag|SystemTags]] `$:/tags/ViewTemplate` identifies the individual segments that are displayed as part of the view template

View File

@ -0,0 +1,9 @@
caption: $:/tags/ViewTemplate/Subtitle
created: 20220714093251204
description: identifies the individual segments that are displayed as the tiddler subtitle
modified: 20220714093251204
tags: SystemTags
title: SystemTag: $:/tags/ViewTemplate/Subtitle
type: text/vnd.tiddlywiki
The [[system tag|SystemTags]] `$:/tags/ViewTemplate/Subtitle` identifies the individual segments that are displayed as the tiddler subtitle