Template:Half-Life 2/doc/zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Doc/subpage}} == 用法 == 提供具有此缩写的游戏的图标和/或链接。还可以获得游戏颜色。 本模板基于 {{tl2|Software}}。 === 参数 === * {{pa...")
 
mNo edit summary
Line 1: Line 1:
{{Doc/subpage}}
{{Documentation subpage}}


== 用法 ==
== 用法 ==
Line 8: Line 8:
=== 参数 ===
=== 参数 ===
* {{param|1}} - 可选:表示形式,请参见以下示例。可以设置为:{{Code|select=1|1}}、{{Code|select=1|2}}、{{Code|select=1|3}}、{{Code|select=1|4}}、{{Code|select=1|col}}、{{Code|select=1|in}}、{{Code|select=1|also}}、{{Code|select=1|only}}、{{Code|select=1|since}}、{{Code|select=1|removed}}、{{Code|select=1|not}}。
* {{param|1}} - 可选:表示形式,请参见以下示例。可以设置为:{{Code|select=1|1}}、{{Code|select=1|2}}、{{Code|select=1|3}}、{{Code|select=1|4}}、{{Code|select=1|col}}、{{Code|select=1|in}}、{{Code|select=1|also}}、{{Code|select=1|only}}、{{Code|select=1|since}}、{{Code|select=1|removed}}、{{Code|select=1|not}}。
* {{param|nt}} - 可选:此选项允许您选择自定义游戏名称(如果在模板中指定)。0 通常是游戏缩写。
* {{param|nt}} - 可选:此选项允许您选择自定义游戏名称(如果在模板中指定)。{{Code|select=1|0}} 通常是游戏缩写。
* {{param|addtext}} - 可选:如果把 {{param|1}} 设置为 {{Code|select=1|in}}、{{Code|select=1|also}}、{{Code|select=1|only}}、{{Code|select=1|since}}、{{Code|select=1|removed}} 或 {{Code|select=1|not}},然后,此参数的值将直接插入到游戏图标之后。适用于多个游戏图标。
* {{param|addtext}} - 可选:当 {{param|1}} 设置为 {{Code|select=1|in}}、{{Code|select=1|also}}、{{Code|select=1|only}}、{{Code|select=1|since}}、{{Code|select=1|removed}} 或 {{Code|select=1|not}},此参数的值将直接插入到游戏图标之后。


=== 示例 ===
=== 示例 ===
{{note:zh-cn|给出的一些示例可能会导致页面不存在。}}
{{note|给出的一些示例可能会导致页面不存在。}}
{| class=wikitable
{| class=wikitable
|-
|-
Line 26: Line 26:
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| → {{{{ROOTPAGENAME}}|3}}
| → {{{{ROOTPAGENAME}}|3}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
| → {{{{ROOTPAGENAME}}|3.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| → {{{{ROOTPAGENAME}}|4}}
| → {{{{ROOTPAGENAME}}|4}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
| → {{{{ROOTPAGENAME}}|4.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
Line 35: Line 41:
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| → {{{{ROOTPAGENAME}}|4|nt=1}}
| → {{{{ROOTPAGENAME}}|4|nt=1}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|ico}}
| → {{{{ROOTPAGENAME}}|ico}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| → {{{{ROOTPAGENAME}}|col}}
| → {{{{ROOTPAGENAME}}|col}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|name}}
| → {{{{ROOTPAGENAME}}|name}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
Line 57: Line 69:
| → {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
| → {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
|}
|}


{{Doc/Sandbox other|
{{Doc/Sandbox other|
[[Category:Game icons]]
[[Category:Game icons]]
}}
}}

Revision as of 00:30, 26 April 2023

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

用法

提供具有此缩写的游戏的图标和/或链接。还可以获得游戏颜色。

本模板基于 {{Software}}

参数

  • {{{1}}} - 可选:表示形式,请参见以下示例。可以设置为:1234colinalsoonlysinceremovednot
  • {{{nt}}} - 可选:此选项允许您选择自定义游戏名称(如果在模板中指定)。0 通常是游戏缩写。
  • {{{addtext}}} - 可选:当 {{{1}}} 设置为 inalsoonlysinceremovednot,此参数的值将直接插入到游戏图标之后。

示例

Note.png注意:给出的一些示例可能会导致页面不存在。
{{half-Life 2}} 半衰期2
{{half-Life 2|1}} 半衰期2
{{half-Life 2|2}} 半衰期2 半衰期2
{{half-Life 2|3}} 半衰期2
{{half-Life 2|3.1}} 半衰期2
{{half-Life 2|4}} 半衰期2 半衰期2
{{half-Life 2|4.1}} 半衰期2 半衰期2
{{half-Life 2|4|nt=0}} 半衰期2 HL2
{{half-Life 2|4|nt=1}} 半衰期2 半衰期2
{{half-Life 2|ico}} → Hl2 icon.png
{{half-Life 2|col}} → #E6AC39
{{half-Life 2|name}} → 半衰期2
{{half-Life 2|in}} (存在于 半衰期2 之中)
{{half-Life 2|only}} (存在于 半衰期2 之中)
{{half-Life 2|since}} (存在于自 半衰期2 以来)
{{half-Life 2|not}} (存在于 半衰期2)
{{half-Life 2|removed}} (被移除半衰期2 以来)
{{half-Life 2|also|addtext={{csgo}} {{l4d2}}}} (也存在于 半衰期2Counter-Strike: Global Offensive 求生之路2 之中)