This page has been semi-protected so that only established users can edit it.

Template:Code

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)
Template Documentation



Icon-translate.pngDocumentation language
...

This template will allow you to format text as a one-line code.

Usage

 This template is usually written in a single line.

To use it, insert {{code}} into the desired page and specify the parameters described below to the right of the template name in the following format:

{{code|parameter1 = value|parameter2 = value}}
Parameter Description Examples Preview
1 The text that will be displayed. Can contain links, templates and raw html, except when the {{{lang}}} parameter is used.
| Hello, Gordon!
Hello, Gordon!
| 1 = Hello, Alyx!
Hello, Alyx!
lang Adds syntax highlighting for the language specified using syntaxhighlight tag with inline attribute.
List of Supported languages.
| lang = c
int main() { return 0; }
| lang = html
<strong> Combine </strong>
nowrap Adds the CSS property text-wrap: nowrap
| nowrap = true
No preview.
Read about this CSS property on
developer.mozilla.org

See Also