Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a22c343c1c928821

Jump to content

Template:Color icon/doc

From Wikipedia, the free encyclopedia

This template generates a shape filled with a specified color, together with a label of the color's name. (The label is included for accessibility reasons.) The template supports HTML color names and hexadecimal color codes.

Examples

[edit]
Template codeOutput
{{color icon|red}}Red
{{color icon|red|border=none}}Red
{{color icon|dark red}}Dark red
{{color icon|purple|violet}}Violet
{{color icon|#800080|violet}}Violet
{{color icon|#999|[[grey]]}}Grey
{{color icon|white|shape=square}}White
{{color icon|white|border=black}}White

Parameters

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Color icon in articles based on its TemplateData.

TemplateData for Color icon

Generate a colored shape labeled with the color's name

Template parameters

ParameterDescriptionTypeStatus
Color1

The HTML color name or hexadecimal color code (the latter of which must start with #)

Stringrequired
Color Label2

The name of the color, if this is different than the "color" parameter

Stringoptional
Borderborder

The color of the border, or "none" if there should be no border; defaults to #666 (gray)

Stringoptional
Shapeshape

Either "square" or "circle"; defaults to "circle"

Stringoptional