Padron:Unit sqkm

Mula sa Wikipediang Tagalog, ang malayang ensiklopedya
Jump to navigation Jump to search

Displays square kilometres (km²) and converts to square miles (sq mi) for example "{{Unit sqkm | 48.7 | 1}}" appears as "48.7 km² (18.8 sq mi)" with rounding to 1 decimal place.


This template is one of the unit display category of templates. These are templates which print figures with their units and converts them to either English or metric system too. The second value is in brackets. Both parameters should be unformated numbers, the first one is the actual value, the second one is the number of decimal digits for the calculated value. The numbers are then nicely formated.

If you append "| lk=on" to the template the units will be wikilinked, otherwise they will not be. The manual of style suggests that you only link the first instance.

The Manual of Style Units Section specifies that you should spell out the primary unit in text therefore you should use the full version (where available) e.g. {{Unit foot}}, in sentences and the abbreviated version e.g. {{Unit ft}} in tables, info boxes, etc.

If the grammar of a sentence requires that the singular version of a spelled out unit is required append "| sing=on" to the template.


It is important to note that negative values are OK for the rounding parameter, which is very useful for converting approximate values:

See also[baguhin ang batayan]