வார்ப்புரு:Pop density mi2 to km2
&lt;noinclude&gt;
 ;Usage:
 ::&lt;nowiki&gt;{{Pop density mi2 to km2| num | abbr | spell | precision | wiki}}&lt;/nowiki&gt;
 :Shorthand version (PD used instead of pop density):
 ::&lt;nowiki&gt;{{PD mi2 to km2| num | abbr | spell | precision | wiki}}&lt;/nowiki&gt;
 
 ;Examples
 :''[[WP:MOSNUM#Units of measurement|Manual of Style]] notation'': &lt;nowiki&gt;{{Pop density mi2 to km2|10000}}&lt;/nowiki&gt;&amp;nbsp;&amp;rarr; {{Pop density mi2 to km2|10000}}
 :''Short notation'': &lt;nowiki&gt;{{Pop density mi2 to km2|10000|abbr=yes}}&lt;/nowiki&gt;&amp;nbsp;&amp;rarr; {{Pop density mi2 to km2|10000|abbr=yes}}
 :''Full notation'': &lt;nowiki&gt;{{Pop density mi2 to km2|num=10000|abbr=no|spell=Commonwealth|precision=2|wiki=yes}}&lt;/nowiki&gt;&amp;nbsp;&amp;rarr; {{Pop density mi2 to km2|num=10000|abbr=no|spell=Commonwealth|precision=2|wiki=yes}}
 
 ''Italicized'' parameters are optional:
 *'''num''' is a required parameter, which specifies the number people per square mile to be converted to people per square kilometer.  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 [[WP:MOSNUM#Units of measurement|Manual of Style for dates and numbers]] (inhabitants per square mile, /km²); ''yes'' will show the abbreviated names of the units (/sq&amp;nbsp;mi, /km²); 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 &quot;kilometer&quot;, and ''Commonwealth''/''UK''&amp;mdash;&quot;kilometre&quot;.  The default value is ''American''.
 *'''''precision''''' is the number of decimal digits in the converted value.  The default value is&amp;nbsp;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.
 &lt;/noinclude&gt;&lt;includeonly&gt;{{FORMATNUM:{{#if:{{{num|}}}|{{{num}}}|{{{1}}}}}}}{{#ifexpr:({{#ifeq:{{LC:{{{abbr|mos}}}}}|mos|1|0}} OR {{#ifeq:{{LC:{{{abbr|mos}}}}}|no|1|0}})|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|&amp;nbsp;inhabitants per [[square mile]]|&amp;nbsp;inhabitants per square mile}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|[[square mile|/sq&amp;nbsp;mi]]|/sq&amp;nbsp;mi}}}} ({{FORMATNUM:{{#expr:{{#if:{{{num|}}}|{{{num}}}|{{{1}}}}}div 2.589988110336 round {{{precision|1}}}}}}}{{#ifeq:{{LC:{{{abbr|mos}}}}}|no|{{#ifeq:{{LC:{{{spell|american}}}}}|commonwealth|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|&amp;nbsp;inhabitants per square kilometre|&amp;nbsp;inhabitants per [[square kilometre]]}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|&amp;nbsp;inhabitants per square kilometer|&amp;nbsp;inhabitants per [[square kilometre|square kilometer]]}}}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|/km²|[[square kilometre|/km²]]}}}})&lt;/includeonly&gt;&lt;noinclude&gt;
 ==See also==
 *{{tl|Pop density km2 to mi2}}
 
 [[Category:Conversion templates|{{PAGENAME}}]]