Formula:Capsa coloniae/lengthdisp

E Vicipaedia
Salire ad: navigationem, quaerere
[considerabit] [recense] [historia] [purga] Documentation icon Documentatio formulae

Formula:Ambox

This subtemplate of {{Capsa coloniae}} displays length (e.g. elevation) values.

Usage[recensere | fontem recensere]

{{Capsa coloniae/lengthdisp|unit_pref|FEET|METRES|LINK|subdivision_name}}

where FEET and METRES are the area values to be displayed (one may be blank for automatic conversion if the other is numeric), LINK is set if the units are to be wikilinked, and the other parameters are taken from {{Capsa coloniae}}.

Whether the metric or imperial value is displayed first depends on the value of subn (usually the country name) and unit_pref (which can be set to Imperial to force imperial-first display). The default for non-US non-UK countries is metric first.

Examples[recensere | fontem recensere]

Code Result
{{Capsa coloniae/lengthdisp|Imperial|42.1| |lk|Canada}} 42.1 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric|42.1| |lk|Canada}} 13 m (42.1 ft)
{{Capsa coloniae/lengthdisp|Imperial| |13|lk|Canada}} 43 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric| |13|lk|Canada}} 13 m (43 ft)
{{Capsa coloniae/lengthdisp|Imperial|42.1|13.0|lk|Canada}} 42.1 ft (13.0 m)
{{Capsa coloniae/lengthdisp|Metric|42.1|13.0|lk|Canada}} 13.0 m (42.1 ft)
{{Capsa coloniae/lengthdisp|Imperial|42.1| | |Canada}} 42.1 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric|42.1| | |Canada}} 13 m (42.1 ft)
{{Capsa coloniae/lengthdisp|Imperial| |13| |Canada}} 43 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric| |13| |Canada}} 13 m (43 ft)
{{Capsa coloniae/lengthdisp|Imperial|42.1|13.0| |Canada}} 42.1 ft (13.0 m)
{{Capsa coloniae/lengthdisp|Metric|42.1|13.0| |Canada}} 13.0 m (42.1 ft)
{{Capsa coloniae/lengthdisp|Imperial|42.1| |lk|United States}} 42.1 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric|42.1| |lk|United States}} 42.1 ft (13 m)
{{Capsa coloniae/lengthdisp|Imperial| |13|lk|United States}} 43 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric| |13|lk|United States}} 43 ft (13 m)
{{Capsa coloniae/lengthdisp|Imperial|42.1|13.0|lk|United States}} 42.1 ft (13.0 m)
{{Capsa coloniae/lengthdisp|Metric|42.1|13.0|lk|United States}} 42.1 ft (13.0 m)
{{Capsa coloniae/lengthdisp|Imperial|42.1| | |United States}} 42.1 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric|42.1| | |United States}} 42.1 ft (13 m)
{{Capsa coloniae/lengthdisp|Imperial| |13| |United States}} 43 ft (13 m)
{{Capsa coloniae/lengthdisp|Metric| |13| |United States}} 43 ft (13 m)
{{Capsa coloniae/lengthdisp|Imperial|42.1|13.0| |United States}} 42.1 ft (13.0 m)
{{Capsa coloniae/lengthdisp|Metric|42.1|13.0| |United States}} 42.1 ft (13.0 m)

See also[recensere | fontem recensere]