Difference between revisions of "HTML Entities"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m |
||
Line 44: | Line 44: | ||
==Examples== | ==Examples== | ||
+ | By using HTML entities to replace all <code>}</code> inside "Choose a Roll", it will now correctly process where the query ends. | ||
+ | <pre style="overflow:auto;white-space:pre-wrap;"> | ||
+ | ?{Choose a Roll| | ||
+ | STR,/roll 1d20 + 3 + (?{Modifier&#125;) | | ||
+ | DEX,/roll 1d20 + 2 + (?{Modifier&#125;) | | ||
+ | CON,/roll 1d20 + 1 + (?{Modifier&#125;) } | ||
+ | </pre> | ||
+ | |||
<br><br> | <br><br> |
Revision as of 14:27, 19 October 2021
Page Updated: 2021-10-19 |
Main Page: Macro Guide
HTML Entities can be useful in creating macros, Building Character Sheets, and wiki editing.
When creating some complicated macros, usually involving nesting, you will need to use HTML entities in parts of the code to trick the Roll20 system to make it behave like you want, or some advanced tricks won't work.
Here are some HTML Entities that might be useful in advanced Roll20 macros(see List of HTML Entities for full list):
| , } , and , are the most common character that need to be replaced in nested macros. |
Character Replacement |
(pipe)|
,
,
{
{
,{
}
}
,}
&
&
space
=
=
_
_
(
(
)
)
[
[
,[
]
]
,]
<
<
,<
>
&rt;
,>
Examples
By using HTML entities to replace all }
inside "Choose a Roll", it will now correctly process where the query ends.
?{Choose a Roll| STR,/roll 1d20 + 3 + (?{Modifier}) | DEX,/roll 1d20 + 2 + (?{Modifier}) | CON,/roll 1d20 + 1 + (?{Modifier}) }