টেমপ্লেট:Infobox settlement/densdisp

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
নথি আইকন টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]
Code Result Number
(not rounded)
Order of
magnitude
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.00023456}} 43000/কিমি2 (110000/বর্গমাইল) 42633.015006821 4
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.0023456}} 4300/কিমি2 (11000/বর্গমাইল) 4263.3015006821 3
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.023456}} 430/কিমি2 (1100/বর্গমাইল) 426.33015006821 2
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.23456}} 43/কিমি2 (110/বর্গমাইল) 42.633015006821 1
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=2.3456}} 4.3/কিমি2 (11/বর্গমাইল) 4.2633015006821 0
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=23.456}} 0.43/কিমি2 (1.1/বর্গমাইল) 0.42633015006821 -1
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=234.56}} 0.043/কিমি2 (0.11/বর্গমাইল) 0.042633015006821 -2
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=2345.6}} 0.0043/কিমি2 (0.011/বর্গমাইল) 0.0042633015006821 -3
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=23456}} 0.00043/কিমি2 (0.0011/বর্গমাইল) 0.00042633015006821 -4
{{Infobox settlement/densdisp|/km2=auto|pop=0|km2=23456}} 0�0/কিমি2 (0�0/বর্গমাইল) 0 0
Code Result Number
(not rounded)
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=123,456|sqmi=10}} 12000/বর্গমাইল (4800/কিমি2) 12345.6
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=12345|sqmi=10}} 1200/বর্গমাইল (480/কিমি2) 1234.5
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=1234|sqmi=10}} 120/বর্গমাইল (48/কিমি2) 123.4
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=123|sqmi=10}} 12/বর্গমাইল (4.7/কিমি2) 12.3
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=12|sqmi=10}} 1.2/বর্গমাইল (0.46/কিমি2) 1.2
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=0|sqmi=10}} 0�0/বর্গমাইল (0�0/কিমি2) 0

Examples of missing population or area[সম্পাদনা]

As shown in the following examples, this template outputs nothing if density = auto, but either population or area is missing.

Code Result
{{Infobox settlement/densdisp|/km2=auto|pop=123,456|km2= }}
{{Infobox settlement/densdisp|/km2=auto|pop= |km2=10}}
{{Infobox settlement/densdisp|/km2=auto|pop= |km2= }}
{{Infobox settlement/densdisp|/km2= |pop= |km2= }}

Examples of density as number[সম্পাদনা]

As shown in the following examples, this template always displays the density if given as a number, regardless of whether the population and area are defined. It also strips any formatting in the number, such as the commas in the examples.

Code Result
{{Infobox settlement/densdisp|/km2=12,345.67}} 12345.67/কিমি2 (31975.1/বর্গমাইল)
{{Infobox settlement/densdisp|/sqmi=12,345.67}} 4766.69/কিমি2 (12345.67/বর্গমাইল)
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=12,345.67}} 12345.67/বর্গমাইল (4766.69/কিমি2)
{{Infobox settlement/densdisp|/km2=0}} 0/কিমি2 (0/বর্গমাইল)
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=0}} 0/বর্গমাইল (0/কিমি2)