Template:MdCode/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Delete|Moved to [[Template:Code/doc]]}}</noinclude>
<noinclude>{{doc|0}}</noinclude>
 
This template is deprecated, but it is still used on many pages.
<noinclude>{{doc|0}}</noinclude>__NOTOC__
This template will allow you to format text as a one-line code in Markdown style.


== Parameters ==
== Parameters ==
{| class="standard-table"
* {{param|oneclick}}
! colspan="2" | Styles
* {{param|desaturated}}
|-
* {{param|desaturated-oneclick}}
| {{param|desaturated}} || less saturated version
* {{param|outline}}
|-
* {{param|outline-oneclick}}
| {{param|outlined}} || less saturated version with outline&nbsp;
* {{param|background}}
|}
* {{param|color}}
{| class="standard-table"
! colspan="2" | Modifiers
|-
| {{param|select}} || Sets the values for the user-select parameter.<br><br>'''Values:''' <br>'''1''' - all (one click selection), <br>'''2''' - none (template content will not be highlighted).
|-
| {{param|color}} || allows you to change the background color if the default style is enabled&nbsp;
|-
| {{param|background}} || allows you to change the color of the text if the default style is enabled
|}
 
== Examples ==
{{MdCode|<nowiki>{{MdCode|Go to [[Main Page|Main Page]]}}</nowiki>}} {{MdCode|<nowiki>{{MdCode|Go to {{hla|4}}}}</nowiki>}}
{{Doc/PreviewBlock|{{MdCode|Go to [[Main Page|Main Page]]}} {{MdCode|Go to {{hla|4}}}}}}
 
 
{{MdCode|<nowiki>{{MdCode|desaturated|Go to [[Main Page|Main Page]]}}</nowiki>}} {{MdCode|<nowiki>{{MdCode|desaturated|Go to {{hla|4}}}}</nowiki>}}
{{Doc/PreviewBlock|{{MdCode|desaturated|Go to [[Main Page|Main Page]]}} {{MdCode|desaturated|Go to {{hla|4}}}}}}
 
 
{{MdCode|<nowiki>{{MdCode|outlined|Go to [[Main Page|Main Page]]}}</nowiki>}} {{MdCode|<nowiki>{{MdCode|outlined|Go to {{hla|4}}}}</nowiki>}}
{{Doc/PreviewBlock|{{MdCode|outlined|Go to [[Main Page|Main Page]]}} {{MdCode|outlined|Go to {{hla|4}}}}}}
 
 
{{MdCode|<nowiki>{{MdCode|select=1|background=rgb(230,230,230)|color=black|Go to '''[[Main Page|Main Page]]'''}}</nowiki>}} {{MdCode|<nowiki>{{MdCode|background=rgb(40,60,100)|Go to {{hla|4}}}}</nowiki>}}
{{Doc/PreviewBlock|{{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}}}}}}
 
<includeonly>{{sandbox other||
[[Category:Markdown]]
}}</includeonly>

Latest revision as of 13:09, 23 January 2023

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 is deprecated, but it is still used on many pages.

Parameters

  • {{{oneclick}}}
  • {{{desaturated}}}
  • {{{desaturated-oneclick}}}
  • {{{outline}}}
  • {{{outline-oneclick}}}
  • {{{background}}}
  • {{{color}}}