Template:Color

Revision as of 21:45, 19 May 2025 by Patbox (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


 #000

Documentation[view] [edit] [history] [refresh]

Used to display colors. Can be in any format supported by CSS (hexadecimal, rgb(a), hsl(a), keyword).

Examples

{{color|#123456}}:
 #123456

{{color|rgb(241, 042, 176)}}:
 rgb(241, 042, 176)

{{color|hsl(45, 100%, 50%)}}:
 hsl(45, 100%, 50%)

{{color|peachpuff}}:
 peachpuff

{{color|cyan|custom text}}:
 custom text

TemplateData

Used to display colors.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Color value1

Technical information describing the color.

Suggested values
rgb(255, 0, 0) #ff0000 #f00 rgba(255, 0, 0, 255) red hsl(0, 100%, 50%)
Unknownrequired
Text2

Custom text to show instead of the color value.

Example
Fire Engine Red
Contentoptional

de:Vorlage:Farben es:Plantilla:Color fr:Modèle:Affichage couleur it:Template:Colore ja:テンプレート:Color ko:틀:Color lzh:模板:Color pt:Predefinição:Cor ru:Шаблон:Отображение цвета th:แม่แบบ:Color uk:Шаблон:Колір zh:Template:Color

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Color/doc.