This is a subtemplate of {{Kotak info kepulauan}}, and should not be used directly.

Input Output
{{Kotak info kepulauan/density|km2=85}} 85 jiwa/km2
{{Kotak info kepulauan/density|sqmi=220}} 220 jiwa/sq mi (80 jiwa/km2)
{{Kotak info kepulauan/density|m2=25}} 25 jiwa/m2
{{Kotak info kepulauan/density|sqft=2}} 2 jiwa/sq ft (22 jiwa/m2)
{{Kotak info kepulauan/density|km2=85|sqmi=220}} 85 jiwa/km2 (mohon hapus nilai dalam mil persegi [sqmi])
{{Kotak info kepulauan/density|m2=25|sqft=2}} 25 jiwa/m2 (mohon hapus nilai dalam kaki [sqft])
{{Kotak info kepulauan/density|km2=85|m2=25}} 85 jiwa/km2
{{Kotak info kepulauan/density|sqmi=220|sqft=2}} 220 jiwa/sq mi (80 jiwa/km2)
{{Kotak info kepulauan/density|m2=25|sqmi=220|sqft=2}} 220 jiwa/sq mi (80 jiwa/km2)
{{Kotak info kepulauan/density|km2=85|sqmi=220|sqft=2}} 85 jiwa/km2 (mohon hapus nilai dalam mil persegi [sqmi])
{{Kotak info kepulauan/density|km2=85|m2=25|sqft=2}} 85 jiwa/km2
{{Kotak info kepulauan/density|km2=85|m2=25|sqmi=220}} 85 jiwa/km2 (mohon hapus nilai dalam mil persegi [sqmi])
{{Kotak info kepulauan/density|km2=85|m2=25|sqmi=220|sqft=2}} 85 jiwa/km2 (mohon hapus nilai dalam mil persegi [sqmi])
  • {{convert|85|/km2|abbr=on}} → 85/km2 (220/sq mi)
  • {{convert|220|/sqmi|abbr=on}} → 220/sq mi (85/km2)

The code uses {{precision}} to determine the level of precision. The logic is to give preference to km2/sqmi over m2/sqft. If both km2 and sqmi are specified, then no conversion takes place. Similarly, if both m2 and sqft are specified (and km2/sqmi are not specified), then no conversion takes place.

See also

sunting