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: a22696dc5bfdf25b

Jump to content

Template:Color swatch/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Creates a color swatch for use in articles.

Template parameters

ParameterDescriptionTypeStatus
Color1

Color, as a CSS-compatible color.

Example
Red can be specified as "#FF0000" (without quotes).
Stringrequired
Title2

The main caption. Appears once, beneath the swatch. Adding a reference is recommended.

Example
Blue<ref>[ ... ]</ref>
Linerequired
Float3

Specifies the direction to float, if any: "left", "right" or "center". (Note that centering is not technically floating.)

Default
Left
Stringoptional
Internal caption4

Optional; appears in the swatch and below the title.

Lineoptional
Text color5

The color of the text that is overlayed onto the swatch.

Default
Black text.
Example
If the color displayed is black, set this to e.g. "#FFFFFF", white.
Stringoptional

Samples

[edit]

{{color swatch|#0000FF|Blue}} creates:

Blue
#0000FF

We strongly recommend adding a <ref></ref> to the main title, e.g.:

{{color swatch|#0000FF|Blue<ref>[http://www.w3.org/TR/REC-html40/types.html#h-6.5 HTML 4.01 Specification]</ref>}} creates:

Blue[1]
#0000FF

Optional parameters – floating right, and an internal caption:

{{color swatch|#0000FF|Blue|right|#0000FF}} creates:

#0000FF

Blue
#0000FF

Change the internal caption's color with a fifth value:

{{color swatch|#0000FF|Blue|right|#0000FF|white}} creates:

#0000FF

Blue
#0000FF

Note

[edit]