Difference between revisions of "Template:Game color"

From Valve Developer Community
Jump to: navigation, search
m (Accidentally deleted the <includeonly>. Brought it back)
(Basically, this breaks old pages, so I'm bringing back all the deleteds since we realistically do not have manpower to update all old pages.)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1}}}
 
<includeonly>{{#switch: {{{1}}}
| src06 = <nowiki>#ff8f00</nowiki>
+
| {{src06}} | src06
| src07 = <nowiki>#F26025</nowiki>
+
| Source 2006 = <nowiki>#ff8f00</nowiki>
| src09 = <nowiki>#558fa5</nowiki>
+
| {{src07}} | src07
| src13 = <nowiki>#9bf442</nowiki>
+
| Source 2007 = <nowiki>#F26025</nowiki>
| src13mp = <nowiki>#d3f442</nowiki>
+
| {{src09}} | src09
| hl1 = <nowiki>#de5009</nowiki>
+
| Source 2009 = <nowiki>#558fa5</nowiki>
| hls = <nowiki>#DC143C</nowiki>
+
| {{src13}} | src13
| hl2 = <nowiki>#ffcc14</nowiki>
+
| Source 2013 = <nowiki>#9bf442</nowiki>
| ep1 = <nowiki>#ff8f00</nowiki>
+
| {{src13mp}} | src13mp
| ep2 = <nowiki>#F26025</nowiki>
+
| Source 2013 MP = <nowiki>#d3f442</nowiki>
| HL:A = <nowiki>#c25e36</nowiki>
+
| {{hl1}} | hl1
| tf2 = <nowiki>#CF7336</nowiki>
+
| Half-Life = <nowiki>#de5009</nowiki>
| l4d = <nowiki>#317C29</nowiki>
+
| {{HLS}} | HLS
| l4d2 = <nowiki>#BFA828</nowiki>
+
| Half-Life: Source = <nowiki>#DC143C</nowiki>
| as = <nowiki>#3E6D7F</nowiki>
+
| {{hl2}} | hl2
| asrd = <nowiki>#4e967c</nowiki>
+
| Half-Life 2 = <nowiki>#ffcc14</nowiki>
| portal = <nowiki>#6bbcfa</nowiki>
+
| {{ep1}} | ep1
| portal2 = <nowiki>#23B1E5</nowiki>
+
| Half-Life 2: Episode One = <nowiki>#ff8f00</nowiki>
| P2CE = <nowiki>#FF7B02</nowiki>
+
| {{ep2}} | ep2
| sin = <nowiki>#64a596</nowiki>
+
| Half-Life 2: Episode Two = <nowiki>#F26025</nowiki>
| bms = <nowiki>#e47125</nowiki>
+
| {{hl2episodes}} | hl2episodes
| GMOD = <nowiki>#1295f0</nowiki>
+
| Half-Life 2 episodes = <nowiki>#f57214</nowiki>
| insurgency = <nowiki>#c7d1e0</nowiki>
+
| {{hlalyx}} | hlalyx
 +
| 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>rgb(100,165,150)</nowiki>
 +
| {{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}} | con
| csgo = <nowiki>#5eedaf</nowiki>
+
| Contagion = <nowiki>#417ee0</nowiki>
| mapbase = <nowiki>#a163c9</nowiki>
+
| {{csgo}} | csgo
| ez1 = <nowiki>#00fff7</nowiki>
+
| Counter-Strike: Global Offensive = <nowiki>#5eedaf</nowiki>
| ez2 = <nowiki>#ff5729</nowiki>
+
| {{mapbase}} | mapbase
| synergy = <nowiki>#09e359</nowiki>
+
| Mapbase = <nowiki>#a163c9</nowiki>
| sfm = <nowiki>#C8B17D</nowiki>
+
| {{ez1}} | ez1
| dota2 = <nowiki>#AB3928</nowiki>
+
| 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>

Revision as of 09:24, 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