Template:This is a/doc/zh

From Valve Developer Community
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.
Info content.png
This translated page needs to be updated.
You can help by updating the translation.
Also, please make sure the article complies with the alternate languages guide.(en)

该模板即每个实体页面上的第一句话,用于描述一个实体的基本信息。
此外,它还可以为一个控制台变量等内容创建描述其的基本信息。

参数和示例

*: 必要的参数。

参数 描述 示例 预览
*{{{type}}} 实体的类型。以下类型可用:
{{entity|type=''incredible entity''|engine=''Mosaic''}}
{{entity|type=e1|engine=3}}

{{entity|type=e2|engine=1}}
{{entity|type=convar|sv_cheats}}
{{{engine}}} 实体应该属于哪个引擎。
{{entity|type=e1|engine=3}}
{{entity|type=e1}}
{{{except}}} 该实体存在于其他所有游戏除了这个游戏外。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{game}}} 的情况下有效。
{{entity|func_monitor|type=e2|except=Left 4 Dead series}}
{{{since}}} 这个实体自从这个游戏中可用。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{game}}} 的情况下有效。
{{entity|type=e0|info_player_start|engine=1|since=Half-Life}}
{{{1}}} 实体的名称。它会更改页面名称。默认值为“这”。将其指定为 0 可以移除实体名称。
{{entity|type=e0|info_player_start}}
{{{series}}} 实体存在于的系列游戏。
{{entity|type=e2|series=Counter-Strike}}
{{{seriescs}}} 实体存在于的反恐精英系列游戏。
{{entity|type=e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}
{{{game}}} 实体可用于的游戏。
Note.png注意:应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。
Note.png注意:仅在不使用 {{{series}}} 的情况下有效。
{{entity|type=e5|game=Team Fortress 2}}
{{{notitlechange}}} 你可以通过这个参数来防止模板更改页面标题。用于 /doc 页面。
{{entity|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}
{{{internal}}} 如果启用 (值为 1true),则将页面添加到 Category:Internal entities,并且在“……实体”前显示“内部的”。
Note.png注意:如果 {{{type}}} 为已经定义的值 (例如 e0),则该参数无效。
{{entity|internal=1|type=实体}}
{{{cut}}} 如果启用,则在“(内部的)……实体”前显示“被移除的”。同时把页面添加到 Category:Cut Entities
{{entity|internal=1|type=实体|cut=1}}
{{{sprite}}} 实体的图标:
  • 如果指定为 1,则模板将根据实体名称 (参数 {{{1}}}) 查找实体图标文件。(遵循 [[File:<实体名称>.png]] 格式查找)
  • 如果为自定值,则模板将根据指定的值查找实体图标文件。
    Note.png注意:需要填入后缀名!
{{entity|logic_script|sprite=1|type=e0}}
{{{icon}}} 使游戏图标显示在左边。
  • 如果为 1,则模板将使用 {{{game}}} 参数的值。
  • 如果为自定值,则需要填写游戏的全称。
  • 如果为 0 或当不使用该参数时,图标显示在文本之中。(请参阅以上示例)
{{entity|info_survivor_position|icon=Left 4 Dead series|type=e0|series=Left 4 Dead}}
{{{game1}}} ~ {{{game5}}} 如果实体存在于多个游戏,用这些参数进行描述。
Note.png注意:一旦使用了 {{{game1}}},模板的样式会改变。{{{game}}} 是必要的,以显示第一个游戏。
Note.png注意:仅在不使用 {{{series}}} 的情况下有效。
{{entity|type=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}}
{{entity|type=e0|info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2}}
{{{nocat}}} 不添加任何分类。
{{entity|info_player_start|type=e0|nocat=1}}
不适用
{{{except-multi}}} {{{except}}} 相似,但可以同时指定多个游戏。
{{entity|1|type=e0|except-multi={{l4d}}{{hl2}}{{csgo}}}}
{{{notext}}} 仅更改标题 (除非 {{{notitlechange}}} 为 1) 和添加分类 (除非 {{{nocat}}} 为 1)。用于使用 {{MultiPage}} 模板的页面的基础页面。
Note.png注意:必须在 {{MultiPage}} 之前放置以更改标题。
{{entity|1|type=e0|notext=1}}

另请参阅

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