Template:MdCode/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
This template will allow you to format text as a one-line code in Markdown style. | This template will allow you to format text as a one-line code in Markdown style. | ||
== | == Parameters == | ||
{| class="standard-table" | {| class="standard-table" | ||
! | ! colspan="2" | Styles | ||
|- | |- | ||
| | | {{param|desaturated}} || Less saturated version. | ||
|- | |- | ||
| | | {{param|outlined}} || Less saturated version with outline. | ||
|} | |} | ||
{| class="standard-table" | {| class="standard-table" | ||
! | ! colspan="2" | Modifiers | ||
|- | |||
| {{param|oneclick}} || One-click template content selection. | |||
|- | |- | ||
| | | {{param|color}} || Text color. | ||
|- | |- | ||
| | | {{param|background}} || Background color. | ||
|} | |} | ||
Revision as of 02:03, 22 January 2023

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 | |
---|---|
{{{oneclick}}} | One-click template content selection. |
{{{color}}} | Text color. |
{{{background}}} | Background color. |
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|outline|Go to [[Main Page|Main Page]]}}
{{MdCode|outline|Go to {{hla|4}}}}
Go to Main Page
Go to
Half-Life: Alyx
{{MdCode|oneclick|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