Template:Game color/doc: Difference between revisions
Jump to navigation
Jump to search
Tip:Every game icon template (such as {{hl2}}, see Category: Game icons) can also return its game color using
Gaijinviking (talk | contribs) m (Added a Unique Color to HLDMS) |
Gaijinviking (talk | contribs) m (Added a Unique Color to Ricochet) |
||
Line 104: | Line 104: | ||
|- | |- | ||
| Portal 2010 ARG Update || portal || style="background:{{Game color|portal}};" | || {{Game color|portal}} | | Portal 2010 ARG Update || portal || style="background:{{Game color|portal}};" | || {{Game color|portal}} | ||
|- | |||
| Ricochet || ricochet || style="background:{{Game color|ricochet }};" | || {{Game color|ricochet }} | |||
|- | |- | ||
| Sin Episodes || sin || style="background:{{Game color|sin}};" | || {{Game color|sin}} | | Sin Episodes || sin || style="background:{{Game color|sin}};" | || {{Game color|sin}} |
Revision as of 03:10, 15 May 2022

This is a documentation subpage for Template:Game color.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage
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.

{{hl2|col}}
→ #E6AC39. That approach is much cleaner because {{game color}} uses a huge switch statement that also uses templates as keys (such as "{{hl2}}
"); This means that every page using {{game color}} creates an entry in the "What links here" list for all game icon templates listed below.Examples
{{Game color|csgo}}
|
→ | #E9B963 | |
<span style="color:{{Game color|csgo}}">Example text</span>
|
→ | Example text | |
|
→ |
|
Game list
Game | Abbreviation | Result | Color Code |
---|---|---|---|
Alien Swarm | as | #108FBE | |
Alien Swarm: Reactive Drop | asrd | #EE6F3C | |
Black Mesa (Source) | bms | #E57126 | |
Black Mesa | bms | #E57126 | |
Contagion | con | #BF2F20 | |
Counter-Strike | cs | #DEDEDE | |
Counter-Strike: Condition Zero | cscz | #FFFA71 | |
Condition Zero Deleted Scenes | czds | #0F6CB1 | |
Counter-Strike: Source | css | #90C0FF | |
Counter-Strike: Global Offensive | csgo | #E9B963 | |
Deathmatch Classic | dmc | #998E6B | |
Entropy : Zero | ez1 | #00FFF7 | |
Entropy : Zero 2 | ez2 | #FF5729 | |
Garry's Mod | gmod | #1295F0 | |
Half-Life | hl | #ff5500 | |
Half-Life: Blue Shift | hlbs | #59a8ff | |
Half-Life: Opposing Force | hlop4 | #00cc00 | |
Half-Life: Source | hls | #DC143C | |
Half-Life Deathmatch: Source | hldms | #B58341 | |
Half-Life 2 | hl2 | #E6AC39 | |
Half-Life 2 (Xbox) | hl2xbox | #D4FF00 | |
Half-Life 2: Deathmatch | hl2dm | #ffdd61 | |
Half-Life 2: Episode One | ep1 | #FF8F00 | |
Half-Life 2: Episode Two | ep2 | #F26025 | |
Half-Life 2: Lost Coast | hl2lc | #B7B879 | |
Half-Life: Alyx | hla | #C25E36 | |
INFRA | INFRA | #99CCFF | |
Insurgency | insurgency | #C7D1E0 | |
Left 4 Dead | l4d | #439e3c | |
Left 4 Dead 2 | l4d2 | #BFA828 | |
Mapbase | mapbase | #A163C9 | |
Portal | portal | #6BBCFA | |
Portal 2 | portal2 | #23B1E5 | |
Portal 2: Community Edition | p2ce | #FF7B02 | |
Jabroni Brawl: Episode 3 | jbep3 | #FB4C39 | |
Portal 2010 ARG Update | portal | #6BBCFA | |
Ricochet | ricochet | #A733FF | |
Sin Episodes | sin | #ff3349 | |
Source 2004 | src04 | #ffcc14 | |
Source 2006 | src06 | #FF8F00 | |
Source 2007 | src07 | #F26025 | |
Source MP | srcmp | #B18DB4 | |
Source 2009 | src09 | #558FA5 | |
Source 2013 | src13 | #8CC850 | |
Source 2013 MP | src13mp | #A7B956 | |
Source Filmmaker | sfm | #C8B17D | |
Synergy | synergy | #8edb5b | |
Team Fortress 2 | tf2 | #CF7336 | |
Default | none of the above | #add8e6 |
See Also