Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Pop density

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 10,000 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.
This template usesLua:

Usage

This template converts a population and area to a density.

{{Pop density|number of people|numerical value of area|unit of area|area unit to convert to}}

Examples

  • {{Pop density|120|240|km2|sqmi}} → "0.500/km2 (1.29/sq mi)"
  • {{Pop density|1600|600|sqmi|km2}} → "2.67/sq mi (1.03/km2)"
rounding
  • {{Pop density|120|240|km2|sqmi|prec=1}} → "0.5/km2 (1.3/sq mi)"
no conversion
reverse outputs
  • {{Pop density|1600|600|sqmi|km2|flip=on}} → "1.03/km2 (2.67/sq mi)"
give only raw numerical output
table
{|class="wikitable"! Population!! Area (km<sup>2</sup>)!! Density (/km<sup>2</sup>)|-|{{pop density|120|2400|km2|disp=table}}|}
PopulationArea (km2)Density (/km2)
12024000.0500
{|class="wikitable"! Population!! Area (km<sup>2</sup>)!! Density (/km<sup>2</sup>)!! Density (/sqmi)|-|{{pop density|120|2400|km2|sqmi|disp=table}}|}
PopulationArea (km2)Density (/km2)Density (/sqmi)
12024000.05000.129

TemplateData

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Pop density in articles based on its TemplateData.

TemplateData for Pop density

This template converts a population and area to a density.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Number of people1

no description

Example
1600000
Numberrequired
Area2

Numerical value of area

Example
240
Numberrequired
Unit of area3

no description

Suggested values
sqkmkm2mi2sqmiacresacrehadunamsqmm2
Stringrequired
Convert to units4

Area unit to convert to

Stringoptional
Precisionprec

Round to this number of decimals

Example
2
Numberoptional
Displaydisp

Give only raw numerical output. Use "num" for usage in normal text; use "table" within tables.

Suggested values
numtable
Stringoptional
Reverse outputsflip

no description

Suggested values
on
Stringoptional

See also


Math templates
  • Functions
  • Numeral systems
Functions
Numeral systems
Conversions
convert many units (see:list)
cvt abbreviated{{convert}}
convinfobox{{convert}} for infoboxes
bbl to t barrels of oil to tonnes
long ton long hundredweights, quarters and pounds to kilograms;
long tons and hundredweights to pounds and metric tons
miles-chains miles and chains to kilometres linking "chains"
decdeg degrees, minutes, and seconds todecimal degrees
deg2dms decimal degrees to degrees, minutes, and seconds
deg2hms decimal degrees tohour angle (in hours, minutes, and seconds)
hms2deghour angle (in hours, minutes, and seconds) to decimal degrees
inflation calculate inflation of Consumer Price Index-related prices
pop density population density in an area
track gauge railway track gauges
Notation andformatting
bigmath bigger font to matchTeX\displaystyle (standalone formulas only)math short text-based formulas
mathcal [mathematical] calligraphic font; alternative toLaTeX\mathcal{...}tombstone symbol indicating theend of a proof
mvar individual italicized maths variables in normal textval measurement values, uncertainties and units
a line set above/below a sequence of charactersvec various overarrows, underarrows, etc.
abs absolute values (paired vertical lines)
  • langle
  • rangle
  • angbr
  • angular brackets
  • bra-ket
  • braket
  • bra
  • ket
  • bra–ket notation
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive)
    ceil,floor calculations:mw:Help:#expr; formatting indicators3.14,3.14 (no calculation performed)pars parentheses that can be resized()
    fraction slant fractions35 (not for maths/science articles; usestanding or upright fractions{{sfrac}} instead)sfrac "standing" or upright fractions3/5 (use in maths/science articles instead of{{fraction}})
    intmathintegral symbols
  • sub
  • sup
  • su
  • subscripts and superscripts
  • overset
  • underset
  • arbitrary characters/diacritics set above/below one another    
    tmath WrapTeX in<math> tags
  • Boxes
  • Tags
  • Notices
  • The abovedocumentation istranscluded fromTemplate:Pop density/doc.(edit |history)
    Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
    Add categories to the/doc subpage.Subpages of this template.
    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Pop_density&oldid=827251127"
    Hidden categories:

    [8]ページ先頭

    ©2009-2026 Movatter.jp