Jump to content

Template:Km2/doc

From Wikipedia, the free encyclopedia

This template shows square kilometres only.

Conversion to square miles via {{cvt}} or {{convert}} is strongly suggested by WP:UNITS. Eg:

  • {{cvt|100|km2|0}} → 100 km2 (39 sq mi)
  • {{cvt|100|km2|round=5}} → 100 km2 (40 sq mi)

Usage

[edit]

{{km2|number}}

Example:

  • {{km2}} → km2
  • {{km2|123.45}} → 123.45 km2
  • {{km2|123.45 million}} → 123.45 million km2
  • {{km2|123.45|link=yes}} → 123.45 km2

Template data

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Km2 in articles based on its TemplateData.

TemplateData for Km2

This template shows square kilometres only.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Area1

Area in square kilometres

Numberoptional
Link?link

Link square kilometre to article

Example
yes
Booleanoptional