Template:Code
This template will allow you to format text as a one-line code.
Parameters and Examples
Parameters | Description | Examples | Preview |
---|---|---|---|
{{{preset}}}
|
Preset Template Styles. The following presets are available:
|
Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! | |
{{{select}}}
|
Text selection mode. Uses the user-select CSS property. Default value is unset .
|
Hello, World! Hello, World! | |
{{{style}}}
|
CSS styles. | Hello, World! | |
{{{highlight}}}
|
Adds syntax highlighting for the language specified. Bug:Condenses code into one line. |
|
The above documentation is transcluded from Template:Code/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.