Template:This is a/doc/zh: Difference between revisions
< Template:This is a | doc
Jump to navigation
Jump to search
(Created page with "{{documentation subpage:zh-cn}} {{Note:zh-cn|该模板仍然具有 {{tl|point ent}} 的旧代码,以便与那些尚未更新的页面兼容。}} {| class=standard-table | st...") |
No edit summary |
||
(49 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
{{ | {{Shortcut|{{tl|Thisis}}}} | ||
此模板是所有实体、控制台命令/变量和着色器页面的主格式页面。每个页面应该在开头包含此内容,以描述每个项目的基本信息,例如它们的含义和可用性。 | |||
== 参数和示例 == | |||
<strong style=color:rgb(255,255,0)><nowiki>*</nowiki></strong>: 必要的参数。 | |||
{| class=standard-table | style="width:100%;" | {| class=standard-table | style="width:100%;" | ||
|- | |- | ||
! 参数 | ! 参数 | ||
! 描述 | ! width="45%" | 描述 | ||
! 示例 | ! 示例 | ||
! 预览 | ! 预览 | ||
|- | |- | ||
|align="center"|{{Code|{{param| | |align="center"|<strong style=color:rgb(255,255,0)><nowiki>*</nowiki></strong>{{Code|preset=2|{{param|1}}}} | ||
| | | 对象的类型。以下类型可用: | ||
:* {{Code| | '''实体:''' | ||
* {{Code|point entity}} - [[Point entity|点实体]] | |||
* {{Code|brush entity}} - [[Brush entity|固实体]] | |||
* {{Code|mesh entity}} - [[Mesh entity|网格实体]] ({{source2}}) | |||
* {{Code|path entity}} - [[Path entity|路径实体]] ({{source2}}) | |||
'''控制台变量、控制台命令和 QC 命令:''' | |||
* {{Code|console variable}} - [[Developer_Console#Submitting|控制台变量]] | |||
* {{Code|command}} - [[Developer_Console#Submitting|控制台命令]] | |||
* {{Code|QC command}} - [[QC command|QC 命令]] | |||
* {{Code|pixel shader}} - [[Shader#Pixel shaders|像素着色器]] | |||
* {{Code|vertex shader}} - [[Shader#Vertex shaders|顶点着色器]] | |||
* {{Code|shader parameter}} - [[material|材质]][[shader|着色器]]参数 | |||
其他: | |||
* 自定义 (你可以自己指定对象类型。详见示例) | |||
{{Note|当使用非实体类型时(例如 {{Code|console variable}}),模板不会添加实体分类和改变页面标题。}} | |||
| | | | ||
{{CodeBlock|<nowiki>{{this is a|point entity|internal=1|engine=Source 2}}</nowiki>}}<br> | |||
{{CodeBlock|<nowiki>{{this is a|brush entity|engine=GoldSrc}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|console variable|name=sv_cheats}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|pixel shader|name=LightmappedGeneric}}</nowiki>}} | |||
| | | | ||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|internal=1|engine=Source 2}}}} | |||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|brush entity|engine=GoldSrc}}}} | |||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|console variable|name=sv_cheats|notitlechange=1}}}} | |||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|pixel shader|name=LightmappedGeneric|notitlechange=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|{{param|engine}}}} | |align="center"|{{Code|preset=2|{{param|shader}}}} | ||
| | | 参数所在的着色器(仅当 {{param|1}} 等于 {{code|shader parameter}} 时起作用)。 | ||
:* {{Code| | | {{CodeBlock|<nowiki>{{this is a|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 Multiplayer|game1=Garry's Mod}}</nowiki>}} | ||
:* {{Code| | | {{Capsule|style=2|margin=5px|{{this is a|nocat=1|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 Multiplayer|game1=Garry's Mod|notitlechange=1}} }} | ||
:* {{Code| | |- | ||
|align="center"|{{Code|preset=2|{{param|engine}}}}<br>{{Code|preset=2|{{param|engine1}}}}<br>{{Code|preset=2|{{param|engine2}}}} | |||
| 对象应该属于哪个引擎。 | |||
:* 缺省值 - {{source|4}} (和 {{Code|Source}} 一致) | |||
:* {{Code|GoldSrc}} - {{gldsrc|4}} | |||
:* {{Code|Source}} - {{source|4}} | |||
:* {{Code|Source 2}} - {{source2|4}} | |||
{{Important|'''要添加多个引擎''',请把参数 {{Code|preset=2|{{param|engine1}}}} (第二引擎) 和 {{Code|preset=2|{{param|engine2}}}} (第三引擎) 与参数 {{Code|preset=2|{{param|engine}}}} (第一引擎) 一同使用。}} | |||
| | | | ||
{{CodeBlock|<nowiki>{{this is a|point entity|internal=1|engine=Source 2}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|point entity|internal=1}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|point entity|engine=GoldSrc|engine1=Source}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2}}</nowiki>}} | |||
| | | | ||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|internal=1|engine=Source 2}}}} | |||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|internal=1}}}} | |||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|engine=GoldSrc|engine1=Source}}}} | |||
{{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2}}}} | |||
|- | |- | ||
|align="center"|{{Code|{{param| | |align="center"|{{Code|preset=2|{{param|except}}}} | ||
| | | 该对象存在于其他所有游戏除了这个游戏外。{{Note|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}}{{Note|仅在不使用 {{Code|preset=2|{{param|game}}}} 的情况下有效。}} | ||
| {{CodeBlock|<nowiki>{{ | | {{CodeBlock|<nowiki>{{this is a|name=func_monitor|brush entity|except=Left 4 Dead series}}</nowiki>}} | ||
| {{ | | {{Capsule|style=2|margin=5px|{{this is a|nocat=1|name=func_monitor|notitlechange=1|brush entity|except=Left 4 Dead series}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param| | |align="center"|{{Code|preset=2|{{param|since}}}} | ||
| | | 这个对象自从这个游戏中可用。{{Note|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}}{{Note|仅在不使用 {{Code|preset=2|{{param|game}}}} 的情况下有效。}} | ||
| {{CodeBlock|<nowiki>{{entity| | | {{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start|engine=GoldSrc|since=Half-Life}}</nowiki>}} | ||
| {{ | | {{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|name= info_player_start|notitlechange=1|engine=GoldSrc|since=Half-Life}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param| | |align="center"|{{Code|preset=2|{{param|name}}}} | ||
| | | 对象的名称。它会更改页面名称。默认值为“这”。将其指定为 {{Code|0}} 可以移除对象名称。 | ||
| {{CodeBlock|<nowiki>{{entity| | | {{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start}}</nowiki>}} | ||
| {{ | | {{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|name= info_player_start|notitlechange=1}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param| | |align="center"|{{Code|preset=2|{{param|series}}}} | ||
| | | 对象存在于的系列游戏。 | ||
| {{CodeBlock|<nowiki>{{entity| | | {{CodeBlock|<nowiki>{{this is a|brush entity|series=Counter-Strike}}</nowiki>}} | ||
| {{ | | {{Capsule|style=2|margin=5px|{{this is a|nocat=1|brush entity|series=Counter-Strike}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|game}}}} | |align="center"|{{Code|preset=2|{{param|game}}}} | ||
| | | 对象可用于的游戏。{{Note|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}}{{Note|仅在不使用 {{Code|preset=2|{{param|series}}}} 的情况下有效。}} | ||
| {{CodeBlock|<nowiki>{{entity | | {{CodeBlock|<nowiki>{{this is a|path entity|game=Team Fortress 2}}</nowiki>}} | ||
| {{ | | {{Capsule|style=2|margin=5px|{{this is a|nocat=1|path entity|game=Team Fortress 2}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|notitlechange}}}} | |align="center"|{{Code|preset=2|{{param|notitlechange}}}} | ||
| 你可以通过这个参数来防止模板更改页面标题。用于 {{Code|/doc}} 页面。 | | 你可以通过这个参数来防止模板更改页面标题。用于 {{Code|/doc}} 页面。 | ||
| {{CodeBlock|<nowiki>{{entity| | | {{CodeBlock|<nowiki>{{this is a|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life}}</nowiki>}} | ||
| {{ | | {{Capsule|style=2|margin=5px|{{this is a|nocat=1|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life}}}} | ||
|- | |||
|align="center"|{{Code|preset=2|{{param|internal}}}} | |||
|如果启用 (值为 {{Code|1}} 或 {{Code|true}}),则分类页面,并且在“……实体”前显示“内部的”。 | |||
|{{CodeBlock|<nowiki>{{this is a|internal=1|实体}}</nowiki>}} | |||
|{{Capsule|style=2|margin=5px|{{this is a|nocat=1|internal=1|实体}}}} | |||
|- | |||
|align="center"|{{Code|preset=2|{{param|cut}}}} | |||
|如果启用,则在“(内部的)……实体”前显示“被移除的”。同时把页面分类。 | |||
|{{CodeBlock|<nowiki>{{this is a|internal=1|type=实体|cut=1}}</nowiki>}} | |||
|{{Capsule|style=2|margin=5px|{{this is a|nocat=1|internal=1|实体|cut=1}}}} | |||
|- | |||
|align="center"|{{Code|preset=2|{{param|sprite}}}} | |||
|实体的图标: | |||
*如果指定为 {{Code|1}},则模板将根据实体名称 (参数 {{Code|preset=2|{{param|tag=kbd|1}}}}) 查找实体图标文件。(遵循 {{Code|<nowiki>[[File:<实体名称>.png]]</nowiki>}} 格式查找) | |||
*如果为自定值,则模板将根据指定的值查找实体图标文件。{{Note|需要填入后缀名!}} | |||
|{{CodeBlock|<nowiki>{{this is a|name=logic_script|sprite=1|point entity}}</nowiki>}} | |||
|{{Capsule|style=2|margin=5px|{{this is a|nocat=1| name=logic_script|sprite=1|point entity|notitlechange=1}}}} | |||
|- | |||
|align="center"|{{Code|preset=2|{{param|icon}}}} | |||
|使游戏图标显示在左边。 | |||
*如果为 {{Code|1}},则模板将使用 {{Code|preset=2|{{param|tag=kbd|game}}}} 参数的值。 | |||
*如果为自定值,则需要填写游戏的全称。 | |||
*如果为 {{Code|0}} 或当不使用该参数时,图标显示在文本之中。(请参阅以上示例) | |||
|{{CodeBlock|<nowiki>{{this is a|name=info_survivor_position|icon=Left 4 Dead series|point entity|series=Left 4 Dead}}</nowiki>}} | |||
|{{Capsule|style=2|margin=5px|{{this is a|nocat=1|name=info_survivor_position|point entity|notitlechange=1|series=Left 4 Dead|icon=Left 4 Dead series}}}} | |||
|- | |||
|align="center"|{{Code|preset=2|{{param|game1}}}} ~ {{Code|preset=2|{{param|game5}}}} | |||
|如果对象存在于多个游戏,用这些参数进行描述。{{Note|一旦使用了 {{Code|preset=2|{{param|game1}}}},模板的样式会改变。'''{{Code|preset=2|{{param|game}}}} 是必要的,以显示第一个游戏。'''}}{{Note|仅在不使用 {{Code|preset=2|{{param|series}}}} 的情况下有效。}} | |||
|{{CodeBlock|<nowiki>{{this is a|point entity|game=Left 4 Dead|game1=Left 4 Dead 2|game2=Portal 2 | |||
|game3=Team Fortress 2|game4=Portal 2|game5=Counter-Strike: Global Offensive}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|point entity|info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2}}</nowiki>}} | |||
|{{Capsule|style=2|{{this is a|nocat=1|point entity|game=Left 4 Dead|game1=Left 4 Dead 2|game2=Portal 2|game3=Team Fortress 2|game4=Portal 2|game5=Counter-Strike: Global Offensive}}}} | |||
{{Capsule|style=2|{{this is a|nocat=1|point entity|info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2|notitlechange=1}}}} | |||
|- | |||
|align="center"|{{Code|preset=2|{{param|nocat}}}} | |||
|不添加任何分类。 | |||
|{{CodeBlock|<nowiki>{{this is a|name=info_player_start|point entity|nocat=1}}</nowiki>}} | |||
|align="center"|不适用 | |||
|- | |||
|align="center"|{{Code|preset=2|{{param|except-multi}}}} | |||
|与 {{Code|{{Param|except}}}} 相似,但可以同时指定多个游戏。{{Note|不支持添加分类。}} | |||
|{{CodeBlock|<nowiki>{{this is a|name=1|point entity|except-multi={{l4d}}{{hl2}}{{csgo}}}}</nowiki>}} | |||
|{{Capsule|style=2|{{this is a|nocat=1|name=1|point entity|except-multi={{l4d}}{{hl2}}{{csgo}}|notitlechange=1}}}} | |||
|- | |- | ||
|} | |} | ||
== 另请参阅 == | == 另请参阅 == | ||
* {{ | {{Note|以下实体模板已全部弃用。}} | ||
* {{ | * {{t|Ent}} | ||
* {{ | * {{t|Point ent}} | ||
* {{ | * {{t|Base point multi}} | ||
* {{ | * {{t|Brush ent}} | ||
* {{ | * {{t|Base brush multi}} | ||
* {{t|Game name}} | |||
* {{t|Shaderparam}} |
Latest revision as of 16:04, 30 May 2025

This is a documentation subpage for Template:This is a.
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.
此模板是所有实体、控制台命令/变量和着色器页面的主格式页面。每个页面应该在开头包含此内容,以描述每个项目的基本信息,例如它们的含义和可用性。
参数和示例
*: 必要的参数。
参数 | 描述 | 示例 | 预览 |
---|---|---|---|
*{{{1}}} | 对象的类型。以下类型可用:
实体: 控制台变量、控制台命令和 QC 命令:
其他:
![]() |
|
|
{{{shader}}} | 参数所在的着色器(仅当 {{{1}}} 等于 shader parameter 时起作用)。 | ||
{{{engine}}} {{{engine1}}} {{{engine2}}} |
对象应该属于哪个引擎。
![]() |
||
{{{except}}} | 该对象存在于其他所有游戏除了这个游戏外。![]() ![]() |
||
{{{since}}} | 这个对象自从这个游戏中可用。![]() ![]() |
||
{{{name}}} | 对象的名称。它会更改页面名称。默认值为“这”。将其指定为 0 可以移除对象名称。 | ||
{{{series}}} | 对象存在于的系列游戏。 | 这是一个固体实体 ,可在
![]() ![]() | |
{{{game}}} | 对象可用于的游戏。![]() ![]() |
这是一个路径实体 ,可在
![]() | |
{{{notitlechange}}} | 你可以通过这个参数来防止模板更改页面标题。用于 /doc 页面。 | ||
{{{internal}}} | 如果启用 (值为 1 或 true),则分类页面,并且在“……实体”前显示“内部的”。 | ||
{{{cut}}} | 如果启用,则在“(内部的)……实体”前显示“被移除的”。同时把页面分类。 | ||
{{{sprite}}} | 实体的图标:
|
||
{{{icon}}} | 使游戏图标显示在左边。
|
||
{{{game1}}} ~ {{{game5}}} | 如果对象存在于多个游戏,用这些参数进行描述。![]() ![]() |
这是一个点实体 ,可在
![]() ![]() ![]() ![]() ![]() ![]() | |
{{{nocat}}} | 不添加任何分类。 | 不适用 | |
{{{except-multi}}} | 与 {{{except}}} 相似,但可以同时指定多个游戏。![]() |
另请参阅

- {{Ent}}
- {{Point ent}}
- {{Base point multi}}
- {{Brush ent}}
- {{Base brush multi}}
- {{Game name}}
- {{Shaderparam}}