« Modèle:Ch-color » : 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 : | ||
{{#switch: {{lc: {{{1}}} }} | {{#switch: {{lc: {{{1}}} }} | ||
| border | | border | ||
Ligne 8 : | Ligne 7 : | ||
| light | | light | ||
| #default = <nowiki>#d8a7ff</nowiki> | | #default = <nowiki>#d8a7ff</nowiki> | ||
}} | }}<noinclude> | ||
{{ | {{x-color/manual}} | ||
[[Category:Style templates|Color Ch]]</noinclude> | [[Category:Style templates|Color Ch]]</noinclude> |
Dernière version du 17 novembre 2023 à 23:09
#d8a7ff
Usage
{{Ch-color|xxx}}
Where xxx
is one of the following values:
- lighter
- light
- dark
An alternate set of values that could be used are:
- tint (same as lighter)
- background (same as light)
- border (same as dark)
If xxx is not specified, the default value is light, although leaving it as the default is discouraged.
Aside from special circumstances, always attempt to use the more appropriate set of color values - either lighter-light-dark or tint-background-border. Avoid mixing them up.