Template:Game color/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Documentation subpage for Template:Game color)
 
(Updated documentation to reflect changes)
Line 7: Line 7:
<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 | 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>
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.
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 ===
=== Game list ===
{| class="wikitable"
{| class="wikitable"
Line 55: Line 59:
|-
|-
| Team Fortress 2 || style="background:{{Game color|Team Fortress 2}};" |
| Team Fortress 2 || style="background:{{Game color|Team Fortress 2}};" |
|-
| Default for no game specified || style="background:{{Game color|}};" |
|-
|-
|}
|}

Revision as of 18:30, 23 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 2
Portal 2010 ARG Update
Sin Episodes
Source 2006
Source 2007
Source 2009
Source 2013
Team Fortress 2
Default for no game specified