thumbnail-right just an image

101 views
Skip to first unread message

un.ol...@gmail.com

unread,
Sep 8, 2015, 5:57:38 AM9/8/15
to TiddlyWiki
Hi,

I would like to do that:

<<thumbnail-right image:"Tiddler Poster.png" >>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

However there is a </$link> written just bellow the image. How can I avoid that?

BTW I would like to add a legend but if I use caption, it is written on the image and not bellow it...

Olivier.

Mat

unread,
Sep 8, 2015, 6:11:58 AM9/8/15
to TiddlyWiki
That macro was news to me. I find it heere: $:/core/macros/thumbails 

The first line of it is:

\define thumbnail(link,icon,color,background-color,image,caption,width:"280",height:"157")

i.e to me it seems that it expects as its first argument a link, i.e which tiddler that it should link to. You can try to make this empty like so:

<<thumbnail-right image:"" "Tiddler Poster.png" >>

...or, better, make it link to http://tiddlywiki.com/#HelpingTiddlyWiki

<:-)

Evolena

unread,
Sep 8, 2015, 8:18:48 AM9/8/15
to tiddl...@googlegroups.com


Le mardi 8 septembre 2015 12:11:58 UTC+2, Mat a écrit :
i.e to me it seems that it expects as its first argument a link, i.e which tiddler that it should link to. You can try to make this empty like so:

<<thumbnail-right image:"" "Tiddler Poster.png" >>

No, his macro call is right. The first link parameter is optional, and as he only uses the image parameter, he prefixes it correctly.

It seems to be a problem of the thumbnail macro when there is no caption parameter (it can be reproduced by copying the example in the thumbnail macro doc and removing only the caption parameter), but I have not enough time right now to investigate further.

Birthe C

unread,
Sep 8, 2015, 8:24:13 AM9/8/15
to TiddlyWiki
Hi Olivier and Mat,

I tried to follow the example: http://tiddlywiki.com/#thumbnail%20Macro%20%28Examples%29

The image flows over the bottom border of the tiddler, so you will need to clear float.

Birthe

Evolena

unread,
Sep 8, 2015, 9:37:35 AM9/8/15
to TiddlyWiki
OK, I've found how to correct the display of this "</$link>" when there is no caption parameter :

In the shadow tiddler "$:/core/macros/thumbails", at the end of the definition of the thumbnail macro, there are these lines:

</div><div class="tc-thumbnail-caption">
$caption$
</div></div></$link>
\end

The issue is corrected by adding a line break between the two </div> :

</div><div class="tc-thumbnail-caption">
$caption$
</div>
</div></$link>
\end

(I don't know exactly why, but it works)

I may push the correction to the github repository for the next version.

For the caption which is overlapping the image, I think it is done in this way on purpose, but you could try to change the CSS classes.

Olivier

unread,
Sep 8, 2015, 9:45:40 AM9/8/15
to tiddl...@googlegroups.com
It works :) This line break is just amazing...

Thanks.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/qDcQZ0OGVIs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d884e45b-5c18-498d-877b-980c33c4f889%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jeremy Ruston

unread,
Sep 8, 2015, 12:53:27 PM9/8/15
to TiddlyWiki
Hi Evolena

I may push the correction to the github repository for the next version.

Please do. Ideally, I'd like to understand why the fix works.

Many thanks

Jeremy
 

For the caption which is overlapping the image, I think it is done in this way on purpose, but you could try to change the CSS classes.

--
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+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages