Template makes a simple ratio calculation, that can be used for population densities (amongst other things).

Usage

edit
  • {{density|1000|10}} → 100
  • {{density|p=1000|a=10}} → 100
  • {{density|1000|10|km2}} → 100 (259)
Code Population Area Density
{{density|disp=table|1000|10}} 1,000 10 100
Code Population Area Density
(km2) (sqmi) (/km2) (/sqmi)
{{density|disp=table|1000|10|km2}} 1,000 10 4 100 259

See also

edit