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

Template:This is a/doc/zh

From Valve Developer Community
< Template:This is a‎ | doc
Revision as of 06:09, 10 May 2024 by 1416006136 (talk | contribs) (updated translations)
Jump to navigation Jump to search
Edit-copy.png
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.
快捷方式
{{Thisis}}

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

参数和示例

*: 必要的参数。

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

实体:

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

其他:

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

{{this is a|e2|engine=1}}
{{this is a|convar|name=sv_cheats}}
{{this is a|s0|name=LightmappedGeneric}}
这是一个incredible entity,可在所有的 Template:''Mosaic'' 游戏中使用。Template:''Mosaic'' topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{Mosaic}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
这是一个e1,可在所有的 Template:3 游戏中使用。Template:3 topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{3}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
这是一个e2,可在所有的 Template:1 游戏中使用。Template:1 topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
sv_cheats是一个convar,可在所有的 Source Source 游戏中使用。
LightmappedGeneric是一个s0,可在所有的 Source Source 游戏中使用。
{{{engine}}}
{{{engine1}}}
{{{engine2}}}
对象应该属于哪个引擎。
  • 缺省值 - Source Source (和 2 一致)
  • 1, gldsrc - GoldSrc GoldSrc
  • 2, source - Source Source
  • 3, source2 - 起源2 起源2
  • 自定义 - 你可以自己指定其他引擎。
Icon-Important.png重要:要添加多个引擎,请把参数 {{{engine1}}} (第二引擎) 和 {{{engine2}}} (第三引擎) 与参数 {{{engine}}} (第一引擎) 一同使用。
{{this is a|e1|engine=3}}
{{this is a|e1}}
{{this is a|e0|engine=1|engine1=2}}
{{this is a|e0|engine=1|engine1=2|engine2=3}}
这是一个e1,可在所有的 Template:3 游戏中使用。Template:3 topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{3}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
这是一个e1,可在所有的 Source Source 游戏中使用。
这是一个e0,可在所有的 Template:1Template:2 游戏中使用。Template:1 topiconTemplate:2 topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
  • The {{{engine1}}} parameter is inconsistent with the name defined by the {{2}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
这是一个e0,可在所有的 Template:1Template:2Template:3 游戏中使用。Template:1 topiconTemplate:2 topiconTemplate:3 topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
  • The {{{engine1}}} parameter is inconsistent with the name defined by the {{2}} template.
  • The {{{engine2}}} parameter is inconsistent with the name defined by the {{3}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
{{{except}}} 该对象存在于其他所有游戏除了这个游戏外。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{game}}} 的情况下有效。
{{this is a|name=func_monitor|e2|except=Left 4 Dead series}}
func_monitor是一个e2,可在所有的 Source Source 游戏,除了 求生之路系列求生之路系列 求生之路系列中使用。
{{{since}}} 这个对象自从这个游戏中可用。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{game}}} 的情况下有效。
{{this is a|e0|name=info_player_start|engine=1|since=Half-Life}}
info_player_start是一个e0,可在所有的 Template:1 游戏,自从 Half-Life Half-Life 以来中使用。Template:1 topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
{{{name}}} 对象的名称。它会更改页面名称。默认值为“这”。将其指定为 0 可以移除对象名称。
{{this is a|e0|name=info_player_start}}
info_player_start是一个e0,可在所有的 Source Source 游戏中使用。
{{{series}}} 对象存在于的系列游戏。
{{this is a|e2|series=Counter-Strike}}
这是一个e2,可在Counter-Strike seriesCounter-Strike series Counter-Strike series中使用。
{{{seriescs}}} 对象存在于的反恐精英系列游戏。
{{this is a|e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}
这是一个e3,可在Counter-Strike: Source Counter-Strike: Source中使用。
{{{game}}} 对象可用于的游戏。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{series}}} 的情况下有效。
{{this is a|e5|game=Team Fortress 2}}
这是一个e5,可在Team Fortress 2 Team Fortress 2中使用。
{{{notitlechange}}} 你可以通过这个参数来防止模板更改页面标题。用于 /doc 页面。
{{this is a|e0|notitlechange=1|name=info_player_start|engine=1|since=Half-Life}}
info_player_start是一个e0,可在所有的 Template:1 游戏,自从 Half-Life Half-Life 以来中使用。Template:1 topicon
Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
{{{internal}}} 如果启用 (值为 1true),则将页面添加到 Category:Internal entities,并且在“……实体”前显示“内部的”。
Note.png注意:如果 {{{type}}} 为已经定义的值 (例如 e0),则该参数无效。
{{this is a|internal=1|实体}}
这是一个内部的(en)实体,可在所有的 Source Source 游戏中使用。
{{{cut}}} 如果启用,则在“(内部的)……实体”前显示“被移除的”。同时把页面添加到 Category:Cut Entities
{{this is a|internal=1|type=实体|cut=1}}
这是一个被移除的内部的(en)实体,可在所有的 Source Source 游戏中使用。
{{{sprite}}} 实体的图标:
  • 如果指定为 1,则模板将根据实体名称 (参数 {{{1}}}) 查找实体图标文件。(遵循 [[File:<实体名称>.png]] 格式查找)
  • 如果为自定值,则模板将根据指定的值查找实体图标文件。
    Note.png注意:需要填入后缀名!
{{this is a|name=logic_script|sprite=1|e0}}
Logic script.png
logic_script是一个e0,可在所有的 Source Source 游戏中使用。
{{{icon}}} 使游戏图标显示在左边。
  • 如果为 1,则模板将使用 {{{game}}} 参数的值。
  • 如果为自定值,则需要填写游戏的全称。
  • 如果为 0 或当不使用该参数时,图标显示在文本之中。(请参阅以上示例)
{{this is a|name=info_survivor_position|icon=Left 4 Dead series|e0|series=Left 4 Dead}}
求生之路系列求生之路系列 info_survivor_position是一个e0,可在求生之路系列求生之路系列 求生之路系列中使用。
{{{game1}}} ~ {{{game5}}} 如果对象存在于多个游戏,用这些参数进行描述。
Note.png注意:一旦使用了 {{{game1}}},模板的样式会改变。{{{game}}} 是必要的,以显示第一个游戏。
Note.png注意:仅在不使用 {{{series}}} 的情况下有效。
{{this is a|e0|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|e0|info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2}}
这是一个e0,可在Left 4 Dead Left 4 Dead求生之路2 求生之路2中使用。
{{{nocat}}} 不添加任何分类。
{{this is a|name=info_player_start|e0|nocat=1}}
不适用
{{{except-multi}}} {{{except}}} 相似,但可以同时指定多个游戏。
Note.png注意:不支持添加分类。
{{this is a|name=1|e0|except-multi={{l4d}}{{hl2}}{{csgo}}}}
1是一个e0,可在所有的 Source Source 游戏,除了 Left 4 Dead半衰期2Counter-Strike: Global Offensive中使用。

另请参阅

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