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
This post has been closed. You can still view previous posts, but you can't post any new replies.

[Help] Name field of default roll template not formatting properly

I'm trying to use the default roll template described here:&nbsp; <a href="https://wiki.roll20.net/Roll_Templates#Built-In_Ro" rel="nofollow">https://wiki.roll20.net/Roll_Templates#Built-In_Ro</a>... It seems to indicate that if I pass {{ name=foo }} as one of the fields "foo" should be displayed as the title of the box that gets renders. I've played around with it a bunch, but name is being treated the same way as all the other fields I'm passing. Not sure what I'm doing wrong. Hopefully someone's seen this issue before. Here's a link to my code:&nbsp; <a href="https://gist.github.com/mattkauffman23/cf179c9fe71" rel="nofollow">https://gist.github.com/mattkauffman23/cf179c9fe71</a>... . Setting things up so the script can work is described in the comments there, but it does unfortunately involve creating a few rollable tables. I left a log in at line 100 which logs out what I'm passing to the default roll template. I've double checked it against the docs and it looks right to me. Really appreciate any help on this issue or other feedback on the script. Thanks!
Here's a screenshot that might help illustrate what I'm talking about. The problem is, I want "weather august" to be in the purple bar and not in the list of items below it.
1448412064

Edited 1448412075
Lithl
Pro
Sheet Author
API Scripter
{{ name=foo }} isn't using the "name" property, it's using the " name" property. Note the extra space. Spaces on the left side of the equals sign are meaningful.
Gah. Knew I was missing something simple. That fixed things right away.&nbsp;Thanks for the help!
1448446782
Ziechael
Forum Champion
Sheet Author
API Scripter
Easily solved problems are the best ones, all it usually takes is a fresh pair of eyes... when those eyes happen to be Brian's that is even better! Since your issue is resolved I'll go ahead and close this thread for you, feel free to create a new one if you have any other questions.