This is a subtemplate of {{Infobox islands}}, and should not be used directly.

Input Output
{{Infobox islands/area|km2=0.5}} ୦.୫ km (୦.୧୯ sq mi)
{{Infobox islands/area|sqmi=0.2}} ୦.୨ sq mi (୦.୫ km)
{{Infobox islands/area|m2=500}} ୫୦୦ m (୫,୪୦୦ sq ft)
{{Infobox islands/area|sqft=5410}} ୫,୪୧୦ sq ft (୫୦୩ m)
{{Infobox islands/area|km2=0.5|sqmi=0.2}} ୦.୫ km (୦.୨ sq mi)
{{Infobox islands/area|m2=500|sqft=5410}} ୫୦୦ m (୫,୪୧୦ sq ft)
{{Infobox islands/area|km2=0.5|m2=500}} ୦.୫ km (୦.୧୯ sq mi)
{{Infobox islands/area|sqmi=0.2|sqft=5410}} ୦.୨ sq mi (୦.୫ km)
{{Infobox islands/area|m2=500|sqmi=0.2|sqft=5410}} ୦.୨ sq mi (୦.୫ km)
{{Infobox islands/area|km2=0.5|sqmi=0.2|sqft=5410}} ୦.୫ km (୦.୨ sq mi)
{{Infobox islands/area|km2=0.5|m2=500|sqft=5410}} ୦.୫ km (୦.୧୯ sq mi)
{{Infobox islands/area|km2=0.5|m2=500|sqmi=0.2}} ୦.୫ km (୦.୨ sq mi)
{{Infobox islands/area|km2=0.5|m2=500|sqmi=0.2|sqft=5410}} ୦.୫ km (୦.୨ sq mi)


  • {{convert|0.5|km2|abbr=on}} → 0.5 km2 (0.19 sq mi)
  • {{convert|0.2|sqmi|abbr=on}} → 0.2 sq mi (0.52 km2)
  • {{convert|500|m2|abbr=on}} → 500 m2 (5,400 sq ft)
  • {{convert|5410|sqft|abbr=on}} → 5,410 sq ft (503 m2)

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.