From Valve Developer Community
Jump to navigation
Jump to search
|
|
Line 1: |
Line 1: |
| {{Documentation|Template:Hl2/doc}} | | {{Documentation|Template:Hl2/doc}} |
| <onlyinclude><includeonly>{{Software | | <onlyinclude><includeonly>{{Software |
| | {{{1}}} | | | {{{1|}}} |
| | ico = Hl2xbox-16px.png | | | ico = Hl2xbox-16px.png |
| | link = Half-Life 2 (Xbox) | | | link = Half-Life 2 (Xbox) |
| | name = {{autolang|Half-Life 2 (Xbox)|zh=半衰期 2(Xbox)}} | | | name = {{Autolang |
| | | Half-Life 2 (Xbox) |
| | | zh = 半衰期2(Xbox) |
| | }} |
| | | name0 = hl2xbox |
| | | name1 = {{Autolang |
| | | Half-Life 2 |
| | | zh = 半衰期2 |
| | }} |
| | suf = {{{suf|}}} | | | suf = {{{suf|}}} |
| | col = #D4FF00 | | | col = #D4FF00 |
| | addtext = {{{addtext|}}} | | | addtext = {{{addtext|}}} |
| | | nt = {{{nt|}}} |
| }}</includeonly></onlyinclude> | | }}</includeonly></onlyinclude> |
Revision as of 04:54, 24 April 2023

Available doc translations
…
English
Usage
Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the {{game color}}.
This template is based on {{new icon}}.
Parameters
- {{{1}}} - Optional: The representation, see the examples below. Can be set to:
1, 2, 3, 4, col, in, also, only, since, removed, not
.
- {{{suf}}} - Optional: To link to a specific language, set this to the appropriate language suffix, e.g.
:es
, see {{lang}}.
- {{{addtext}}} - Optional: If {{{1}}} is set to
in, also, only, since, removed
or not
, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.
Examples
Note:Some of the examples given may lead to non-existent pages.
{{hl2xbox}}
|
→
|
{{hl2xbox|1}}
|
→ [[Half-Life 2 (Xbox)|<span style="white-space:nowrap; " title="This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
">This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
{{hl2xbox|2}}
|
→ [[Half-Life 2 (Xbox)|<span style="" title="This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
">This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
{{hl2xbox|3}}
|
→ [[Half-Life 2 (Xbox)|<span title="This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
" style="white-space:nowrap; color:#D4FF00; background:rgb(0,0,0,.16); font-weight:bold; padding:2px; border-radius:4px; ">This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
{{hl2xbox|4}}
|
→ [[Half-Life 2 (Xbox)|<span title="This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
" style="color:#D4FF00;">This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
{{hl2xbox|1|suf=:es}}
|
→ [[Half-Life 2 (Xbox)|<span style="white-space:nowrap; " title="This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
">This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
{{hl2xbox|4|suf=:zh-cn}}
|
→ [[Half-Life 2 (Xbox)|<span title="This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
" style="color:#D4FF00;">This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
{{hl2xbox|col}}
|
→ #D4FF00
|
{{hl2xbox|in}}
|
→ (in )
|
{{hl2xbox|only}}
|
→ (only in )
|
{{hl2xbox|since}}
|
→ (in all games since )
|
{{hl2xbox|not}}
|
→ (not in )
|
{{hl2xbox|removed|suf=:ru}}
|
→ (removed since )
|
{{hl2xbox|also|suf=:de|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}}
|
→ (also in  )
|