Difference between revisions of "Template:Code"

From RimWorld Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly><code>{{#tag:nowiki|{{{1|}}}}}</code></includeonly>
 
</noinclude><includeonly><code>{{#tag:nowiki|{{{1|}}}}}</code></includeonly>
 +
<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 12:38, 31 October 2020

This is the "Code" template. It should be called in the following format:

{{Code
|1=(code content)
}}

Edit the page to see the template text.


Documentation icon Template documentation[view] [edit] [history] [purge]

Description

This template can be used to display text as in-line code.

Example Usage

The line:

{{Code | CODE CONTENT GOES HERE }}

Results in: CODE CONTENT GOES HERE


Alternative

It is possible to just use the html tags directly, as they are not that long:

<code>CODE CONTENT GOES HERE</code>