- This template is used to express the colors of the seven elements in Genshin Impact.
- {{#vardefine:colortable|#EC4923}}{{#vardefine:colortable|#EC4923}}{{#var:colortable}} (Pyro)
- {{#vardefine:colortable|#00BFFF}}{{#vardefine:colortable|#00BFFF}}{{#var:colortable}} (Hydro)
- {{#vardefine:colortable|#359697}}{{#vardefine:colortable|#359697}}{{#var:colortable}} (Anemo)
- {{#vardefine:colortable|#945dc4}}{{#vardefine:colortable|#945dc4}}{{#var:colortable}} (Electro)
- {{#vardefine:colortable|#608a00}}{{#vardefine:colortable|#608a00}}{{#var:colortable}} (Dendro) (currently judged by grass creatures in the game)
- {{#vardefine:colortable|#4682B4}}{{#vardefine:colortable|#4682B4}}{{#var:colortable}} (Cryo)
- {{#vardefine:colortable|#debd6c}}{{#vardefine:colortable|#debd6c}}{{#var:colortable}} (Geo)
- {{#vardefine:colortable|#939393}}{{#vardefine:colortable|#939393}}{{#var:colortable}} (None) (the panel color of the protagonist without attributes in the game)
- {{#vardefine:colortable|#c8a079}}{{#vardefine:colortable|#c8a079}}{{#var:colortable}} (Brown text)
- Genshin Impact colors
- {{#vardefine:colortable|#85949c}}{{#vardefine:colortable|#85949c}}{{#var:colortable}} (1-Star)
- {{#vardefine:colortable|#649c74}}{{#vardefine:colortable|#649c74}}{{#var:colortable}} (2-Star)
- {{#vardefine:colortable|#54a4b4}}{{#vardefine:colortable|#54a4b4}}{{#var:colortable}} (3-Star)
- {{#vardefine:colortable|#9174a9}}{{#vardefine:colortable|#9174a9}}{{#var:colortable}} (4-Star)
- {{#vardefine:colortable|#dca454}}{{#vardefine:colortable|#dca454}}{{#var:colortable}} (5-Star)
- Template details
{{genshincolor|element (required)|text (optional)|default=default color (custom optional)}}
- How to use
1. Use only the first item (required):
{{genshincolor|Pyro}}
The output is: {{#vardefine:colortable|#EC4923}}{{#var:colortable}}, which simply outputs the color corresponding code, which is generally used for complex formats, not just for text.
2. Use the first and second items at the same time
{{genshincolor|Geo|Morax}}
The output is: {{#vardefine:colortable|#debd6c}}Morax, the text corresponding to the element color.
3. Use the default item
{{genshincolor|{{{Vision|}}}|default=#FF0000}}
The output is: {{#vardefine:colortable|#00BFFF}}{{#var:colortable}}. It is usually embedded in a general-purpose template. For example, if you do not fill in the "vision" parameter, it will output a non-personalized general color.
Note that in general, when it is used for templates, it is not a simple black parameter, but a hexadecimal code with a hash mark such as #FF0000. Please add #, or use {{ce|#}} to insert the former, so as not to be recognized as Wikitext and cause formatting to break.