How to hide "Try it" button?

139 views
Skip to first unread message

g...@seznam.cz

unread,
Aug 19, 2019, 6:40:39 AM8/19/19
to TiddlyWiki
Hi, how to hide "Try it" button?

<$macrocall $name=".example" eg="example text">



Thank you for your help

TonyM

unread,
Aug 19, 2019, 7:18:37 AM8/19/19
to TiddlyWiki
More info required

I have no idea what you are asking

Tony

Mohammad

unread,
Aug 19, 2019, 7:39:46 AM8/19/19
to TiddlyWiki
Referning to https://groups.google.com/d/msg/tiddlywiki/4ChOVLtnOXg/1475vQwlAgAJ

The macro .example is part of tw5 documentation and NOT a macro distributed with Tiddlywiki 5.

and find the macro! Copy it in your own wiki and modify as you like!

--Mohammad

g...@seznam.cz

unread,
Aug 19, 2019, 7:48:39 AM8/19/19
to TiddlyWiki
@TonyM

g...@seznam.cz

unread,
Aug 19, 2019, 7:59:06 AM8/19/19
to TiddlyWiki
@Mohammand

Thank you very much.
What should I delete?
Which option is correct?


<$button set=<<.state>> setTo="show">Try it</$button>

<dd><$button set=<<.state>> setTo="show">Try it</$button></dd>

<dl>
<dd><$button set=<<.state>> setTo="show">Try it</$button></dd>
</dl>

<$reveal state=<<.state>> type="nomatch" text="show">
 
<dl>
 
<dd><$button set=<<.state>> setTo="show">Try it</$button></dd>
 
</dl>
</$reveal>

Mohammad

unread,
Aug 19, 2019, 5:58:30 PM8/19/19
to TiddlyWiki
Yes, delete the whole 

<$list filter="[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix[$n$]]" variable=".state">

<$reveal state=<<.state>> type="nomatch" text="show">
 
<dl>

 
<dd><$button set=<<.state>> setTo="show">Try it</$button></dd>
 
</dl>

</$reveal>
<$reveal state=<<.state>> type="match" text="show">
 
<dl>
 
<dd><$button set=<<.state>> setTo="">Hide</$button></dd>
 
</dl>
 
<blockquote class="doc-example-result">
 <$reveal default="$egvar$" type="match" text="NO-SUCH-VAR">
 $eg$
 </$reveal>
 <$reveal default="$egvar$" type="nomatch" text="NO-SUCH-VAR">
 <<$egvar$>>
 </$reveal>
 
</blockquote>
</$reveal>
</$list>

But then the .example is useless. If you explain what you want to do people here can help better.

--Mohammad
Reply all
Reply to author
Forward
0 new messages