Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Difference between revisions of "Template:C"

From Roll20 Wiki

Jump to: navigation, search
(Created page with "<includeonly><code style="margin:0;">{{{1}}}</code></includeonly><noinclude> Same as {{tlx|code}}. Category:Templates</noinclude>")
 
m
Line 2: Line 2:
 
Same as {{tlx|code}}.
 
Same as {{tlx|code}}.
  
 +
==Usage==
 +
{{:Template:Code/doc}}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 11:49, 17 February 2022

Same as {{code}}.

Usage

{{ccode}} is a shorthand to more easily write inline code and highlight variables on the wiki. {{c}} is an even smaller shorthand. For more complex content you'll still likely need to use <code>+<nowiki>-elements, as some special characters causes problem with the template that doesn't happen when using <code>+<nowiki>.

See: Displaying Macros and Code for details.

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 }}


Example:

{{{1}}}