Template:Half-life games: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Set hidecancelled to true by default. I'm not convinced there's ever need to link to these games that didn't get to exist, they aren't developer resource.)
No edit summary
 
(17 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Doc}}
{{Doc}}
{{ulf|en=1|es=1|vi=1|zh=1}}
{{ulf|en=1|es=1|vi=1|zh=1}}
<includeonly><onlyinclude><!--
 
<includeonly>
 
<onlyinclude><!--
-->{{Navbox
-->{{Navbox
| style = width:100%
| style = width:100%
Line 8: Line 11:
| navbar = off
| navbar = off


| titlestyle = font-size: 100%; background-color: {{hl|col}}5a; padding: 2px; color: #fff; border-radius: 8px 8px 0 0;
| titlestyle = font-size: 100%; background-image: linear-gradient(to bottom, #3b5985 0%,#2b415e 100%); padding: 2px; color: #fff;
| bodystyle  = background-color: #202020; clear: both; border: 2px solid #525252; border-radius: 12px; margin: 1em auto 0em;
| bodystyle  = background-color: #202020; clear: both; border: 2px solid #525252; border-radius: 4px; margin: 1em auto 0em;
| groupstyle = background-color: #3A3A3A; padding: 2px 10px; width: 1%; white-space: nowrap; font-weight: bold; text-align: right;
| groupstyle = background-color: #3A3A3A; padding: 2px 10px; width: 1%; white-space: nowrap; font-weight: bold; text-align: right;
| liststyle  = border-left: none;
| liststyle  = border-left: none;


| group1= {{gldsrc|4}}
| group1= {{gldsrc|4.1}}
| group1style= background-color: {{gldsrc|col}}2a;
| group1style= background-color: #3A2724;
| list1= {{hl|2}} {{Autolang
| list1= {{hl|1}} {{#switch:{{language}}
| (also on {{hlps2}}[[Half-Life (PS2)|PS2]])
| #default = (also on [[Half-Life (PS2)|PS2]])
| es = (también en {{hlps2}}[[Half-Life (PS2)|PS2]])
| Es = (también en [[Half-Life (PS2)|PS2]])
| ru = (также на {{hlps2}}[[Half-Life (PS2)|PS2]])
| Ru = (также на [[Half-Life (PS2)|PS2]])
| vi = (cũng có trên {{hlps2}}[[Half-Life (PS2)|PS2]])
| Vi = (cũng có trên [[Half-Life (PS2)|PS2]])
| zh = (也在{{hlps2}}[[Half-Life (PS2)|PS2]]上)
| Zh = (也在{{hlps2}}[[Half-Life (PS2)|PS2]]上)
}} {{•}} {{hlfd|2}} {{•}}
}}&nbsp;{{•}}&nbsp;{{hlfd|1}}&nbsp;{{•}}&nbsp;{{Uplink|1}}&nbsp;{{•}}&nbsp;{{hlop4|1}}&nbsp;{{•}}&nbsp;{{hlbs|1}}&nbsp;{{•}}&nbsp;{{hld|1}} {{#switch:{{language}}
{{Uplink|2}} {{•}}  
| #default = (only in [[Half-Life: Decay|PS2]])
{{hlop4|2}} {{•}}  
| Es = (solo en [[Half-Life: Decay|PS2]])
{{hlbs|2}} {{•}}
| Ru = (также на [[Half-Life: Decay|PS2]])
{{hld|2}} {{Autolang
| Vi = (chỉ có trong [[Half-Life: Decay|PS2]])
| (only in {{hld}}[[Half-Life: Decay|PS2]])
| Zh = (仅在 [[Half-Life: Decay|PS2]]上)
| es = (solo en {{hld}}[[Half-Life: Decay|PS2]])
}}&nbsp;{{•}}&nbsp;{{dmc|1}}{{#switch:{{{hide3rdparty}}}|#default|false|no|0=
| ru = (также на {{hld}}[[Half-Life: Decay|PS2]])
<br>'''''{{Seriesbox strings/strings|Third-party}}''''' {{svencoop|1}}|true|yes|1=}} {{#switch:{{{hidecancelled}}}|#default|false|no|0=
| vi = (chỉ có trong {{hld}}[[Half-Life: Decay|PS2]])
<br>'''''{{Seriesbox strings/strings|Cancelled}}''''' {{hldc|1}}&nbsp;{{•}}&nbsp;[[Wikipedia:Unreleased_Half-Life_games#Half-Life_era_(1998–2004)|More]]|true|yes|1=}}
| zh = (仅在{{hld}}[[Half-Life: Decay|PS2]]上)
}} {{•}}  
{{dmc|2}} {{#switch:{{{hide3rdparty}}}|#default|false|no|0=
<br>'''''{{Seriesbox strings/strings|Third-party}}''''' {{svencoop|2}}|true|yes|1=}} {{#switch:{{{hidecancelled}}}|#default|true|no|0=
<br>'''''{{Seriesbox strings/strings|Cancelled}}''''' {{hldc|2}} {{•}} [[Wikipedia:Unreleased_Half-Life_games#Half-Life_era_(1998–2004)|More]]|true|yes|1=}}
| list1style= background-color: #252525;
| list1style= background-color: #252525;


| group2= {{source|4}}
| group2= {{source|4.1}}
| group2style= background-color: {{source|col}}2a;
| group2style= background-color: #382D1D;
| list2= {{hl2|2}} {{Autolang
| list2= {{hl2|1}} {{#switch:{{language}}
| (also on {{hl2xbox}}[[Half-Life 2 (Xbox)|Xbox]])
| #default = (also on [[Half-Life 2 (Xbox)|Xbox]])
| es = (también en {{hl2xbox}}[[Half-Life 2 (Xbox)|Xbox]])
| Es = (también en [[Half-Life 2 (Xbox)|Xbox]])
| ru = (также на {{hl2xbox}}[[Half-Life 2 (Xbox)|Xbox]])
| Ru = (также на [[Half-Life 2 (Xbox)|Xbox]])
| vi = (cũng có trên {{hl2xbox}}[[Half-Life 2 (Xbox)|Xbox]])
| Vi = (cũng có trên [[Half-Life 2 (Xbox)|Xbox]])
| zh = (也在{{hl2xbox}}[[Half-Life 2 (Xbox)|XBOX]]上)
| Zh = (也在{{hl2xbox}}[[Half-Life 2 (Xbox)|XBOX]]上)
}} {{•}}  
}}&nbsp;{{•}}&nbsp;{{hl2ep1|1}}&nbsp;{{•}}&nbsp;{{hl2ep2|1}}&nbsp;{{•}}&nbsp;{{hl2lc|1}}&nbsp;{{•}}&nbsp;{{hl2dm|1}}&nbsp;{{•}}&nbsp;{{hls|1}}&nbsp;{{•}}&nbsp;{{hldms|1}}{{#switch:{{{hide3rdparty}}}|#default|false|no|0=
{{hl2ep1|2}} {{•}}  
<br>'''''{{Seriesbox strings/strings|Third-party}}''''' {{bms|1}}&nbsp;{{•}}&nbsp;{{hl2rtx|1}}&nbsp;{{•}}&nbsp;{{hl2u|1}}&nbsp;{{•}}&nbsp;{{Synergy|1}}&nbsp;{{•}}&nbsp;{{hl2s|1}}&nbsp;{{•}}&nbsp;{{obm|1}}|true|yes|1=}} {{#switch:{{{hidecancelled}}}|#default|false|no|0=
{{hl2ep2|2}} {{•}}  
<br>'''''{{Seriesbox strings/strings|Cancelled}}''''' {{hl2ep3|1}}&nbsp;{{•}}&nbsp;[[Wikipedia:Unreleased_Half-Life_games#Half-Life_2_era_(2004–2007)|More]]|true|yes|1=}}
{{hl2lc|2}} {{•}}  
{{hl2dm|2}} {{•}}  
{{hls|2}} {{•}}  
{{hldms|2}} {{#switch:{{{hide3rdparty}}}|#default|false|no|0=
<br>'''''{{Seriesbox strings/strings|Third-party}}''''' {{bms|2}}{{•}} {{hl2rtx|2}} {{•}} {{hl2u|2}} {{•}} {{Synergy|2}} {{•}} {{hl2s|2}} {{•}} {{obm|2}}|true|yes|1=}} {{#switch:{{{hidecancelled}}}|#default|true|no|0=
<br>'''''{{Seriesbox strings/strings|Cancelled}}''''' {{hl2ep3|2}} {{•}} [[Wikipedia:Unreleased_Half-Life_games#Half-Life_2_era_(2004–2007)|More]]|true|yes|1=}}


| group3= {{source2|4}}
| group3= {{source2|4.1}}
| group3style= background-color: {{source2|col}}2a;
| group3style= background-color: #382D1D;
| list3= {{hla|2}} {{#switch:{{{hidecancelled}}}|#default|true|no|0=
| list3= {{hla|1}} {{#switch:{{{hidecancelled}}}|#default|false|no|0=
<br>'''''{{Seriesbox strings/strings|Cancelled}}''''' {{Hl3|2|nt=3}} <!-- PLEASE DO NOT CHANGE ANYTHING UNLESS THERE IS A RELIABLE SOURCES --> {{•}} [[Wikipedia:Unreleased_Half-Life_games#Source_2_era_(2007–2020)|More]]|true|yes|1=}}
<br>'''''{{Seriesbox strings/strings|Cancelled}}''''' {{hl3|nt=3|1}} <!-- PLEASE DO NOT CHANGE ANYTHING UNLESS THERE IS A RELIABLE SOURCES -->&nbsp;{{•}}&nbsp;[[Wikipedia:Unreleased_Half-Life_games#Source_2_era_(2007–2020)|More]]|true|yes|1=}}
| list3style= background-color: #252525;
| list3style= background-color: #252525;


| group4= {{#switch:{{{hide3rdparty}}}|#default|false|no|0={{Seriesbox strings/strings|Other engines}}|true|yes|1=}}
| group4= {{#switch:{{{hide3rdparty}}}|#default|false|no|0={{Seriesbox strings/strings|Other engines}}|true|yes|1=}}
| list4={{#switch:{{{hide3rdparty}}}|#default|false|no|0='''''{{Seriesbox strings/strings|Third-party}}''''' {{cg|2}} ({{flash}}) • '''[[FreeHL]]''' ({{fte}})|true|yes|1=}}
| list4={{#switch:{{{hide3rdparty}}}|#default|false|no|0='''''{{Seriesbox strings/strings|Third-party}}''''' {{cg|1}} ({{flash}}) • '''[[FreeHL]]''' ({{fte}})|true|yes|1=}}


| group5= {{Seriesbox strings/strings|Related}}
| group5= {{Seriesbox strings/strings|Related}}
| group5style= border-radius: 0 0 0 8px;
| list5 = {{portalserieslinked|1}}&nbsp;{{•}}&nbsp;{{tob|1}}
| list5 = {{portalserieslinked|2}}
| list5style= {{#switch:{{{hide3rdparty}}}|#default|false|no|0=background-color: #252525;|true|yes|1=}};
| list5style= {{#switch:{{{hide3rdparty}}}|#default|false|no|0=background-color: #252525;|true|yes|1=}} border-radius: 0 0 8px 0;
 
}}{{#if:{{{nocat|}}}||{{ACategory|Half-Life series}}}}</onlyinclude>
 
</includeonly>


}} {{#if:{{{nocat|}}}
[[Category:Seriesbox templates]]
|
[[Category:Navbox templates]]
| [[Category:Half-Life series]]
}} </onlyinclude></includeonly>[[Category:Seriesbox templates]] [[Category:Navbox templates]]</noinclude>

Latest revision as of 08:37, 26 October 2025

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
Page history
Icon-translate.png
This template uses a strings subpage
Additional translations come from the following string template(s): {{Seriesbox strings/strings}}
Please follow the format on this subpage(s) to add translations.
Note.pngNote:This template is used to list all games in the Half-Life Half-Life franchise at the bottom of relevant game pages.
Mods and fangames taking place in the Half-Life franchise are also listed if they are notable enough (generally only remakes/remasters and similar, due to prevalence).
Icon-Important.pngImportant:This template does not include games in the Portal franchise, but does include links to the series page; although Portal takes place in the same universe as Half-Life, it is separate franchise, so Template:Portal games should be used instead.

Usage

Put {{Half-life games}} on the page.

See below for parameters.

Parameters

Parameter Description Value
{{{hide3rdparty}}} Hide third-party games if set to true, yes or 1.
| hide3rdparty = true
{{{hidecancelled}}} Hide cancelled games if set to true, yes or 1.
| hidecancelled = true
{{{nocat}}} Prevent the page from being added to Category:Half-Life series
| nocat = true

Preview

Default appearance:

Third-party games hidden:

Cancelled games hidden:

Both third-party & cancelled games hidden :

English (en)Español (es)Tiếng Việt (vi)中文 (zh)