1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-15 22:34:51 +00:00

Use the tour step caption as the heading

This commit is contained in:
Jeremy Ruston 2023-10-05 13:50:02 +01:00
parent aa3f931721
commit 6f46775e94
14 changed files with 12 additions and 33 deletions

View File

@ -55,6 +55,9 @@ tags: $:/tags/PageTemplate
currentTourStep={{$:/state/tour/step}}
condition-var={{{ [<currentTourStep>get[condition-var]] :map[subfilter<currentTiddler>] }}}
>
<$list filter="[<currentTourStep>has[caption]]" variable="ignore">
<h1><$transclude $tiddler=<<currentTourStep>> $field="caption" mode="inline"/></h1>
</$list>
<!-- Handle steps without a condition -->
<$list filter="[<currentTourStep>!has[condition]]" variable="ignore">
<$transclude tiddler=<<currentTourStep>> mode="block"/>

View File

@ -1,9 +1,7 @@
title: $:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/steps/close-control-panel
caption: Closing the control panel
caption: Close the control panel
tags: $:/tags/Tour/IntroductionToTiddlyWiki
selector: .tc-story-river div[data-tiddler-title='$:/ControlPanel'] .tc-btn-\%24\%3A\%2Fcore\%2Fui\%2FButtons\%2Fclose
condition: [[$:/StoryList]!contains[$:/ControlPanel]]
! Close the control panel
Your task now is to close the control panel.

View File

@ -7,8 +7,6 @@ condition: [list[$:/temp/Tour/DemoStoryList]count[]match[0]]
\define tour-simplified-tiddler-close-button() yes
! Closing tiddlers
In the top right corner of each tiddler there is a button marked {{$:/core/images/close-button|0.65em}} that can be used to close them when you are finished with them.
Try closing both these tiddlers.

View File

@ -1,11 +1,9 @@
title: $:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/steps/create-tiddler
caption: Creating a tiddler
caption: Creating Tiddlers
tags: $:/tags/Tour/IntroductionToTiddlyWiki
selector: .tc-story-river div[data-tiddler-title="Draft of 'New Tiddler'"] input[value]:not([value="Congratulations"])
selector-fallback-1: .tc-story-river div[data-tiddler-title='Draft of \'New Tiddler\''] .tc-btn-\%24\%3A\%2Fcore\%2Fui\%2FButtons\%2Fsave
selector-fallback-2: .tc-btn-\%24\%3A\%2Fcore\%2Fui\%2FButtons\%2Fnew-tiddler
condition: [list[$:/StoryList]match[Congratulations]]
! Creating Tiddlers
Your task is to create and open a tiddler titled "Congratulations"

View File

@ -1,10 +1,8 @@
title: $:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/steps/end-of-fullscreen
caption: End of first part
caption: Going Deeper
tags: $:/tags/Tour/IntroductionToTiddlyWiki
display-mode: fullscreen
! Going deeper
Congratulations!
You have completed the first part of this tour.

View File

@ -1,9 +1,7 @@
title: $:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/steps/finished
caption: Finished
caption: Congratulations
tags: $:/tags/Tour/IntroductionToTiddlyWiki
! Congratulations
You have completed the tour.
You can choose to take another tour:

View File

@ -5,8 +5,6 @@ display-mode: fullscreen
enter-actions: <$action-setfield $tiddler="$:/temp/Tour/DemoStoryList" list="$:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/tiddlers/Jupiter"/>
condition: [[$:/temp/Tour/DemoStoryList]contains[$:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/tiddlers/Saturn]]
! How do links work?
Links allow you to decide if you want more information on a particular area or term as you go.
Try clicking the link to "Saturn".

View File

@ -4,6 +4,4 @@ tags: $:/tags/Tour/IntroductionToTiddlyWiki
selector: .tc-btn-\%24\%3A\%2Fcore\%2Fui\%2FButtons\%2Fcontrol-panel
condition: [[$:/StoryList]contains[$:/ControlPanel]]
! Welcome to {{$:/config/Tours/IntroductionToTiddlyWiki/ProductName}}
Your task is to open the control panel.
Your task is to open the control panel by clicking the icon that looks like a cog in the sidebar.

View File

@ -1,11 +1,9 @@
title: $:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/steps/recent
caption: Locating recent tiddlers
caption: Finding recent tiddlers
tags: $:/tags/Tour/IntroductionToTiddlyWiki
selector: .tc-sidebar-tabs-main .tc-timeline > .tc-menu-list-item:nth-child(1) .tc-menu-list-subitem:nth-child(1) .tc-tiddlylink
selector-fallback-1: .tc-sidebar-tabs-main button:nth-child(3)
condition: [list[$:/StoryList]match<condition-var>]
condition-var: [all[tiddlers]!is[system]!sort[modified]]
! Searching
Your task is to use the "Recent" tab of the sidebar to open the most recently editted tiddler.

View File

@ -4,6 +4,4 @@ tags: $:/tags/Tour/IntroductionToTiddlyWiki
selector: .tc-sidebar-search .tc-popup-handle
condition: [{$:/temp/search}match[help]]
! Searching
Your task is to search for the phrase "help".

View File

@ -1,10 +1,8 @@
title: $:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/steps/tiddlers
caption: Tiddlers
caption: How does {{$:/config/Tours/IntroductionToTiddlyWiki/ProductName}} work?
tags: $:/tags/Tour/IntroductionToTiddlyWiki
display-mode: fullscreen
! How does {{$:/config/Tours/IntroductionToTiddlyWiki/ProductName}} work?
{{$:/config/Tours/IntroductionToTiddlyWiki/ProductName}} lets you collect and organise all kinds of information into interconnected bite-sized pieces called ''tiddlers''.
A tiddler is like an index card.

View File

@ -3,8 +3,6 @@ caption: Welcome
tags: $:/tags/Tour/IntroductionToTiddlyWiki
display-mode: fullscreen
! Hello!
!! An interactive tour of {{$:/config/Tours/IntroductionToTiddlyWiki/ProductName}}
Welcome to our tour of {{$:/config/Tours/IntroductionToTiddlyWiki/ProductName}}.

View File

@ -1,5 +1,5 @@
title: $:/plugins/tiddlywiki/tour/using-tags/finished
caption: Finished
caption: Congratulations
tags: $:/tags/Tour/UsingTags
! Congratulations
<<tour-chooser filter:"[all[shadows+tiddlers]tag[$:/tags/Tour]] -[<currentTour>]">>

View File

@ -2,6 +2,4 @@ title: $:/plugins/tiddlywiki/tour/using-tags/welcome
caption: Welcome
tags: $:/tags/Tour/UsingTags
! Hello!
!! An introduction to using tags in ~TiddlyWiki