Predloga:Infopolje Naselje/mi2km2/peskovnik/dok

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search

This subtemplate of {{Infopolje Naselje}} generates formatted area conversions between square mile and square kilometer.

Usage[uredi kodo]

Usage: {{Infopolje Naselje/mi2km2|mi2|km2|switch|round|link|magn}}

Ordinarily produces: mi2 sq mi (km2 km2).

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).

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

Set round to define the degree of rounding (e.g. 1 for one decimal place).

Setting link to any non-empty value causes the units to be wikilinked to square mile and square kilometre (see wp:overlink before using this option).

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

Primeri[uredi kodo]

Code Result
{{Infopolje Naselje/mi2km2/peskovnik| |109| |1|| }} 109 km²
{{Infopolje Naselje/mi2km2/peskovnik| |109.5| |1|| }} 109.5 km²
{{Infopolje Naselje/mi2km2/peskovnik| |109,5| |1|| }} 109,5 km²
{{Infopolje Naselje/mi2km2/peskovnik|42.5| | |1|| }} 110,1 km²
{{Infopolje Naselje/mi2km2/peskovnik|42,5| | |1|| }} Napaka v izrazu: Nepričakovan znak za ločilo ».« km²
{{Infopolje Naselje/mi2km2/peskovnik|42| | |1|| }} 108,8 km²

See also[uredi kodo]