Template:Code/doc
Jump to navigation
Jump to search

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. The default style is based on Markdown.
Parameters
Modifiers | |
---|---|
{{{select}}} | Sets the values for the user-select parameter. Values:
|
{{{color}}} | Allows you to change the color of the text if the default style is enabled. |
{{{bg}}} | Allows you to change the background color if the default style is enabled. It is the same to {{{background}}}. ![]() |
{{{style}}} | Allows you to change the style of the template from existing styles:
|
Examples
{{Code|Go to [[Main Page|Main Page]]}} {{Code|Go to {{hla|4}}}}
Go to Main Page Go to
Half-Life: Alyx

{{Code|style=2|Go to [[Main Page|Main Page]]}} {{Code|style=2|Go to {{hla|4}}}}
Go to Main Page Go to
Half-Life: Alyx

{{Code|style=1|Go to [[Main Page|Main Page]]}} {{Code|style=2|Go to {{hla|4}}}}
Go to Main Page Go to
Half-Life: Alyx

{{Code|select=1|bg=rgb(230,230,230)|color=black|Go to '''[[Main Page|Main Page]]'''}} {{Code|bg=rgb(40,60,100)|Go to {{hla|4}}}}
Go to Main Page Go to
Half-Life: Alyx
