Template: Markdown One-Line Code/doc

From Valve Developer Community
Jump to navigation Jump to search
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Edit-copy.png
This is a documentation subpage for Template:MdCode.
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 in Markdown style.

Parameters

Styles
{{{desaturated}}} less saturated version.
{{{outlined}}} less saturated version with outline. 
Modifiers
{{{oneclick}}} one-click template content selection.
{{{color}}} allows you to change the background color if the default style is enabled. 
{{{background}}} allows you to change the color of the text if the default style is enabled.

Examples

{{MdCode|Go to [[Main Page|Main Page]]}} {{MdCode|Go to {{hla|4}}}}

Go to Main Page Go to Half-Life: Alyx Half-Life: Alyx


{{MdCode|desaturated|Go to [[Main Page|Main Page]]}} {{MdCode|desaturated|Go to {{hla|4}}}}

Go to Main Page Go to Half-Life: Alyx Half-Life: Alyx


{{MdCode|outlined|Go to [[Main Page|Main Page]]}} {{MdCode|outlined|Go to {{hla|4}}}}

outlined outlined


{{MdCode|oneclick=1|background=rgb(230,230,230)|color=black|Go to '''[[Main Page|Main Page]]'''}} {{MdCode|background=rgb(40,60,100)|Go to {{hla|4}}}}

Go to Main Page Go to Half-Life: Alyx Half-Life: Alyx