Template:Game color/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated documentation to reflect changes)
(Added proper Portal 1 color from Template:Portal only)
Line 43: Line 43:
|-
|-
| Mapbase || style="background:{{Game color|Mapbase}};" |
| Mapbase || style="background:{{Game color|Mapbase}};" |
|-
| Portal || style="background:{{Game color|Portal}};" |
|-
|-
| Portal 2 || style="background:{{Game color|Portal 2}};" |
| Portal 2 || style="background:{{Game color|Portal 2}};" |

Revision as of 11:40, 25 April 2020

Edit-copy.png
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.

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> → <span style="color:{{ Counter-Strike: Global Offensive|col}};font-weight:bold;">(Example text)

Game list

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