Template:Density/doc

From English Wikipedia @ Freddythechick

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

Usage

  • {{density|1000|10}} → 100
  • <syntaxhighlight lang="text" class="" style="" inline="1">{{density|p=1000|a=10}}</syntaxhighlight> → 100
  • {{density|1000|10|km2}} → 100 (259)
Code Population Area Density
disp=table|1000|10}}</syntaxhighlight> 1,000 10 100
Code Population Area Density
(km2) (sqmi) (/km2) (/sqmi)
disp=table|1000|10|km2}}</syntaxhighlight> 1,000 10 4 100 259

See also