Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Roll Template Dynamic Color

I've seen a few roll template calls using something like... &{template:name}} {{color=black}} ...to dynamically set a color, such as the template header. How do I do apply this attribute inside the roll-template HTML? I don't seem to be able to use inline styles with a {{color}} value.
1614576869
Kraynic
Pro
Sheet Author
Jakob's template on the wiki uses that, so you can look at it as an example. <a href="https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Jakob.27s_Better_Default_Rolltemplate" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Jakob.27s_Better_Default_Rolltemplate</a>
1614611047
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, it's important to note that you can't do true dynamic colors. You can only offer a choice between a group of hardcoded options.