My apologies for lack of clarification.

I have this macro

\define colors(color:"black", txtcolor:"", bgcolor:"")
<span style="font-size:1em;color:$color$;">&#9632;
  <span style="color:$txtcolor$;background-color:$bgcolor$;border-radius:5px; 
margin:1em;padding:9px 12px 10px">
  $color$</span></span>
\end

What I want to do is, if bgcolor is undefined then use whatever value is 
assigned to color variable.

I searched the forum. Unfortunately I didn’t quite understand the answers 
there.

One more thing, instead of using $txtcolor$, I have tried <<txtcolor>> and 
<<__txtcolor__>> but they didn’t work. Am I correct to assume, inside HTML 
tags, <<>> syntax does not work?
​

-- 
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/34a84622-7106-4a03-92d4-eacc253ecaf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to