ഫലകം:Infobox settlement/densdisp

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
Jump to navigation Jump to search
[തിരുത്തുക] [പുതുക്കുക] ഫലകത്തിന്റെ വിവരണം

This subtemplate of {{Infobox settlement}} displays a metric/imperial pair of population density values for a line in the main infobox.

Usage[തിരുത്തുക]

{{Infobox settlement/densdisp|unit_pref|DENSsqmi|DENSkm2|POP|AREAsqmi|AREAkm2|subdivision_name}}

where DENSsqmi and DENSkm2 are the density values to be displayed (one may be blank for automatic conversion if the other is numeric; or they may be set to auto for automatic calculation if POP and the corresponding AREA... parameter are present). Other parameters are taken from {{infobox settlement}}.

Whether the metric or imperial value is displayed first depends on the value of subdivision_name (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.

Rounding is always to one decimal place; the units are not wikilinked (compare {{Infobox settlement/areadisp}}).

Code Result
{{Infobox settlement/densdisp|Imperial|auto| |8400|42| |Canada}}
{{Infobox settlement/densdisp|metric|auto| |8400|42| |Canada}}
{{Infobox settlement/densdisp|Imperial|auto| |8400| |109|Canada}}
{{Infobox settlement/densdisp|metric|auto| |8400| |109|Canada}}
{{Infobox settlement/densdisp|Imperial|auto|auto|8400|42| |Canada}}
{{Infobox settlement/densdisp|metric|auto|auto|8400|42| |Canada}}
{{Infobox settlement/densdisp|Imperial|auto|auto|8400| |109|Canada}}
{{Infobox settlement/densdisp|metric|auto|auto|8400| |109|Canada}}

See also[തിരുത്തുക]

"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Infobox_settlement/densdisp&oldid=2253285" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്