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

Templates code on costum character sheet

Hi, I´ve been working on a custom character sheet and i want to integrate a template to use in macros for spells descriptions and dice rolls. My problem is that i am a complete noob writing on html, and at the end of the character sheet is seen part of the code of the template. Any suggestion on how to make the template code not visible on the character sheet? Thanks in advance.
1558912380
Andreas J.
Forum Champion
Sheet Author
Translator
Are you referring to Roll Templates ? How they are defined is detailed in the linked article. It sounds you might have forgotten to wrap the roll template inside a <rolltemplate> tag. <rolltemplate class="sheet-rolltemplate-test"> <div class="sheet-template-container"> <div class="sheet-template-header">{{rollname}}</div> {{#attack}}<div class="sheet-template-row">Attack: {{attack}} {{attackadvantage}} vs AC</div>{{/attack}} {{#damage}} <div class="sheet-template-row"><span>Damage: </span>{{damage}} <span>Crit: </span>{{dmgcrit}}</div> <div class="sheet-template-row"><span>Type: </span>{{dmgtype}}</div> {{/damage}} {{#atteffect}} <div class="sheet-template-row"> <span class="sheet-template-desc">Effect: </span>{{atteffect}} </div> {{/atteffect}} </rolltemplate> If you know an existing sheet have a roll template that is close to what you want, you can go and find the roll templates code from the Character Sheet Repository.
Thx for the response Andreas. The problem is not with the code of the template, actually the template works ok. The problem is somehting i am doing wrong and part of the template is displayed permanently at the end of the character sheet:
1558936710

Edited 1558936828
vÍnce
Pro
Sheet Author
Does it show in the actual sheet, or just on the preview tab?   I'm guessing that it's showing up in the preview tab only, which is normal unless you are using tabs to hide/show sections of your sheet.  Obviously make sure you are using the correct syntax for setting up your rolltemplate element as depicted in the wiki (Andreas gave link above).
Oh ffs, you are right Vince, it was only on the preview tab. Problem sorted xD. Thanks for the help guys :)