Template:GoldSrc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Pee moved page Template:Gldsrc to Template:GoldSrc)
(optimzation)
Line 1: Line 1:
{{Doc|docpage=Template:Gldsrc/doc}}
{{Doc|docpage=Template:Gldsrc/doc}}
<onlyinclude><includeonly>{{Software
 
| {{{1|}}}
<includeonly>
 
<onlyinclude>{{Software
| 1 = {{{1|}}}
| ico = gldsrc icon.png
| ico = gldsrc icon.png
| ico size = 16px
| ico size = 16px
| link = {{{link|GoldSrc}}}
| link = {{{link|GoldSrc}}}
| name = {{Autolang
| name = {{#switch: {{{lang|{{ROOTPAGENAME}}}}}
| GoldSrc
| #default = GoldSrc
| zh = 金源
| Zh = 金源
}}
}}
| name0 = GoldSource
| name0 = GoldSource
| name1 = {{Autolang
| name1 = {{#switch: {{{lang|{{ROOTPAGENAME}}}}}
| GoldSrc Engine
| #default = GoldSrc Engine
        | fr = Moteur GoldSrc
| Fr = Moteur GoldSrc
| vi = Cộng nghệ GoldSrc
| Vi = Cộng nghệ GoldSrc
| zh = 金源引擎
| Zh = 金源引擎
}}
| name2 = {{#switch: {{{lang|{{ROOTPAGENAME}}}}}
| #default = Half-Life Engine
| Fr = Moteur Half-Life
| Zh = 半衰期引擎
}}
}}
| name2 = {{Autolang
        | Half-Life Engine
        | fr = Moteur Half-Life
| zh = 半衰期引擎
        }}
| col = #FD7360
| col = #FD7360
| addtext = {{{addtext|}}}
| addtext = {{{addtext|}}}
| nt = {{{nt|}}}
| nt = {{{nt|}}}
}}</onlyinclude></includeonly>
}}</onlyinclude>
 
</includeonly>

Revision as of 11:22, 1 August 2024

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
View
Page history

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 {{Software}}.

Parameters

  • {{{1}}} – Optional: The representation, see the examples below. Can be set to: 1, 2, 3, 4, col, in, also, only, since, removed, not;
  • {{{nt}}} – Optional: This option allows you to select a custom game name if it is specified in the template. 0 is most often a game abbreviation;
  • {{{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

{{goldSrc}} GoldSrc
{{goldSrc|1}} GoldSrc
{{goldSrc|2}} GoldSrc GoldSrc
{{goldSrc|3}} GoldSrc
{{goldSrc|3.1}} GoldSrc
{{goldSrc|4}} GoldSrc GoldSrc
{{goldSrc|4.1}} GoldSrc GoldSrc
{{goldSrc|4|nt=0}} GoldSrc GoldSource
{{goldSrc|4|nt=1}} GoldSrc GoldSrc Engine
{{goldSrc|4|nt=2}} GoldSrc Half-Life Engine
{{goldSrc|4|nt=3}} GoldSrc GoldSrc
{{goldSrc|4|nt=4}} GoldSrc GoldSrc
{{goldSrc|4|nt=5}} GoldSrc GoldSrc
{{goldSrc|4|nt=6}} GoldSrc GoldSrc
{{goldSrc|col}} → #FD7360
{{goldSrc|in}} (in GoldSrc)
{{goldSrc|only}} (only in GoldSrc)
{{goldSrc|since}} (in all games since GoldSrc)
{{goldSrc|not}} (not in GoldSrc)
{{goldSrc|removed}} (removed since GoldSrc)
{{goldSrc|also|addtext={{csgo}} {{l4d2}}}} (also in GoldSrcCounter-Strike: Global Offensive Left 4 Dead 2)