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

Jump to content

Template:Data/popdens/doc

From Wikipedia, the free encyclopedia

Template:Data/popdens calculates the estimated current population density for entities having Data templates based on parameters for a known base population plus daily increment value. The output is in persons per square kilometer or in persons per square mile.

Parameters

[edit]

The entity name (example: United States) is specified in the first parameter. A Data template with the specified name must exist. Area values specified in the Data template for the specified entity are used, along with the population figure supplied by Template:Poptoday.

The following optional parameters may be supplied:

2=comma- Put commas in the output (same as: 2=formatnum).
2=formatnum- Put commas the output (same as: 2=comma).
areaunit- Specifies the area unit to be used for output. May be specified as km2 or as sqmi. Defauts to km2.
area- Specifies area to be used. May be specified as total area or land area. Defaults to total area
round- Specifies rounding value in decimal places. Defaults to 2.

Examples:

  • {{data/popdens|Netherlands}} gives 450.23
  • {{data/popdens|Netherlands|areaunit=km2}} gives 450.23
  • {{data/popdens|Netherlands|areaunit=sqmi}} gives 1166.08
  • {{data/popdens|Netherlands|comma|areaunit=sqmi}} gives 1,166.08
  • {{data/popdens|Netherlands|comma|areaunit=sqmi|area=land area}} gives 1,166.08
  • {{data/popdens|Netherlands|comma|areaunit=sqmi|area=land area|round=0}} gives 1,166

See also

[edit]