Template:Code/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Doc/subpage}}__NOTOC__ This template will allow you to format text as a one-line code. == Parameters and Examples == {| class=standard-table | style="width:100%" |- ! Parameters ! {{int:listfiles_description}} ! {{int:apisandbox-examples}} ! {{int:preview}} |- | align=center | {{Code|{{Param|preset}}}} | Preset Template Styles. The following presets are available: :* {{Code|preset=0|Default}} – The default style is based on Markdown; :* {{Code|preset=1|0}} – Clear..." |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
This template will allow you to format text as a one-line code. | This template will allow you to format text as a one-line code. | ||
Latest revision as of 05:57, 21 July 2025
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. File:Icon-Bug.pngBug:Condenses code into one line. [todo tested in ?] |only= with |since= and/or |fixed= provided.
|
int main() {return 0;} |