这篇条目有关 "金源" 引擎。如需详情,点击这里。
这篇条目有关 Source引擎。如需详情,点击这里。
这篇条目有关 Source 2引擎。如需详情,点击这里。

Template:This is a/doc/zh

From Valve Developer Community
Jump to: navigation, search
Edit-copy.png
这是 Template:This is a 的文档子页面。  
快捷方式
{{Thisis}}

此模板是所有实体、控制台命令/变量和着色器页面的主格式页面。每个页面应该在开头包含此内容,以描述每个项目的基本信息,例如它们的含义和可用性。应该将其放置在使用{{MultiPage}}的文章的基础页面上。

参数和示例

*: 必要的参数。

参数 描述 示例 预览
*{{{1}}} 对象的类型。以下类型可用:

实体:

控制台变量、控制台命令和 QC 命令:

其他:

  • 自定义 (你可以自己指定对象类型。详见示例)
Note.png注意:当使用非实体类型时(例如 console variable),模板不会添加实体分类和改变页面标题。
{{this is a|point entity|internal=1|engine=Source 2}}

{{this is a|brush entity|engine=GoldSrc}}
{{this is a|console variable|name=sv_cheats}}
{{this is a|pixel shader|name=LightmappedGeneric}}
This is a internal point entity available in all 起源2 起源2 games.
This is a brush entity available in all 金源 金源 games.
sv_cheats is a console variable available in all 起源 起源 games.
LightmappedGeneric is a pixel shader available in all 起源 起源 games.
{{{shader}}} 参数所在的着色器(仅当 {{{1}}} 等于 shader parameter 时起作用)。
{{this is a|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 MP|game1=Garry's Mod}}
$lightmap is a material shader parameter for the VertexLitGeneric shader available in 起源2013 多人分支 起源2013 多人分支 and Garry's Mod Garry's Mod.
{{{engine}}}
{{{engine1}}}
{{{engine2}}}
对象应该属于哪个引擎。
Icon-Important.png重要:要添加多个引擎,请把参数 {{{engine1}}} (第二引擎) 和 {{{engine2}}} (第三引擎) 与参数 {{{engine}}} (第一引擎) 一同使用。
{{this is a|point entity|internal=1|engine=Source 2}}
{{this is a|point entity|internal=1}}
{{this is a|point entity|engine=GoldSrc|engine1=Source}}
{{this is a|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2}}
This is a internal point entity available in all 起源2 起源2 games.
This is a internal point entity available in all 起源 起源 games.
This is a point entity available in all 金源 金源 and 起源 起源 games.
This is a point entity available in all 金源 金源, 起源 起源, and 起源2 起源2 games.
{{{except}}} 该对象存在于其他所有游戏除了这个游戏外。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{game}}} 的情况下有效。
{{this is a|name=func_monitor|brush entity|except=Left 4 Dead series}}
func_monitor is a brush entity available in all 起源 起源 games except Left 4 Dead series 求生之路系列.
{{{since}}} 这个对象自从这个游戏中可用。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{game}}} 的情况下有效。
{{this is a|point entity|name=info_player_start|engine=GoldSrc|since=Half-Life}}
info_player_start is a point entity available in all 金源 金源 games since 半衰期 半衰期.
{{{name}}} 对象的名称。它会更改页面名称。默认值为“这”。将其指定为 0 可以移除对象名称。
{{this is a|point entity|name=info_player_start}}
info_player_start is a point entity available in all 起源 起源 games.
{{{series}}} 对象存在于的系列游戏。
{{this is a|brush entity|series=Counter-Strike}}
This is a brush entity available in 反恐精英:起源反恐精英:全球攻势.
{{{game}}} 对象可用于的游戏。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{series}}} 的情况下有效。
{{this is a|path entity|game=Team Fortress 2}}
This is a path entity available in 军团要塞2 军团要塞2.
{{{notitlechange}}} 你可以通过这个参数来防止模板更改页面标题。用于 /doc 页面。
{{this is a|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life}}
info_player_start is a point entity available in all 金源 金源 games since 半衰期 半衰期.
{{{internal}}} 如果启用 (值为 1true),则分类页面,并且在“……实体”前显示“内部的”。
{{this is a|internal=1|实体}}
This is a internal 实体 available in all 起源 起源 games.
{{{cut}}} 如果启用,则在“(内部的)……实体”前显示“被移除的”。同时把页面分类。
{{this is a|internal=1|type=实体|cut=1}}
This is a cut internal 实体 available in all 起源 起源 games.
{{{sprite}}} 实体的图标:
  • 如果指定为 1,则模板将根据实体名称 (参数 {{{1}}}) 查找实体图标文件。(遵循 [[File:<实体名称>.png]] 格式查找)
  • 如果为自定值,则模板将根据指定的值查找实体图标文件。
    Note.png注意:需要填入后缀名!
{{this is a|name=logic_script|sprite=1|point entity}}
Logic script.png
logic_script is a point entity available in all 起源 起源 games.
{{{icon}}} 使游戏图标显示在左边。
  • 如果为 1,则模板将使用 {{{game}}} 参数的值。
  • 如果为自定值,则需要填写游戏的全称。
  • 如果为 0 或当不使用该参数时,图标显示在文本之中。(请参阅以上示例)
{{this is a|name=info_survivor_position|icon=Left 4 Dead series|point entity|series=Left 4 Dead}}
Left 4 Dead series info_survivor_position is a point entity available in Left 4 Dead series 求生之路系列.
{{{game1}}} ~ {{{game5}}} 如果对象存在于多个游戏,用这些参数进行描述。
Note.png注意:一旦使用了 {{{game1}}},模板的样式会改变。{{{game}}} 是必要的,以显示第一个游戏。
Note.png注意:仅在不使用 {{{series}}} 的情况下有效。
{{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}}
{{this is a|point entity|info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2}}
This is a point entity available in 求生之路 求生之路 and 求生之路2 求生之路2.
{{{nocat}}} 不添加任何分类。
{{this is a|name=info_player_start|point entity|nocat=1}}
不适用
{{{except-multi}}} {{{except}}} 相似,但可以同时指定多个游戏。
Note.png注意:不支持添加分类。
{{this is a|name=1|point entity|except-multi={{l4d}}{{hl2}}{{csgo}}}}
1 is a point entity available in all 起源 起源 games except 求生之路半衰期2反恐精英:全球攻势.

另请参阅

Note.png注意:以下实体模板已全部弃用。