Hi Ton, 

I think I understand the usage here. How can I add CSS into the mix, as 
what I want it also float and a margin for the image (otherwise it touches 
the text)? 

On Thursday, October 27, 2016 at 2:11:42 PM UTC-4, Ton Gerner wrote:
>
> Hi Shay,
>
> It is very simple:
>
> Create a tiddler, e.g. $:/_image-thumbnail-macro, tagged with 
> $:/tags/Macro, which contains:
>
> \define image(source)
> <a href="TW_Media/$source$" title="tooltip" target="_blank">
> <img src="TW_Media/$source$" width="" height="400"/></a>
> \end
>
> Then you can use the macro as follows:
>
> <<image "image.png">>
>
> Hope that helps,
>
> Ton
>
>
> On Thursday, October 27, 2016 at 2:51:01 PM UTC+2, Shay Shaked wrote:
>>
>> Thanks Tobias. 
>>
>> I don't know enough about macros to create or build one but sounds 
>> useful. For now I guess I can copy paste...
>>
>> On Wed, Oct 26, 2016, 12:56 Tobias Beer <beert...@gmail.com> wrote:
>>
>>> Hi Shay,
>>>
>>> If you want a more generalized macro, try
>>>
>>> linkimg @ tb5 <http://tobibeer.github.io/tb5/#linkimg>
>>>
>>> Best wishes,
>>>
>>> Tobias.
>>>
>>> -- 
>>> 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/26qvQ1cSysk/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 https://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/e305b2b7-1abf-47c6-8db4-65f8a647d09d%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/tiddlywiki/e305b2b7-1abf-47c6-8db4-65f8a647d09d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0222e94e-dd8c-4016-9b98-5825f0f15d37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to