mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-12 07:19:44 +00:00
![Simon Huber](/assets/img/avatar_default.png)
* add whitespace trim to help button * add whitespace trim to new markdown button * Update help.tid
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
title: $:/plugins/help/Buttons/help
|
|
tags: $:/tags/PageControls
|
|
caption: {{$:/core/images/help}} {{$:/language/Buttons/Help/Caption}}
|
|
description: {{$:/language/Buttons/Help/Hint}}
|
|
|
|
\whitespace trim
|
|
\define help-inner()
|
|
\whitespace trim
|
|
<$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>>
|