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

Jump to content

Template:Hex2/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Converts an 8-bit number to hexadecimal using two digits, useful for formating RGB color components. This template can be substituted.

Input
  • one parameter, numeric in the range 0..255 (larger numbers will wrap around)
Output
  • a two-digit hex number

Examples

[edit]
  • {{Hex2|0}} gives 00
  • {{subst:Hex2|0}} gives 00
  • {{Hex2|123}} gives 7B
  • {{subst:Hex2|123}}gives 7B
  • {{Hex2|255}} gives FF
  • {{subst:Hex2|255}} gives FF

See also

[edit]
  • {{Hex3}} for formating 3 RGB components at once.