Hi!

Could somebody please explain to me how to make this work? I've tried 
everything except creating a JS plugin for this simple task and I refuse to 
believe that it can't be done without that.

\define progressbar(pval:0)
$(pval)$
<div style=
"height:20px;overflow:visible;width:$(pval)$%;background-color:#33aeee;float:left;"
>&nbsp;</div>
\end


|floatright|k
| {{!!img}} |<|
|Weight | <<progressbar {{!!weight}}>>{{!!weight}}%|
|stat | value|

This ignores my parameter and gives me:

<div style="height:20px;overflow:visible;width:%;background-color:
#33aeee;float:left;">&nbsp;</div>18%


When used without a macro:

|floatright|k
| {{!!img}} |<|
|Weight | <div style=
"height:20px;overflow:visible;width:{{!!weight}}%;background-color:#33aeee;float:left;"
>&nbsp;</div>{{!!weight}}%|
|stat | value|

It ignores the transclusion and I get:

<div style="height:20px;overflow:visible;width:{{!!weight}}%;background-
color:#33aeee;float:left;">&nbsp;</div>18%

I am trying to use this as a template in another tiddler which has a weight 
field, and it works as intended except in the inline CSS (between th double 
quotes).


-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to