Difference between revisions of "Template:Code/doc"
From Roll20 Wiki
Andreas J. (Talk | contribs) m (update examples) |
Andreas J. (Talk | contribs) m |
||
Line 12: | Line 12: | ||
'''Example 2.''' | '''Example 2.''' | ||
− | You can even write code that include problematic elements that the wiki could mistake for wiki syntax, such as {{code|{{ | + | You can even write code that include problematic elements that the wiki could mistake for wiki syntax, such as {{code|{{title=@{character_name}}}}} without the need of using nowiki element the code block. However, wiki links would still show up so nowiki is needed if inline rolls are present: {{code|<nowiki>Inline roll [[1d6+4]] would usually turn into a wiki link</nowiki> }} |
<pre> | <pre> | ||
− | You can even write code that include problematic elements that the wiki could mistake for wiki syntax, such as {{code|{{ | + | You can even write code that include problematic elements that the wiki could mistake for wiki syntax, such as {{code|{{title=@{character_name}}}}} without the need of using nowiki element the code block. However, wiki links would still show up so nowiki is needed if inline rolls are present: {{code|<nowiki>Inline roll [[1d6+4]] would usually turn into a wiki link</nowiki> }}</pre> |
<includeonly>[[Category:Regular Grammar Templates]]</includeonly> | <includeonly>[[Category:Regular Grammar Templates]]</includeonly> |
Revision as of 20:37, 13 November 2020
This is a documentation subpage for Code. It contains usage information, categories and other content that is not part of the original template page. |
Shorthand to more easily write code on the wiki.
Example 1.
any words before /r 1d6+4
, or words, /roll 1d6+4
any words before {{code|/r 1d6+4}}, or words, {{code|/roll 1d6+4}}
Example 2.
You can even write code that include problematic elements that the wiki could mistake for wiki syntax, such as {{title=@{character_name}}
} without the need of using nowiki element the code block. However, wiki links would still show up so nowiki is needed if inline rolls are present: Inline roll [[1d6+4]] would usually turn into a wiki link
You can even write code that include problematic elements that the wiki could mistake for wiki syntax, such as {{code|{{title=@{character_name}}}}} without the need of using nowiki element the code block. However, wiki links would still show up so nowiki is needed if inline rolls are present: {{code|Inline roll [[1d6+4]] would usually turn into a wiki link }}