mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 23:26:57 +00:00
Add first pass of help panel
This is just an idea really. The help plugin is only included in the tw5.com wiki; the idea is to also include it in the empty.html wiki, either as a plugin or as part of the core. If it stays as a plugin, the idea would be to have different help plugins for different languages.
This commit is contained in:
28
plugins/tiddlywiki/help/help.tid
Normal file
28
plugins/tiddlywiki/help/help.tid
Normal file
@@ -0,0 +1,28 @@
|
||||
title: $:/plugins/help/Buttons/help
|
||||
tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/help}} {{$:/language/Buttons/Help/Caption}}
|
||||
description: {{$:/language/Buttons/Help/Hint}}
|
||||
|
||||
\define help-inner()
|
||||
<$reveal type="match" state="$:/config/ShowHelp" text="yes">
|
||||
<$button set="$:/config/ShowHelp" setTo="no" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class="""$(tv-config-toolbar-class)$ tc-selected""">
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/help}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="nomatch" state="$:/config/ShowHelp" text="yes">
|
||||
<$button set="$:/config/ShowHelp" setTo="yes" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class=<<tv-config-toolbar-class>>>
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/help}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
</$reveal>
|
||||
\end
|
||||
<<help-inner>>
|
||||
Reference in New Issue
Block a user