Template:Code class: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added Simplified Chinese translations)
mNo edit summary
Line 3: Line 3:
{{inline note|{{cpp}} {{Autolang
{{inline note|{{cpp}} {{Autolang
| In code, it is represented by the<code><i>{{{1}}}</i></code>class, defined in the<code><i>{{{2}}}</i></code>file.
| In code, it is represented by the<code><i>{{{1}}}</i></code>class, defined in the<code><i>{{{2}}}</i></code>file.
| zh = 在源代码中,它由 class <code style=padding:0>''{{{1}}}''</code> 代表,定义于 <code style=padding:0>''{{{2}}}''</code>。
| zh = 在源代码中,它由 class <code style=padding:0>''{{{1}}}''</code> 代表,定义于 <code style=padding:0>''{{{2}}}''</code>。}}}}</includeonly></onlyinclude>
}}
}}
</includeonly></onlyinclude>
{{Todo|Move translation from deprecated  ({{t|Lang}} template or {{code|suf}}) to this one.}}
{{Todo|Move translation from deprecated  ({{t|Lang}} template or {{code|suf}}) to this one.}}
{{doc}}
{{doc}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->

Revision as of 08:06, 26 November 2023

English (en)中文 (zh)
Todo: Move translation from deprecated ({{Lang}} template or suf) to this one.
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)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{CD}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Usage

Parameters

  • {{{1}}} - The code class where the entity is defined.
  • {{{2}}} - The file in which the code class is defined.
Note.pngNote:A problem with unnamed parameters is that no whitespace is trimmed, so do not enter any extra spaces when using this template. There is no need to enhance this detail.

Examples

{{code class}}
C++
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
{{code class|CSprite|Sprite.cpp}}
C++
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}

See also