Template:GoldSrc/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Add nt=5/6.)
m (→‎Examples: clean up)
Line 15: Line 15:
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| → {{ {{ROOTPAGENAME}} }}
| {{ {{ROOTPAGENAME}} }}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}}
| → {{{{ROOTPAGENAME}}|1}}
| {{{{ROOTPAGENAME}}|1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
| → {{{{ROOTPAGENAME}}|2}}
| {{{{ROOTPAGENAME}}|2}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| → {{{{ROOTPAGENAME}}|3}}
| {{{{ROOTPAGENAME}}|3}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
| → {{{{ROOTPAGENAME}}|3.1}}
| {{{{ROOTPAGENAME}}|3.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| → {{{{ROOTPAGENAME}}|4}}
| {{{{ROOTPAGENAME}}|4}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
| → {{{{ROOTPAGENAME}}|4.1}}
| {{{{ROOTPAGENAME}}|4.1}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
| → {{{{ROOTPAGENAME}}|4|nt=0}}
| {{{{ROOTPAGENAME}}|4|nt=0}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| → {{{{ROOTPAGENAME}}|4|nt=1}}
| {{{{ROOTPAGENAME}}|4|nt=1}}
|-
|-
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}2}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}2}}
| → {{{{ROOTPAGENAME}}|4|nt=2}}
| {{{{ROOTPAGENAME}}|4|nt=2}}
|-
|-
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}3}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}3}}
| → {{{{ROOTPAGENAME}}|4|nt=3}}
| {{{{ROOTPAGENAME}}|4|nt=3}}
|-
|-
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}4}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}4}}
| → {{{{ROOTPAGENAME}}|4|nt=4}}
| {{{{ROOTPAGENAME}}|4|nt=4}}
|-
|-
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}5}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}5}}
| → {{{{ROOTPAGENAME}}|4|nt=5}}
| {{{{ROOTPAGENAME}}|4|nt=5}}
|-
|-
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}6}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}6}}
| → {{{{ROOTPAGENAME}}|4|nt=6}}
| {{{{ROOTPAGENAME}}|4|nt=6}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| → {{{{ROOTPAGENAME}}|col}}
| {{{{ROOTPAGENAME}}|col}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
| → {{{{ROOTPAGENAME}}|in}}
| {{{{ROOTPAGENAME}}|in}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}}
| → {{{{ROOTPAGENAME}}|only}}
| {{{{ROOTPAGENAME}}|only}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
| → {{{{ROOTPAGENAME}}|since}}
| {{{{ROOTPAGENAME}}|since}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}}
| → {{{{ROOTPAGENAME}}|not}}
| {{{{ROOTPAGENAME}}|not}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}}
| → {{{{ROOTPAGENAME}}|removed}}
| {{{{ROOTPAGENAME}}|removed}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|csgo}} {{tlf|l4d2}}}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|csgo}} {{tlf|l4d2}}}}
| → {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
| {{{{ROOTPAGENAME}}|also|addtext={{csgo}} {{l4d2}}}}
|}
|}



Revision as of 02:22, 12 January 2024

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

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)