Template:Code/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 28: | Line 28: | ||
| align="center" | {{Code|{{param|color}}}} | | align="center" | {{Code|{{param|color}}}} | ||
| Text color. <br> HSL, HEX, RGB and more are supported. | | Text color. <br> HSL, HEX, RGB and more are supported. | ||
| {{CodeBlock|{{Code|{{tint|color=yellow|color}}<nowiki>=</nowiki>{{tint|color=green|# | | {{CodeBlock|{{Code|{{tint|color=yellow|color}}<nowiki>=</nowiki>{{tint|color=green|#EF9B9B}}|{{tint|color=comment|Hello, World!}}}}}} | ||
| {{Doc/PreviewBlock|margin=5px|{{Code|color=# | | {{Doc/PreviewBlock|margin=5px|{{Code|color=#EF9B9B|Hello, World!}}}} | ||
|- | |- | ||
| align="center" | {{Code|{{param|bg}}}} <br> <br>{{Code|{{param|background}}}} | | align="center" | {{Code|{{param|bg}}}} <br> <br>{{Code|{{param|background}}}} |
Revision as of 05:26, 24 January 2023

This is a documentation subpage for Template:Code.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
This template will allow you to format text as a one-line code.
Parameters and Examples
Parameter | Description | Example | Preview |
---|---|---|---|
{{{style}}} | The style of the template. The following styles are available:
|
Hello, World! Hello, World! Hello, World!
| |
{{{select}}} | Text selection mode. The following values are available:
|
Hello, World! Hello, World!
| |
{{{color}}} | Text color. HSL, HEX, RGB and more are supported. |
Hello, World!
| |
{{{bg}}} {{{background}}} |
Background color. HSL, HEX, RGB and more are supported. ![]() |
Hello, World!
|