Difference between revisions of "Template:Game color"

From Valve Developer Community
Jump to: navigation, search
(Added color for Half-Life: Alyx)
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)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1}}}
 
<includeonly>{{#switch: {{{1}}}
 
| {{src06}}
 
| {{src06}}
 +
| src06
 
| Source 2006 = <nowiki>#ff8f00</nowiki>
 
| Source 2006 = <nowiki>#ff8f00</nowiki>
 
| {{src07}}
 
| {{src07}}
 +
| src07
 
| Source 2007 = <nowiki>#F26025</nowiki>
 
| Source 2007 = <nowiki>#F26025</nowiki>
 
| {{src09}}
 
| {{src09}}
 +
| src09
 
| Source 2009 = <nowiki>#558fa5</nowiki>
 
| Source 2009 = <nowiki>#558fa5</nowiki>
 
| {{src13}}
 
| {{src13}}
 +
| src13
 
| Source 2013 = <nowiki>#9bf442</nowiki>
 
| Source 2013 = <nowiki>#9bf442</nowiki>
 
| {{src13mp}}
 
| {{src13mp}}
 +
| src13mp
 
| Source 2013 MP = <nowiki>#d3f442</nowiki>
 
| Source 2013 MP = <nowiki>#d3f442</nowiki>
 
| {{hl1}}
 
| {{hl1}}
 +
| hl1
 
| Half-Life = <nowiki>#de5009</nowiki>
 
| Half-Life = <nowiki>#de5009</nowiki>
 
| {{HLS}}
 
| {{HLS}}
 +
| HLS
 +
| hls
 
| Half-Life: Source = <nowiki>#DC143C</nowiki>
 
| Half-Life: Source = <nowiki>#DC143C</nowiki>
 
| {{hl2}}
 
| {{hl2}}
 +
| hl2
 
| Half-Life 2 = <nowiki>#ffcc14</nowiki>
 
| Half-Life 2 = <nowiki>#ffcc14</nowiki>
 
| {{ep1}}
 
| {{ep1}}
 +
| ep1
 
| Half-Life 2: Episode One = <nowiki>#ff8f00</nowiki>
 
| Half-Life 2: Episode One = <nowiki>#ff8f00</nowiki>
 
| {{ep2}}
 
| {{ep2}}
 +
| ep2
 
| Half-Life 2: Episode Two = <nowiki>#F26025</nowiki>
 
| Half-Life 2: Episode Two = <nowiki>#F26025</nowiki>
 
| {{hl2episodes}}
 
| {{hl2episodes}}
 +
| hl2episodes
 
| Half-Life 2 episodes = <nowiki>#f57214</nowiki>
 
| Half-Life 2 episodes = <nowiki>#f57214</nowiki>
 
| {{hlalyx}}
 
| {{hlalyx}}
 +
| hlalyx
 +
| HL:A
 
| Half-Life Alyx = <nowiki>#c25e36</nowiki>
 
| Half-Life Alyx = <nowiki>#c25e36</nowiki>
 
| {{tf2}}
 
| {{tf2}}
 +
| tf2
 
| Team Fortress 2 = <nowiki>#CF7336</nowiki>
 
| Team Fortress 2 = <nowiki>#CF7336</nowiki>
 
| {{l4d}}
 
| {{l4d}}
 +
| l4d
 
| {{l4ds}}
 
| {{l4ds}}
 +
| l4ds
 
| Left 4 Dead series
 
| Left 4 Dead series
 
| Left 4 Dead = <nowiki>#317C29</nowiki>
 
| Left 4 Dead = <nowiki>#317C29</nowiki>
 
| {{l4d2}}
 
| {{l4d2}}
 +
| l4d2
 
| Left 4 Dead 2 = <nowiki>#BFA828</nowiki>
 
| Left 4 Dead 2 = <nowiki>#BFA828</nowiki>
 
| {{as}}
 
| {{as}}
 +
| as
 
| Alien Swarm = <nowiki>#3E6D7F</nowiki>
 
| Alien Swarm = <nowiki>#3E6D7F</nowiki>
 
| {{asrd}}
 
| {{asrd}}
 +
| asrd
 
| Alien Swarm: Reactive Drop = <nowiki>#4e967c</nowiki>
 
| Alien Swarm: Reactive Drop = <nowiki>#4e967c</nowiki>
 
| {{portal}}
 
| {{portal}}
 +
| portal
 
| Portal 2010 ARG Update
 
| Portal 2010 ARG Update
 
| Portal = <nowiki>#6bbcfa</nowiki>
 
| Portal = <nowiki>#6bbcfa</nowiki>
 
| {{portal2}}
 
| {{portal2}}
 +
| portal2
 
| Portal 2 = <nowiki>#23B1E5</nowiki>
 
| Portal 2 = <nowiki>#23B1E5</nowiki>
 
| {{P2CE}}
 
| {{P2CE}}
 +
| P2CE
 
| Portal 2: Community Edition = <nowiki>#FF7B02</nowiki>
 
| Portal 2: Community Edition = <nowiki>#FF7B02</nowiki>
 
| {{sin}}
 
| {{sin}}
 +
| sin
 
| Sin Episodes = <nowiki>rgb(100,165,150)</nowiki>
 
| Sin Episodes = <nowiki>rgb(100,165,150)</nowiki>
 
| {{bms}}
 
| {{bms}}
 +
| bms
 
| Black Mesa (Source)
 
| Black Mesa (Source)
 
| Black Mesa = <nowiki>#e47125</nowiki>
 
| Black Mesa = <nowiki>#e47125</nowiki>
 
| {{GMOD}}
 
| {{GMOD}}
 +
| GMOD
 
| Garry's Mod = <nowiki>#1295f0</nowiki>
 
| Garry's Mod = <nowiki>#1295f0</nowiki>
 
| {{insurgency}}
 
| {{insurgency}}
 +
| insurgency
 
| Insurgency = <nowiki>#c7d1e0</nowiki>
 
| Insurgency = <nowiki>#c7d1e0</nowiki>
 
| {{INFRA}}
 
| {{INFRA}}
 +
| INFRA
 
| INFRA = <nowiki>#99ccff</nowiki>
 
| INFRA = <nowiki>#99ccff</nowiki>
 
| {{con}}
 
| {{con}}
 +
| con
 
| Contagion = <nowiki>#417ee0</nowiki>
 
| Contagion = <nowiki>#417ee0</nowiki>
 
| {{csgo}}
 
| {{csgo}}
 +
| csgo
 
| Counter-Strike: Global Offensive = <nowiki>#5eedaf</nowiki>
 
| Counter-Strike: Global Offensive = <nowiki>#5eedaf</nowiki>
 
| {{mapbase}}
 
| {{mapbase}}
 +
| mapbase
 
| Mapbase = <nowiki>#a163c9</nowiki>
 
| Mapbase = <nowiki>#a163c9</nowiki>
 
| {{ez1}}
 
| {{ez1}}
 +
| ez1
 
| Entropy : Zero = <nowiki>#00fff7</nowiki>
 
| Entropy : Zero = <nowiki>#00fff7</nowiki>
 
| {{ez2}}
 
| {{ez2}}
 +
| ez2
 
| Entropy : Zero 2 = <nowiki>#ff5729</nowiki>
 
| Entropy : Zero 2 = <nowiki>#ff5729</nowiki>
 
| {{synergy}}
 
| {{synergy}}
 +
| synergy
 
| Synergy = <nowiki>#09e359</nowiki>
 
| Synergy = <nowiki>#09e359</nowiki>
 
| {{sfm}}
 
| {{sfm}}
 +
| sfm
 
| Source Filmmaker = <nowiki>#C8B17D</nowiki>
 
| Source Filmmaker = <nowiki>#C8B17D</nowiki>
 
| {{dota2}}
 
| {{dota2}}
 +
| dota2
 
| Dota 2 = <nowiki>#AB3928</nowiki>
 
| Dota 2 = <nowiki>#AB3928</nowiki>
 
| #default = <nowiki>#add8e6</nowiki>
 
| #default = <nowiki>#add8e6</nowiki>

Revision as of 09:43, 11 September 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