This should do literally what you want:

\define imageit(image:"image.jpg",path:"TW-Images/2017/")
<a href="$path$$image$" target="new"><img src="$path$$image$" width="25%" 
height="25%" /></a>

BTW, I have a variation of Tobias' macro that allows me to configure the 
image path with a drop-down selection of paths. So it's easier to hop 
between platforms. At least in theory.

-- Mark




On Saturday, December 16, 2017 at 11:42:55 PM UTC-8, Jon wrote:
>
> Hi,
>
> This macro provided by Mark S in an earlier post 
> <https://groups.google.com/forum/#!topic/TiddlyWiki/Klz78UyX_mI> will 
> give a clickable thumbnail image which will then go to full size in the 
> browser. Inserting the macro in a tiddler and then tagging it with 
> $:/tags/Macro 
> will then, of course, make this a global effect for all photos in the wiki 
> eg. <<imageit "PictureFolder/picture 1.jpg">> (the quotes around this 
> part "$image$" now allows for a gap in the picture file name).
>
> \define imageit(image:"image.jpg")
>> <a href="$image$" target="new"><img src="$image$" width="25%" height=
>> "25%" /></a>
>> \end
>>
>> e.g.
>>
>> <<imageit "images/google_drive.png">>
>>
>>
>>
> I think this is brilliant, and I'm going to apply it retrospectively to 
> all the pictures in my wiki.
>
> Whilst I'm at it, I'd also like to incorporate a global folder path for 
> external images <http://tobibeer.github.io/tb5/#External%20Image%20Path>.
>
> So the question is, how do I join these two macros together?
>
> Thanks
> Jon
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3cf313a3-96a0-45f3-aadb-163a50fa3330%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to