Template:Game color
Ugrás a navigációhoz
Ugrás a kereséshez
Available doc translations
Tip:Every game icon template (such as {{hl2}}, see Category: Game icons) can return its game color using

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:
Use {{software}} instead:

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:
Use {{software}} instead:
{{hl2|col}}
→ #E6AC39.
…
The Template:Game color/doc/hu documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Usage
Game color is a template for accessing unique, predefined colors for games and engine branches documented on the Valve Developer Community, based on feature addition templates. This template returns a hexadecimal color value directly and is intended to be used inside of wiki formatting.

{{hl2|col}}
→ #E6AC39. This approach is what this template uses. Use that directly wherever possible.Parameters
- {{{1}}} – The full name or abbreviation of a game. If
Template:name
exists,{{game color|name}}
returns{{name|col}}
, otherwise {{{default|#add8e6}}}. Other legal values are: todo, in, only, also, since, removed, not. - {{{default|#add8e6}}} – The fallback return value if {{{1}}} is invalid.
Examples
{{Game color}}
|
→ | #add8e6 | → | Example text |
{{Game color|hl2}}
|
→ | #E6AC39 | → | Example text |
{{Game color|hl2|default=#00ff88}}
|
→ | #E6AC39 | → | Example text |
{{Game color|qwerty|default=#00ff88}}
|
→ | #00ff88 | → | Example text |
{{Game color|qwerty}}
|
→ | #add8e6 | → | Example text |
{{Game color|todo}}
|
→ | #8BC53F | → | Example text |
{{Game color|removed}}
|
→ | #B24732 | → | Example text |