Difference between revisions of "Template:Game color"

From Valve Developer Community
Jump to: navigation, search
m (just put all the items on a new line and added such items so that for example the "Game name" template could correctly highlight the desired game. and yes, user from past edit is right)
(Added "Half-Life: Alyx" case.)
 
(2 intermediate revisions by the same user not shown)
Line 37: Line 37:
 
| hlalyx
 
| hlalyx
 
| HL:A
 
| HL:A
| Half-Life Alyx = <nowiki>#c25e36</nowiki>
+
| Half-Life Alyx
 +
| Half-Life: Alyx = <nowiki>#c25e36</nowiki>
 
| {{tf2}}
 
| {{tf2}}
 
| tf2
 
| tf2
Line 68: Line 69:
 
| {{sin}}
 
| {{sin}}
 
| sin
 
| sin
| Sin Episodes = <nowiki>rgb(100,165,150)</nowiki>
+
| SiN Episodes = <nowiki>#64a596</nowiki><!-- rgb(100,165,150) -->
 
| {{bms}}
 
| {{bms}}
 
| bms
 
| bms
Line 85: Line 86:
 
| con
 
| con
 
| Contagion = <nowiki>#417ee0</nowiki>
 
| Contagion = <nowiki>#417ee0</nowiki>
 +
| {{cs}}
 +
| cs
 +
| Counter-Strike = <nowiki>#eeeeee</nowiki>
 +
| {{cscz}}
 +
| cscz
 +
| {{czds}}
 +
| czds
 +
| Condition Zero Deleted Scenes
 +
| Counter-Strike: Condition Zero = <nowiki>#ffffa0</nowiki>
 +
| {{css}}
 +
| css
 +
| Counter-Strike: Source = <nowiki>#90c0ff</nowiki>
 
| {{csgo}}
 
| {{csgo}}
 
| csgo
 
| csgo

Latest revision as of 12:14, 11 October 2021

Template icon Template documentation[view] [edit] [history] [purge]

Template for accessing unique, pre-defined colors for games and engine branches documented on the Valve Developer Community, based on feature addition templates. This template forwards a color variable directly and is intended to be used inside of wiki formatting.

Usage

Wikitext Result
{{Game color|csgo}}
#5eedaf
<span style="color:{{Game color|csgo}};font-weight:bold;">(Example text)</span>
(Example text)
{| class="wikitable"
| style="background:{{Game color|as}};"| (Example text)
|}
(Example text)

Game list

Game Abbreviation Result Color Code
Alien Swarm as #3E6D7F
Alien Swarm: Reactive Drop asrd #4e967c
Black Mesa (Source) bms #e47125
Black Mesa bms #e47125
Contagion con #417ee0
Counter-Strike cs #eeeeee
Counter-Strike: Condition Zero cscz #ffffa0
Condition Zero Deleted Scenes czds #ffffa0
Counter-Strike: Source css #90c0ff
Counter-Strike: Global Offensive csgo #5eedaf
Entropy : Zero ez1 #00fff7
Entropy : Zero 2 ez2 #ff5729
Garry's Mod GMOD #1295f0
Half-Life hl1 #de5009
Half-Life: Source hls #DC143C
Half-Life 2 hl2 #ffcc14
Half-Life 2: Episode One ep1 #ff8f00
Half-Life 2: Episode Two ep2 #F26025
Half-Life: Alyx HL:A #c25e36
INFRA INFRA #99ccff
Insurgency insurgency #c7d1e0
Left 4 Dead l4d #317C29
Left 4 Dead 2 l4d2 #BFA828
Mapbase mapbase #a163c9
Portal portal #6bbcfa
Portal 2 portal2 #23B1E5
Portal 2: Community Edition P2CE #FF7B02
Portal 2010 ARG Update portal #6bbcfa
Sin Episodes sin #64a596
Source 2006 src06 #ff8f00
Source 2007 src07 #F26025
Source 2009 src09 #558fa5
Source 2013 src13 #9bf442
Source 2013 MP src13mp #d3f442
Source Filmmaker sfm #C8B17D
Synergy synergy #09e359
Team Fortress 2 tf2 #CF7336
Default none of the above #add8e6

See Also