Template:MdCode/doc
Jump to navigation
Jump to search

This template has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
Moved to Template:Code/doc
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.

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.
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 | |
---|---|
{{{select}}} | Sets the values for the user-select parameter. Values: 1 - all (one click selection), 2 - none (template content will not be highlighted). |
{{{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
{{MdCode|desaturated|Go to [[Main Page|Main Page]]}}
{{MdCode|desaturated|Go to {{hla|4}}}}
Go to Main Page
Go to
Half-Life: Alyx
{{MdCode|outlined|Go to [[Main Page|Main Page]]}}
{{MdCode|outlined|Go to {{hla|4}}}}
outlined
outlined
{{MdCode|select=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