ထႅမ်းပလဵတ်ႉ:Infobox settlement/densdisp/doc
| ၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းပဵၼ် ၽိုၼ်ၵႅမ်မိုဝ်း လၢႆးၸႂ်ႉတိုဝ်း (documentation) ႁင်း တွၼ်ႈတႃႇ ၼႃႈလိၵ်ႈၽႄ (subpage) ထႅမ်းပလဵတ်ႉ:Infobox settlement/densdisp ၼၼ်ႉယဝ်ႉ။ တီႈၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းတေၶဝ်ႈပႃးဝႆႉ လၢႆးၸႂ်ႉတိုဝ်း လႄႈ ၶေႃႈၶၢဝ်ႇဢၼ်ၵဵဝ်ႇၵပ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ ၶေႃႈမုၼ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၵဵဝ်ႇၵပ်း တင်း ထႅမ်းပလဵတ်ႉ page ၼၼ်ႉယဝ်ႉ။ |
| ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ လႆႈၸႂ်ႉဝႆႉ တီႈၼႃႈလိၵ်ႈ မွၵ်ႈ 452,000 ၼႃႈလိၵ်ႈ. To avoid major disruption and server load, any changes should be tested in the ထႅမ်းပလဵတ်ႉ's /sandbox ဢမ်ႇၼၼ် ၼႃႈလိၵ်ႈၽႄ /testcases , ဢမ်ႇၼၼ် တီႈၼႂ်း ၼႃႈလိၵ်ႈၽႄ ၽူႈၸႂ်ႉတိုဝ်း။ The tested changes can be added to this page in a single edit. ဝူၼ်ႉသွၼ်ႇ ဢုပ်ႇဢူဝ်း လွင်ႈလႅၵ်ႈလၢႆႈ တီႈၼႂ်း ၼႃႈလိၵ်ႈ တႃႇဢုပ်ႇ ၽွင်းမိူဝ်ႈပႆႇ ၵေႃႇသၢင်ႈၶဝ်ၼၼ်ႉ။ ႁူဝ်ၼပ်ႉ လွင်ႈၶဝ်ႈပႃးၼႆႉ မၼ်းႁဵတ်းဢၢပ်ႉတဵတ်ႉဝႆႉႁင်းမၼ်း (တူၺ်းတီႈ ၽိုၼ်လိၵ်ႈ)။ |
| This template uses Lua: |
This subtemplate of {{Infobox settlement}} displays a metric/imperial pair of population density values for a line in the main infobox.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]{{Infobox settlement/densdisp
| /km2 = ''auto'' or population density per [[Square kilometre|km<sup>2</sup>]] (via ''population_density_km2'' and others)
| /sqmi = ''auto'' or population density per [[sqmi]] (via ''population_density_sq_mi'' and others)
| pop = population (via ''population_total'' and others)
| km2 = area in square kilometres (via ''area_total_km2'' and others)
| sqmi = area in square miles (via ''area_total_sq_mi'' and others)
| ha = area in [[hectare]]s (via ''area_total_ha'' and others)
| acre = area in [[acre]]s (via ''area_total_acre'' and others)
| dunam = area in [[dunam]]s (via ''area_total_dunam'' and others)
| pref = preference to display /km2 or /sqmi (via ''unit_pref'')
| name = name of country (via ''subdivision_name'')
}}
Examples
[မႄးထတ်းငဝ်ႈငႃႇ]density as auto
[မႄးထတ်းငဝ်ႈငႃႇ]As shown in the following examples, this template calculates the density if all three of the following conditions are met: /km2 (or /sqmi) is set to auto, a number if given for population, and a number is given for area. It also strips any formatting from the numbers, such as population with commas in the examples, which would otherwise cause an error in the calculation (see mw:Help:Magic words#Formatting).
| Code | Result | Number (not rounded) |
Order of magnitude |
|---|---|---|---|
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.00023456}}
|
43,000/km2 (110,000/sq mi) | 42633.015006821 | 4 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.0023456}}
|
4,300/km2 (11,000/sq mi) | 4263.3015006821 | 3 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.023456}}
|
430/km2 (1,100/sq mi) | 426.33015006821 | 2 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=0.23456}}
|
43/km2 (110/sq mi) | 42.633015006821 | 1 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=2.3456}}
|
4.3/km2 (11/sq mi) | 4.2633015006821 | 0 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=23.456}}
|
0.43/km2 (1.1/sq mi) | 0.42633015006821 | -1 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=234.56}}
|
0.043/km2 (0.11/sq mi) | 0.042633015006821 | -2 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=2345.6}}
|
0.0043/km2 (0.011/sq mi) | 0.0042633015006821 | -3 |
{{Infobox settlement/densdisp|/km2=auto|pop=10|km2=23456}}
|
0.00043/km2 (0.0011/sq mi) | 0.00042633015006821 | -4 |
{{Infobox settlement/densdisp|/km2=auto|pop=0|km2=23456}}
|
0.0/km2 (0.0/sq mi) | 0 | 0 |
| Code | Result | Number (not rounded) |
|---|---|---|
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=123,456|sqmi=10}}
|
12,000/sq mi (4,800/km2) | 12345.6 |
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=12345|sqmi=10}}
|
1,200/sq mi (480/km2) | 1234.5 |
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=1234|sqmi=10}}
|
120/sq mi (48/km2) | 123.4 |
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=123|sqmi=10}}
|
12/sq mi (4.7/km2) | 12.3 |
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=12|sqmi=10}}
|
1.2/sq mi (0.46/km2) | 1.2 |
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=auto|pop=0|sqmi=10}}
|
0.0/sq mi (0.0/km2) | 0 |
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= }}
|
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}}
|
12,345.67/km2 (31,975.1/sq mi) |
{{Infobox settlement/densdisp|/sqmi=12,345.67}}
|
4,766.69/km2 (12,345.67/sq mi) |
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=12,345.67}}
|
12,345.67/sq mi (4,766.69/km2) |
{{Infobox settlement/densdisp|/km2=0}}
|
0/km2 (0/sq mi) |
{{Infobox settlement/densdisp|pref=Imperial|/sqmi=0}}
|
0/sq mi (0/km2) |
See also
[မႄးထတ်းငဝ်ႈငႃႇ]- {{Infobox settlement}}
- {{Infobox settlement/areadisp}}
- {{Infobox settlement/lengthdisp}}
- {{Infobox settlement/link}}
- {{Infobox settlement/cleaner}}