« Modèle:Elementcolor » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<includeonly>{{#switch: {{{1|}}} | <includeonly>{{#switch: {{{1|}}} | ||
| Banal = #aaaaaa | | Banal = <nowiki>#</nowiki>aaaaaa | ||
| Aqua = #7492d6 | | Aqua = <nowiki>#</nowiki>7492d6 | ||
| Pyro = #ff5f58 | | Pyro = <nowiki>#</nowiki>ff5f58 | ||
| Terra = #81e55a | | Terra = <nowiki>#</nowiki>81e55a | ||
| Électro = #fff158 | | Électro = <nowiki>#</nowiki>fff158 | ||
| Chaos = #d8a7ff | | Chaos = <nowiki>#</nowiki>d8a7ff | ||
| Céleste = #3fd6e2 | | Céleste = <nowiki>#</nowiki>3fd6e2 | ||
| #default = #FA5 | | #default = <nowiki>#</nowiki>FA5 | ||
}}</includeonly><noinclude>Given the name of an element, will return the color associated with it in hexadecimal format. | }}</includeonly><noinclude>Given the name of an element, will return the color associated with it in hexadecimal format. | ||
Version du 15 novembre 2023 à 19:51
Given the name of an element, will return the color associated with it in hexadecimal format.
Usage:
{{elementcolor |Banal}}
returns Banal
{{elementcolor |Aqua}}
returns Aqua