قالب:Densdisp

من أرابيكا، الموسوعة الحرة

هذه هي النسخة الحالية من هذه الصفحة، وقام بتعديلها عبود السكاف (نقاش | مساهمات) في 14:19، 17 فبراير 2022 (بوت: إصلاح التحويلات). العنوان الحالي (URL) هو وصلة دائمة لهذه النسخة.

(فرق) → نسخة أقدم | نسخة حالية (فرق) | نسخة أحدث ← (فرق)
اذهب إلى التنقل اذهب إلى البحث

This subtemplate displays a metric/imperial pair of population density values for a line in the main infobox. It is transcluded thus:

{{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 قالب:Areadisp).

Example: {{densdisp|Imperial|auto| |8400|42||Canada}} produces: 200/ميل2(77٫2/كم2)