Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Color/Gradient

Template page

Adds an in-line dot of color when included on a page. Often this is intended for Infoboxes.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Color 11 color1

The color to make the top part of the gradient. RGB Hex is preferred, but other CSS color values are accepted.

Example
|color1=#4FC600
Auto value
magenta
Contentrequired
Color 22 color2

The color to make the bottom part of the gradient. RGB Hex is preferred, but other CSS color values are accepted.

Example
|color1=#BF992A
Auto value
yellow
Contentrequired
Dot Sizesize

The size to draw the dot. Will default to 2rem. Pixels are suggested, but any valid HTML size is accepted.

Example
|size=30px
Auto value
2rem
Contentoptional