Template:ColorLabel

From Cosmoteer Wiki
Jump to navigation Jump to search

{{{1}}}

Examples

Hex color (gold): #FFD700

Predefined color (red): red

Predefined CSS variable color (green): var(--color-cosmoGreen)

RGB color (orange) with a custom name: Sunset #FFD700

Included #FFD700 within text.

Forced to wrap var(--color-cosmoGreen) mid itself - doesn't break.


Inline in a table cell, inside other text.

CalloutIconWarning.png
Warning
To prevent the color label from breaking structure, you must add a linebreak where the table cell starts.
It should be a regular linebreak: no <br> (HTML tag) or {{Br}} (template).

In a table cell yes it's red being inline


Inline in a table cell, on its own.

CalloutIconWarning.png
Warning
To prevent the color label from breaking structure, you must add a linebreak where the table cell starts.
It should be a regular linebreak: no <br> (HTML tag) or {{Br}} (template).

green


Creates a little square of given color and the given color string right after.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Color1

A valid CSS color string: #123456, rgb(10, 20, 30), red, var(--red) (must be an existing CSS variable), etc.

Example
red
Stringrequired
Label2

Give your color a custom label.

Example
Bluish-gargantuan
Stringoptional