Difference between revisions of "Template:Game color"

From Valve Developer Community
Jump to: navigation, search
m (Added unique color for Dota 2)
(Added color for Half-Life: Alyx)
 
Line 22: Line 22:
 
| {{hl2episodes}}
 
| {{hl2episodes}}
 
| Half-Life 2 episodes = <nowiki>#f57214</nowiki>
 
| Half-Life 2 episodes = <nowiki>#f57214</nowiki>
 +
| {{hlalyx}}
 +
| Half-Life Alyx = <nowiki>#c25e36</nowiki>
 
| {{tf2}}
 
| {{tf2}}
 
| Team Fortress 2 = <nowiki>#CF7336</nowiki>
 
| Team Fortress 2 = <nowiki>#CF7336</nowiki>

Latest revision as of 10:24, 11 July 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

<span style="color:{{Game color | <game name>}};font-weight:bold;">(I am a specific game or engine branch)</span>. For example: <span style="color:{{Game color | Counter-Strike: Global Offensive}};font-weight:bold;">(Example text)</span>(Example text)

This template also works with game icons. For example: <span style="color:{{Game color | {{csgo}}}};font-weight:bold;">(Example text)</span>(Example text)

Game list

Game Result
Alien Swarm
Alien Swarm: Reactive Drop
Black Mesa (Source)
Black Mesa
Contagion
Counter-Strike: Global Offensive
Entropy : Zero
Entropy : Zero 2
Garry's Mod
Half-Life
Half-Life: Source
Half-Life 2
Half-Life 2: Episode One
Half-Life 2: Episode Two
Half-Life 2 episodes
Half-Life Alyx
INFRA
Insurgency
Left 4 Dead
Left 4 Dead 2
Left 4 Dead series
Mapbase
Portal
Portal 2
Portal 2: Community Edition
Portal 2010 ARG Update
Sin Episodes
Source 2006
Source 2007
Source 2009
Source 2013
Source 2013 MP
Source Filmmaker
Synergy
Team Fortress 2
Default for no game specified