Template:Code

From PZwiki
[view] [edit] [history] [purge] Template documentation
The {{Code}} template, commonly just {{c}}, is used as a shorthand way of writing <nowiki><code>example</code></nowiki>, used to display code while also escaping wiki markup.

Usage

Basic usage.

Usage: {{Code|This is example text}}

Produces: This is example text


The code language can be defined for syntax highlight.

Usage: {{Code|<span style="color:red">Example</span>|lang=html}}

Produces: <span style="color:red;">Example</span>

See also

Documentation transcluded from Template:Code/doc.
Editors can experiment in this template's sandbox (create)