Re: [tw5] Re: template for translcusion of wiki content

2020-04-16 Thread TonyM
Jean-Pierre,

I am sorry, Your question is to complex and too hard to follow. 

   - Can you attach some tiddlers that demonstrate the problem on 
   tiddlywiki.com?
   - Can you show a simple example of what you are not able to do?
   - view gadget? view Widget?
   - If you asked what you want rather than showing us how you have tried 
   to get it, it may be easier for us to help.
   - Just saying something does not work is not helpful, what is the "bad" 
   result?
   - If you look behind the scenes in tiddlywiki you can often see how it 
   is done there and emulate it yourself.

Regards
Tony


On Friday, April 17, 2020 at 8:55:17 AM UTC+10, Jean-Pierre Rivière wrote:
>
> thank you for the <> macro. My tw5 version is 5.1.22.
>
> BTW, I cannot be successful into transforming the icon into an image link 
> to the tiddler of the displayed tip. Either the icon disappear, ot the 
> target of the link is not there or I have my coding directly written.
>
> \define !tipDirect(tiddler)
> <$tiddler tiddler="$tiddler$">
>  alt="tiddler for this tip">{{$:/core/images/tip}}<$transclude 
> mode="block"/>
> \end
>
> is nearly good but the link is not functional (once it opened tiddlers for 
> every word in the title of the tip). More simply I was thinking to code:
>
> \define !tipDirect(tiddler)
> <$tiddler tiddler="$tiddler$">
>  class="tip-icon">[[{{$:/core/images/tip}}|$tiddler]]<$transclude 
> mode="block"/>
> \end
>
> but the icons is not displayed here.
>
> I also tried
>
> \define !tipDirect(tiddler)
> <$tiddler tiddler="$tiddler$">
>  class="tip-icon">[[{{$:/core/images/tip}}\{{!!title}}]]<$transclude 
> mode="block"/>
> \end
>
> but the link is to "{{!!title}}" and of coure there is no more image.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/68b41166-ccc7-4c17-9f0f-58f02656f7ae%40googlegroups.com.


Re: [tw5] Re: template for translcusion of wiki content

2020-04-16 Thread Mat
Too tired to give elaborate answer but see LinkWidget in the docs. It is 
what one is supposed to use and takes care of all the stuff, including 
class, tooltip etc.

<:-)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6ebe188a-6b6f-424c-be04-c932d8ceb2e8%40googlegroups.com.


Re: [tw5] Re: template for translcusion of wiki content

2020-04-16 Thread Jean-Pierre Rivière
thank you for the <> macro. My tw5 version is 5.1.22.

BTW, I cannot be successful into transforming the icon into an image link
to the tiddler of the displayed tip. Either the icon disappear, ot the
target of the link is not there or I have my coding directly written.

\define !tipDirect(tiddler)
<$tiddler tiddler="$tiddler$">
{{$:/core/images/tip}}<$transclude
mode="block"/>
\end

is nearly good but the link is not functional (once it opened tiddlers for
every word in the title of the tip). More simply I was thinking to code:

\define !tipDirect(tiddler)
<$tiddler tiddler="$tiddler$">
[[{{$:/core/images/tip}}|$tiddler]]<$transclude
mode="block"/>
\end

but the icons is not displayed here.

I also tried

\define !tipDirect(tiddler)
<$tiddler tiddler="$tiddler$">
[[{{$:/core/images/tip}}\{{!!title}}]]<$transclude
mode="block"/>
\end

but the link is to "{{!!title}}" and of coure there is no more image.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CADGOhxO_FRZmucHdZ6SfiGJBzx49ptKtyQyXoGYM3SvnsGK%2BLg%40mail.gmail.com.


[tw5] Re: template for translcusion of wiki content

2020-04-15 Thread PMario
On Thursday, April 16, 2020 at 12:28:23 AM UTC+2, Jean-Pierre Rivière wrote:

So here's my attempts. I'm using the latest tw5 5.1.22 (BTW I can't find a 
> way to get the version number of a single file tiddlywik, besides $:/built 
> which doesn't ?):
>

There is a <> macro, which will show it. 

-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0940e2a0-b106-412d-90dd-91bce4fd5d7d%40googlegroups.com.