« 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 = | | Banal = {{b-color}} | ||
| Aqua = | | Aqua = {{a-color}} | ||
| Pyro = | | Pyro = {{p-color}} | ||
| Terra = | | Terra = {{t-color}} | ||
| Électro = | | Électro = {{e-color}} | ||
| Chaos = | | Chaos = {{ch-color}} | ||
| Céleste = | | Céleste = {{ce-color}} | ||
| #default = <nowiki>#FA5</nowiki> | | #default = <nowiki>#FA5</nowiki> | ||
}}</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 17 novembre 2023 à 23:01
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
{{elementcolor |Céleste}}
returns Céleste