Template:CD/doc/zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Documentation subpage:zh-cn}} <!-- Please place categories where indicated at the bottom of this page.) --> 此模板用于为实体生成类(Class)层次结构。 == 用...")
 
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation subpage:zh-cn}}
{{Doc/subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
此模板用于为实体生成类(Class)层次结构。
此模板用于为实体生成类(Class)层次结构。


== 用法 ==
== 用法 ==
<nowiki>{{CD:zh-cn|<实体 class>|file1=<在哪里定义 class 的文件>}}</nowiki>
<nowiki>{{CD|<实体 class>|file1=<在哪里定义 class 的文件>}}</nowiki>
{{tip:zh-cn|如果某些类名的模板失败,请尝试使用 [[Template:CD2]]}}
{{tip|如果某些类名的模板失败,请尝试使用 [[Template:CD2]]}}


== 示例和参数 ==
== 示例和参数 ==
{| class="wikitable"
{| class="wikitable"
|-
|-
| <nowiki>{{CD:zh-cn|CGasCan|file1=somefile.cpp}}</nowiki>
| <nowiki>{{CD|CGasCan|file1=somefile.cpp}}</nowiki>
| {{CD:zh-cn|CGasCan|file1=somefile.cpp}}
| {{CD|CGasCan|file1=somefile.cpp}}
|}
|}

Latest revision as of 04:52, 3 August 2024

Edit-copy.png
This is a documentation subpage for Template:CD.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

此模板用于为实体生成类(Class)层次结构。

用法

{{CD|<实体 class>|file1=<在哪里定义 class 的文件>}}

Tip.pngTip:如果某些类名的模板失败,请尝试使用 Template:CD2

示例和参数

{{CD|CGasCan|file1=somefile.cpp}}
C++ 类层级
CGasCan
CCarriedPropWeapon
CCarriedProp
CBaseBackpackItem
CTerrorWeapon
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
C++ somefile.cpp