跳去內容

Template:Unit area

出自維基百科,自由嘅百科全書

This template displays area measurement units used within various Category:Geobox templates, automatically converting between metric/imperial values. The input must be unformatted numeric values (i.e. without commas, the commas are automatically added to the output).

It can display and convert following units:

  • to ft² (square metres to square feet) and vice-versa
  • ha to acre (hectares to acres) and vice-versa
  • km² to mi² (square kilometres to square miles) and vice-versa

The template has 3 unnamed parameters: {{Unit area| unit| value| round}}. Their meaning is as follows:

  1. unit … obligatory, unit (sqm/m, sqft/ft, ha, acre, sqkm/km, sqmi/mi, slashes delimit alternatives) of the value aprameter, it will get displayed first
  2. value … obligatory, numerical value
  3. round … mandatory, number of decimal digits (negative numbers can be used for rounded figures); if not specified 0 is assumed

For examples see discussion.