It works, finally - thanks! \define imageLink(url,alt, image) <a href="images/$url$" target="_self">[img alt="$alt$" [$image$]]</a> \end
On Sunday, May 24, 2015 at 5:42:15 AM UTC+10, Mark S. wrote: > > I think you want > > alt="$alt$" > > Without knowing where your actual image is located or seeing your file > paths, I can't comment on the missing image. Make sure your image is in a > subdirectory called "images" immediately below your TW file. My version > with my directory structure and images worked. > > HTH > Mark > > > > > On Friday, May 22, 2015 at 10:44:59 PM UTC-7, Suzanne McHale wrote: >> >> I have been trying to add the alt="[some text]" attribute to my image >> thumbnail links for accessibility purposes (as opposed to the "tooltip" >> text, which in html code is title=[some text]), but nothing seems to be >> working - when I save the tiddler, the alt text is not there. Ideally I >> would like to include it in the image link macro I use (as described here >> <https://groups.google.com/forum/#!msg/tiddlywiki/JU6yf1MNDHM/otpA1fDTlZgJ>) >> if possible, but nothing I have tried is working, such as: >> >> \define imageLink(url,image,alt) >> <a href="images/$url$" target="_self">[img alt="$title$" [$image$]]</a> >> \end >> >> I was trying to use the tooltip as the alt image, but it gets messed up >> when rendered in the html code, and the image does not display: >> >> <a target="_self" href="images/image.jpg"><img alt="$title$" title="image" >> src="images/tn-image.jpg"></a> >> >> >> I have no idea what I am doing, so I'm stuck! >> >> -- 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 post to this group, send email to tiddlywiki@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/f87e3b42-aa25-44bc-b4d1-56efe7ea6d89%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.