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

Single-quoting breaks roll templates

<rolltemplate class='sheet-template-newtemplate'> causes dice to roll but nothing to show up. <rolltemplate class="sheet-template-newtemplate"> works normally.
1572115963

Edited 1572119229
Andreas J.
Forum Champion
Sheet Author
Translator
Interesting. Even if single-quotes can be used in html and shouldn't by itself lead to troubles, it's best practice to use whichever is more prevalent in your code for consistency's sake. I'm under the impression double quotes are more commonly used on Roll20 character sheets. Google's HTML Styles Guide recommends using double quotes with HTML, and this seem to be the first case I've seen where it actually seem to have an difference. Edit: I replicated this behaviour
Yeah I'd used single quotes for all my character sheet code, so I assumed it'd be fine for the roll template code as well. I've added a note to the wiki page for roll templates regarding this issue. Feel free to holler at me if that wasn't an appropriate thing to do.
1572309707
Andreas J.
Forum Champion
Sheet Author
Translator
Documenting previously unmentioned behaviour is absolutely the right thing to do, thanks. :D
1572310046
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The beauty and strength of a wiki is that in the long run they are self-correcting. Editing by any user is perfectly fine unless a page is locked by admin.