mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-08 02:49:56 +00:00
24 lines
1003 B
Plaintext
24 lines
1003 B
Plaintext
title: $:/plugins/tiddlywiki/tour/globals
|
|
tags: $:/tags/Global
|
|
|
|
\procedure tour-initialise-current-tour-step()
|
|
<$transclude $tiddler={{$:/state/tour/step}} $field="startup-actions"/>
|
|
\end
|
|
|
|
\procedure tour-restart()
|
|
<$action-setfield $tiddler="$:/config/ShowTour" text="show"/>
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]first[]] }}}/>
|
|
<<tour-initialise-current-tour-step>>
|
|
\end
|
|
|
|
\procedure tour-next-step()
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]after{$:/state/tour/step}else[$:/plugins/tiddlywiki/tour/steps/finished]] }}}/>
|
|
<<tour-initialise-current-tour-step>>
|
|
\end
|
|
|
|
\procedure tour-previous-step()
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]before{$:/state/tour/step}] :else[all[shadows+tiddlers]tag[$:/tags/TourStep]first[]] }}}/>
|
|
<<tour-initialise-current-tour-step>>
|
|
\end
|
|
|