Template:Mi2 to Km2

From Citizendium
Revision as of 23:50, 14 June 2009 by imported>Drew R. Smith
Jump to navigation Jump to search


This documentation is transcluded from Template:Mi2 to Km2/doc (edit | history)


Usage

Usage: {{Mi2 to Km2|mi2|km2|switch|round|link|magn}}

Ordinarily produces: Template:Mi2 to Km2/m2

If one of mi2 and km2 is omitted, it will be calculated by conversion of the other (which must be numerical or an error will be displayed).

Example:{{Mi2 to Km2|250}}


Setting switch to any non-empty value causes the metric value to be displayed first.

Example:{{Mi2 to Km2|250||switch}}

Set round to define the degree of rounding (e.g. 1 for one decimal place). Note:For the "link" and "mag" parameters to work, round must have a value.

Example:{{Mi2 to Km2|250|||3}}

Setting link to any non-empty value causes the units to be wikilinked to Square mile and Square kilometre.

Example:{{Mi2 to Km2|250|||1|1}}

Setting mag changes the wikilink behind km2 (for example, set it to 1 foo to link to 1 foo km²).

Example:{{Mi2 to Km2|250|||1|1|f00}}