
I've been able to get an image to show up in a rolltemplate just fine. It looks something like this.
This is the button code:
<span class="skillrollbutton"> <button class="sheet-d6-dice" type="roll" value= '&{template:dodasadventureskills} {{skillname=Knowledge}} {{subtags=@{character_name}}} {{adventureskillmodifier=@{knowledgeskilltotal}}} {{adventurerolltotal=[[2d6 + @{knowledgeskilltotal}]]}}' name="roll_skilltotalcolumn"></button> </span>
Followed by the Rolltemplate code:
<rolltemplate class="sheet-rolltemplate-dodasadventureskills"> <div class="container"> <div class="skilltemplateheaderrow"> <div class="skilltemplateheader"> <span class="templateskillname">{{skillname}}<img class="REFImg" src="https://github.com/danimagaming/ForgeofSteelRoll20beta/blob/main/bookmarklet.png?raw=true"></span> <span class="templateskillcharactername">{{subtags}}</span> </div> </div> <!-- close 3 column grid thing --> <div class="skilltemplatebottomrow"> <div class="skilltemplaterollplus"> <span class="skilltemplaterollplusname">Roll + {{adventureskillmodifier}} =</span> </div> <div class="skilltemplatediceroll"> <span class="bignumber">{{adventurerolltotal}}</span> </div> </div> <!-- close 2 columns --> </div><!-- rolltemplate --> </rolltemplate><!-- actual rolltemplate -->
I'm trying to have about 8-10 different images used (depending on the skill or skill group), without making a separate rolltemplate for each one. I've tried a number of permutations of putting the img link inside the button macro up top instead, or using it in a Macro in Roll20, but regardless, I can only get the dang img to show up if I include it inside the Rolltemplate.
Here's one example I tried that results in the img just not showing up. Like, it doesn't even show in the code when inspecting via developer tools.
<span class="skillrollbutton"> <button class="sheet-d6-dice" type="roll" value= '&{template:dodasadventureskills} [Mobility] (https://github.com/danimagaming/ForgeofSteelRoll20beta/blob/main/run.png?raw=true) {{skillname=@{skillsandabilities}}} {{subtags=@{character_name}}} {{adventureskillmodifier=@{skilltotal}}} {{adventurerolltotal=[[2d6 + @{skilltotal}]]}}' name="roll_skilltotalcolumn"></button> </span>
I looked at a dozen or so forum posts and documentation pages, but can't figure out the issue. Any advice is greatly appreciated. I suppose if I have to I can make separate code for each rolltemplate, but that's a TON of unnecessary html and CSS imo.
Thanks!