Template:Game color/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added color for Half-Life: Alyx)
m (updated the documentation to work correctly with the new version of the template)
Line 4: Line 4:


==Usage==
==Usage==
<code><nowiki><span style="color:{{Game color|</nowiki>''<game name>''<nowiki>}};font-weight:bold;">(I am a specific game or engine branch)</span></nowiki></code>.


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


This template also works with game icons.
===Game list===
For example: <code><nowiki><span style="color:{{Game color | {{csgo}}}};font-weight:bold;">(Example text)</span></nowiki></code> → <span style="color:{{Game color | {{csgo}}}};font-weight:bold;">(Example text)</span>
 
=== Game list ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Game !! Result
! Game !! Result
|-
|-
| Alien Swarm || style="background:{{Game color|Alien Swarm}};" |
| Alien Swarm || style="background:{{Game color|as}};" |
|-
|-
| Alien Swarm: Reactive Drop || style="background:{{Game color|Alien Swarm: Reactive Drop}};" |
| Alien Swarm: Reactive Drop || style="background:{{Game color|asrd}};" |
|-
|-
| Black Mesa (Source) || style="background:{{Game color|Black Mesa (Source)}};" |
| Black Mesa (Source) || style="background:{{Game color|bms}};" |
|-
|-
| Black Mesa || style="background:{{Game color|Black Mesa}};" |
| Black Mesa || style="background:{{Game color|bms}};" |
|-
|-
| Contagion || style="background:{{Game color|Contagion}};" |
| Contagion || style="background:{{Game color|con}};" |
|-
|-
| Counter-Strike: Global Offensive || style="background:{{Game color|Counter-Strike: Global Offensive}};" |
| Counter-Strike: Global Offensive || style="background:{{Game color|csgo}};" |
|-
|-
| Entropy : Zero || style="background:{{Game color|Entropy : Zero}};" |
| Entropy : Zero || style="background:{{Game color|ez1}};" |
|-
|-
| Entropy : Zero 2 || style="background:{{Game color|Entropy : Zero 2}};" |
| Entropy : Zero 2 || style="background:{{Game color|ez2}};" |
|-
|-
| Garry's Mod || style="background:{{Game color|Garry's Mod}};" |
| Garry's Mod || style="background:{{Game color|GMOD}};" |
|-
|-
| Half-Life || style="background:{{Game color|Half-Life}};" |
| Half-Life || style="background:{{Game color|hl1}};" |
|-
|-
| Half-Life: Source || style="background:{{Game color|Half-Life: Source}};" |
| Half-Life: Source || style="background:{{Game color|hls}};" |
|-
|-
| Half-Life 2 || style="background:{{Game color|Half-Life 2}};" |
| Half-Life 2 || style="background:{{Game color|hl2}};" |
|-
|-
| Half-Life 2: Episode One || style="background:{{Game color|Half-Life 2: Episode One}};" |
| Half-Life 2: Episode One || style="background:{{Game color|ep1}};" |
|-
|-
| Half-Life 2: Episode Two || style="background:{{Game color|Half-Life 2: Episode Two}};" |
| Half-Life 2: Episode Two || style="background:{{Game color|ep2}};" |
|-
|-
| Half-Life 2 episodes || style="background:{{Game color|Half-Life 2 episodes}};" |
| Half-Life Alyx || style="background:{{Game color|HL:A}};" |
|-
| Half-Life Alyx || style="background:{{Game color|Half-Life Alyx}};" |
|-
|-
| INFRA || style="background:{{Game color|INFRA}};" |
| INFRA || style="background:{{Game color|INFRA}};" |
|-
|-
| Insurgency || style="background:{{Game color|Insurgency}};" |
| Insurgency || style="background:{{Game color|insurgency}};" |
|-
| Left 4 Dead || style="background:{{Game color|Left 4 Dead}};" |
|-
|-
| Left 4 Dead 2 || style="background:{{Game color|Left 4 Dead 2}};" |
| Left 4 Dead || style="background:{{Game color|l4d}};" |
|-
|-
| Left 4 Dead series || style="background:{{Game color|Left 4 Dead series}};" |
| Left 4 Dead 2 || style="background:{{Game color|l4d2}};" |
|-
|-
| Mapbase || style="background:{{Game color|Mapbase}};" |
| Mapbase || style="background:{{Game color|mapbase}};" |
|-
|-
| Portal || style="background:{{Game color|Portal}};" |
| Portal || style="background:{{Game color|portal}};" |
|-
|-
| Portal 2 || style="background:{{Game color|Portal 2}};" |
| Portal 2 || style="background:{{Game color|portal 2}};" |
|-
|-
| Portal 2: Community Edition || style="background:{{Game color|Portal 2: Community Edition}};" |
| Portal 2: Community Edition || style="background:{{Game color|P2CE}};" |
|-
|-
| Portal 2010 ARG Update || style="background:{{Game color|Portal 2010 ARG Update}};" |
| Portal 2010 ARG Update || style="background:{{Game color|portal}};" |
|-
|-
| Sin Episodes || style="background:{{Game color|Sin Episodes}};" |
| Sin Episodes || style="background:{{Game color|sin}};" |
|-
|-
| Source 2006 || style="background:{{Game color|Source 2006}};" |
| Source 2006 || style="background:{{Game color|src06}};" |
|-
|-
| Source 2007 || style="background:{{Game color|Source 2007}};" |
| Source 2007 || style="background:{{Game color|src07}};" |
|-
|-
| Source 2009 || style="background:{{Game color|Source 2009}};" |
| Source 2009 || style="background:{{Game color|src09}};" |
|-
|-
| Source 2013 || style="background:{{Game color|Source 2013}};" |
| Source 2013 || style="background:{{Game color|src13}};" |
|-
|-
| Source 2013 MP || style="background:{{Game color|Source 2013 MP}};" |
| Source 2013 MP || style="background:{{Game color|src13mp}};" |
|-
|-
| Source Filmmaker || style="background:{{Game color|Source Filmmaker}};" |
| Source Filmmaker || style="background:{{Game color|sfm}};" |
|-
|-
| Synergy || style="background:{{Game color|Synergy}};" |
| Synergy || style="background:{{Game color|synergy}};" |
|-
|-
| Team Fortress 2 || style="background:{{Game color|Team Fortress 2}};" |
| Team Fortress 2 || style="background:{{Game color|tf2}};" |
|-
|-
| Default for no game specified || style="background:{{Game color|}};" |
| Default for no game specified || style="background:{{Game color|}};" |

Revision as of 08:36, 11 September 2021

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|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 Alyx
INFRA
Insurgency
Left 4 Dead
Left 4 Dead 2
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