On Saturday, December 21, 2019 at 5:06:58 PM UTC-8, David Allen wrote: > > \define color_picker(label,field) > <tr> > <td> > $label$ > </td> > <td> > <$edit-text field="$field$" type="number" class="custom_select"/> > </td> > <td style="background-color: rgb(0,0,0);"> > <div style="background-color: rgb({{!!$field$}}, {{!!$field$}}, > {{!!$field$}});text-align: center;">{{!!$field$}} > </div> > </td> > </tr> > \end >
Wikification does not occur *inside* parameters. To achieve the results you want, you want to use a macro to construct the entire style="..." attribute value, like this: \define colorstyle() background-color: rgb({{!!$field$}}, {{!!$field$}}, {{!!$field$}});text-align: center; and then, in your output macro, write: <div style=<<colorstyle>> >{{!!$field$}} </div> That should work. Let me know how it goes. enjoy, -e -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/164394d1-b0aa-43d4-95f3-426e14546d2b%40googlegroups.com.