« Modèle:Elementcolor » : différence entre les versions

De Wiki - La Calv
Aller à la navigation Aller à la recherche
(Page créée avec « <includeonly> {{#switch: {{{1|}}} | Banal = #aaaaaa | Aqua = #7492d6 | Pyro = #ff5f58 | Terra = #81e55a | Électro = #fff158 | Chaos = #d8a7ff | Céleste = #3fd6e2 | #default = Invalid Element Supplied. }} </includeonly> <noinclude>Given the name of an element, will return the color associated with it in hexadecimal format. == Usage == <code>{{Element Color|Banal}}</code> returns {{Element Color|Banal}}. <code>{{Element Color|Aq... »)
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<includeonly>
<includeonly>{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
     | Banal = #aaaaaa
     | Banal = #aaaaaa
     | Aqua = #7492d6
     | Aqua = #7492d6
Ligne 9 : Ligne 8 :
     | Céleste = #3fd6e2
     | Céleste = #3fd6e2
     | #default = Invalid Element Supplied.
     | #default = Invalid Element Supplied.
}}
}}</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.


== Usage ==
Usage:


<code>{{Element Color|Banal}}</code> returns {{Element Color|Banal}}.
<code><nowiki>{{elementcolor |Banal}}</nowiki></code> returns <span style="color:{{elementcolor |Banal}};">Banal</span>


<code>{{Element Color|Aqua}}</code> returns {{Element Color|Aqua}}.
<code><nowiki>{{elementcolor |Aqua}}</nowiki></code> returns <span style="color:{{elementcolor |Aqua}};">Aqua</span>


[[Category:Color templates]]
[[Category:Color templates]]
</noinclude>
</noinclude>

Version du 15 novembre 2023 à 19:44

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