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

Chat Menu Display Issue

October 27 (9 months ago)

Edited October 27 (9 months ago)

I've built a character sheet ability and tried to use css styling to change from the pink buttons to a link style appearance. It works fine, other than the first button item instead displays the css code.

 Here is the macro text:

/w GM &{template:2Edefault} {{subtitle=@{selected|character_name}}} {{name=Spellbook of}} {{**First Level Spells**

[Analyze Balance](~Kromdar Drarthevohk|S1-Analyze-Balance"style=border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;")

[Astral Celerity](~Kromdar Drarthevohk|S1-Astral-Celerity"style=border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;") }}


And here is what is displayed in the chat menu:

Is there a way to correct this issue?

Thanks,

Max

October 27 (9 months ago)

Edited October 28 (9 months ago)

Your issue is that the template uses the first equals sign as the separator between row name and the row content - there's two ways around that: one, place an equals sign between "first level spells" and the buttons, or, replace every equals sign in all buttons with = to make the template behave.

EDIT: second method doesn't work, I based the suggestion on a related thing that I had tested before that worked for a different reason. Just place the equals sign before the buttons.

October 28 (9 months ago)

You need another set of quotation marks after style=

/w GM &{template:2Edefault} {{subtitle=@{selected|character_name}}} {{name=Spellbook of}} {{**First Level Spells**
[Analyze Balance](~Kromdar Drarthevohk|S1-Analyze-Balance"style="border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;") [Astral Celerity](~Kromdar Drarthevohk|S1-Astral-Celerity"style="border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;") }}
October 28 (9 months ago)

Edited October 28 (9 months ago)


Jarren said:

You need another set of quotation marks after style=

/w GM &{template:2Edefault} {{subtitle=@{selected|character_name}}} {{name=Spellbook of}} {{**First Level Spells**
[Analyze Balance](~Kromdar Drarthevohk|S1-Analyze-Balance"style="border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;") [Astral Celerity](~Kromdar Drarthevohk|S1-Astral-Celerity"style="border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;") }}

That's not necessary, it's just the template breaking the css off at the equals sign.

/w GM &{template:2Edefault} {{subtitle=@{selected|character_name}}} {{name=Spellbook of}} {{**First Level Spells**=[Analyze Balance](~Kromdar Drarthevohk|S1-Analyze-Balance"style=border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;")
[Astral Celerity](~Kromdar Drarthevohk|S1-Astral-Celerity"style=border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;") }}
or

/w GM &{template:2Edefault} {{subtitle=@{selected|character_name}}} {{name=Spellbook of}} {{=**First Level Spells**
[Analyze Balance](~Kromdar Drarthevohk|S1-Analyze-Balance"style=border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;")
[Astral Celerity](~Kromdar Drarthevohk|S1-Astral-Celerity"style=border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;") }}
should work.

October 28 (8 months ago)

Thanks all for your responses! @Tuo, your second option works great, keeping everything in a single column.


Tuo said:


Mary P. said:

... 

... 

That's a bot you're replying to



RainbowEncoder said:


Tuo said:


Mary P. said:

... 

... 

That's a bot you're replying to


Oh, good call, I'm usually better at sussing them out, but this one poked a nerve and I didn't pay enough attention to the rest of it. 

October 29 (8 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

AI bots are getting better and better so quickly. (Or worse and worse, depending on your viewpoint)