قالب:Geobox2 unit/area density
This template displays area density 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:
- /m2 to /sq ft (/square metre to /square foot) and vice-versa
- /ha to /acre (/hectare to /acre) and vice-versa
- /km2 to /sq mi (/square kilometre to /square mile) and vice-versa
Usage
The template has 3 unnamed parameters: {{Geobox2 unit/area| unit| value| round}}
. Their meaning is as follows:
- unit … obligatory, unit (
sqm/m, sqft/ft, ha, acre, sqkm/km, sqmi/mi
) of thevalue
parameter, it will get displayed first - value … obligatory, numerical value
- round … mandatory, number of decimal digits (negative numbers can be used for rounded figures); if not specified 0 is assumed
Examples
{{Geobox2 unit/area density|sqkm|1000}}
→ 1,000/km2 (2,590/sq mi){{Geobox2 unit/area density|sqmi|1000}}
→ 1,000/sq mi (386/km2){{Geobox2 unit/area density|sqkm|1000|-2}}
→ 1,000/km2 (2,600/sq mi){{Geobox2 unit/area density|sqft|1000}}
→ 1,000/sq ft (10,763.91/m2)
See also
- {{convert}} for general unit conversions
- Category:Pages using geobox2 unit with unknown units (tracking category)
- Category:Convert errors (tracking category)
The above documentation is transcluded from قالب:Geobox2 unit/area density/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |