Template:Code
Jump to navigation
Jump to search
This template will allow you to format text as a one-line code.
Usage
This template is usually written in a single line.
To use it, insert {{code}} into the desired page and specify the parameters described below to the right of the template name in the following format:
| Parameter | Description | Examples | Preview |
|---|---|---|---|
1
|
The text that will be displayed. Can contain links, templates and raw html, except when the {{{lang}}} parameter is used. | | Hello, Gordon! |
Hello, Gordon!
|
| 1 = Hello, Alyx! |
Hello, Alyx! |
||
lang
|
Adds syntax highlighting for the language specified using syntaxhighlight tag with inline attribute. List of Supported languages. |
| lang = c |
int main() { return 0; }
|
| lang = html |
<strong> Combine </strong> |
||
nowrap
|
Adds the CSS property text-wrap: nowrap
|
| nowrap = true |
No preview. Read about this CSS property on developer.mozilla.org |