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

Combine journal command, template, and journal link

1476491647

Edited 1476491771
Howdy! I have a handout with a wandering monster table, I'm turning the "thing to be encountered" column into a link to the character shee for said creature. Some creatures need to have their group size rolled first, say "1d6 bandits". So my thought was to do a roll template, and have one of the entries in the template be the link to the bandit sheet. So I have this template build out that works when I type it into chat: /w gm &{template:default} {{name=Bandits}} {{count=[[1d6]]}} {{Link=[bandit](<a href="http://journal.roll20.net/character/journal_url_bit" rel="nofollow">http://journal.roll20.net/character/journal_url_bit</a>)}} When I put it as a url in a template link: ! /w gm &{template:default} {{name=Bandits}} {{count=[[1d6]]}} {{Link=[bandit](<a href="http://journal.roll20.net/character/-KSZzgQnAHF9HS4Tow_h" rel="nofollow">http://journal.roll20.net/character/-KSZzgQnAHF9HS4Tow_h</a>)}} It breaks the page. If I take the link out, it works. ! /w gm &{template:default} {{name=Bandits}} {{count=[[1d6]]}} {{Link=bandit)}} Am I doing something wrong? Do I need to escape the link syntax somehow?&nbsp; Edit: HTML escaping is messing up some of my formatting, but I'm noting it as per&nbsp; the wiki
1476495275

Edited 1476495363
Silvyre
Forum Champion
Tricky one! You'll need to escape the period in roll20.net twice : !&amp;#13;/w gm &amp;{template:default} {{name=Bandits}} {{count=[[1d6]]}} {{Link=[bandit](<a href="http://journal.roll20" rel="nofollow">http://journal.roll20</a> &amp;amp;period; net/character/-KSZzgQnAHF9HS4Tow_h)}}
Hmm, by that logic, should the "journal.roll" &nbsp;period also be replaced? I still get a white page when I try to follow the link, so perhaps I have even more invalid characters.
1476501994
Silvyre
Forum Champion
Brandon T. said: Hmm, by that logic, should the "journal.roll" &nbsp;period also be replaced? Apparently not, from my testing. Brandon T. said: I still get a white page when I try to follow the link, so perhaps I have even more invalid characters. It should work if you copy, paste and save exactly what I posted. If you've modified something, I recommend posting it.
1476542165

Edited 1476542724
Very Strang, I'm taking exactly what you have there: !&amp;#13;/w gm &{template:default} {{name=Bandits}} {{count=[[1d6]]}} {{Link=[bandit](<a href="http://journal.roll20&amp;amp;&amp;period;net/character/-KSZzgQnAHF9HS4Tow_h" rel="nofollow">http://journal.roll20&amp;amp;&amp;period;net/character/-KSZzgQnAHF9HS4Tow_h</a>)}} And using that as the url entry in a journal link. Then when I click that link within the journal it takes me to a 404'd page on the app.roll20.net site. The chat log never gets the action. many edits later: You say escape the period twice, I only see one set of escaping periods up there, or is the nested escaping what you &nbsp;mean.
And I finally got it! I actually had to escape the entire link line: ! &amp;#13;/w gm &{template:default} {{name=Bandits}} {{count=[[1d6]]}} {{Link=&amp;91;bandit&amp;#93;&amp;#40;http://journal&amp;#46;roll20&#46;net/character/-KSZzgQnAHF9HS4Tow_h&amp;#41;}} hm
1476551451
Silvyre
Forum Champion
Odd that we're experiencing different behaviour. Oh well, I'm glad that you got it working!
So the plot thickens, As I add second links of such for other creatures, my first link breaks and subsequent links don't work either. So the behavior is totally erratic. :(
1476630816

Edited 1476631683
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Just to really make this more complicated, I do this for my shop generation, and I don't require any html escaping. ignore me, I do something else which has no bearing on journal command buttons.