Difference between revisions of "Template:Game color"

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

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