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

Jump to content

Template:Changes/d/doc

From Wikipedia, the free encyclopedia

This template takes two numbers and formats the first number and the percent increase or decrease from the second number for use in two columns of a table in descending order. This template is invoked recursively by Template:Changes and Template:Change2.

Use

[edit]

This template has the following syntax:

{{Changes/a|number1|number2|number-dec|percent-dec|increase-color|decrease-color}}

where:

  • number1 is the target number. If the target number is not known, use NA or  .
  • number2 is the base number. If the base number is not known, use NA or  .
  • number-dec is an optional number of decimal places in the formatted target number. (default=0)
  • percent-dec is an optional number of decimal places in the formatted percent change. (default=2)
  • increase-color is an optional color for a percent increase. (default=green)
  • decrease-color is an optional color for a percent decrease. (default=red)

Example

[edit]

The following syntax:

{{Changes/d|1345|1237}}

produces the following Wiki markup:

|align=right|1,345||align=right|+8.73%

See also

[edit]