No edit summary |
Added ZhMGP link |
||
Line 51: | Line 51: | ||
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 <code>{{ce|&}}{{ce|#}}35{{ce|;}}</code>, or use <code>{{tl|ce|#}}</code> to insert the former, so as not to be recognized as Wikitext and cause formatting to break. | 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 <code>{{ce|&}}{{ce|#}}35{{ce|;}}</code>, or use <code>{{tl|ce|#}}</code> to insert the former, so as not to be recognized as Wikitext and cause formatting to break. | ||
[[Category:Genshin Impact templates]] | [[Category:Genshin Impact templates]] | ||
[[zh:模板:Genshincolor]] | |||
</noinclude> | </noinclude> |
{{genshincolor|element (required)|text (optional)|default=default color (custom optional)}}
1. Use only the first item (required):
{{genshincolor|Pyro}}
The output is: #EC4923, 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: Morax, the text corresponding to the element color.
3. Use the default item
{{genshincolor|{{{Vision|}}}|default=#FF0000}}
The output is: #FF0000. 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.