This is amazing stuff! 

I worked on the macro to reflect the style I want: 
\define image(source)
@@.TW-image
<a href="TW_Media/$source$" title="tooltip" target="_blank">
<img src="TW_Media/$source$" width="" height="250"/></a>
@@
\end



where .TW-image is as follows: 

.TW-image{ 
    float: right; 
    margin-left: 10px; 
    width: 250px;

}


And it all works fine in the macro. 

Here's the last thing I want: the ability to add a caption below. 
In the past, I wrote the whole thing down like so: 

@@float: right;
<a href="TW_Media/image.png" target="_blank"> 
<img src="TW_Media/image.png" width=400 ></a><br>^^this is the caption^^
@@

And I had the ability to add the caption as you can see. But now if I throw 
it into the macro, it will give me the same caption each time. What I'm 
looking for is something kinda like this:

\define image(source)(caption)

I know the syntex is wrong. How do I tell the macro I need to put in two 
"variables" (not sure that's the right term)? 





On Friday, October 28, 2016 at 2:43:55 AM UTC-4, Tobias Beer wrote:
>
> Hi Ton,
>  
>
>> It is very simple:
>>
>> Create a tiddler, e.g. $:/_image-thumbnail-macro, tagged with 
>> $:/tags/Macro, which contains:
>>
>
> ...it's kind of interesting, these entry-level barriers that kinda force 
> every newcomer to take a moment and ponder the workings of TiddlyWiki, so 
> as to learn to make good use of it rather than just rely on pre-baked 
> components and solutions.
>
> Best wishes,
>
> Tobias.
>

-- 
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/fe196853-3531-42f1-b4b8-7b15ea2eb497%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to