Template:Game color
This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
{{software}} has a col parameter which does the exact same thing
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
{{software}} has a col parameter which does the exact same thing
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.
Tip:Every game icon template (such as {{hl2}}, see Category: Game icons) can also return its game color using
{{hl2|col}}
→ #FFCC14. 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 used.Examples
{{Game color|csgo}}
|
→ | #E9B963 | |
<span style="color:{{Game color|csgo}}">Example text</span>
|
→ | Example text | |
|
→ |
|
See also
The above documentation is transcluded from Template:Game color/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.