قالب:Pop density km2 to sq mi

Template documentation[view] [edit] [history] [purge]

Usage

{{Pop density km2 to mi2| num | abbr | spell | precision | wiki}}
Shorthand version (PD used instead of pop density):
{{PD km2 to mi2| num | abbr | spell | precision | wiki}}

Examples

Manual of Style notation: {{Pop density km2 to mi2|10000}} → 10٬000 inhabitants per square kilometer (25٬899٫9/sq mi)
Short notation: {{Pop density km2 to mi2|10000|abbr=yes}} → 10٬000/km² (25٬899٫9/sq mi)
Full notation: {{Pop density km2 to mi2|num=10000|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 10٬000 inhabitants per square kilometre (25٬899٫88 per square mile)

Italicized parameters are optional:

  • num is a required parameter, which specifies the number people per square kilometer to be converted to people per square mile. Please do not format this parameter; i.e., use 1234 instead of 1,234.
  • abbr can take values of either mos, yes, or no. Mos will show the names of the units as specified in the Manual of Style for dates and numbers (inhabitants per square kilometer, /sq mi); yes will show the abbreviated names of the units (/km2, /sq mi); and no will show the full names of the units (inhabitants per square kilometer, inhabitants per square mile). The default value is mos.
  • spell can take values of American or Commonwealth or UK and is only meaningful when abbr is set to no. American will use "kilometer", and Commonwealth/UK—"kilometre". The default value is American.
  • precision is the number of decimal digits in the converted value. The default value is 1.
  • wiki specifies whether the names of the units should be wikified or not and can take values of either yes or no. The default value is no.

Capitalization of the parameters is unimportant.

See also