틀:Infobox settlement/densdisp
이것은 {{Infobox settlement}}의 하위틀이며, 미터법/영국식 인구 밀도값의 쌍을 정보 상자 내부에 표시합니다.
사용법[편집]
{{Infobox settlement/densdisp | /km2 = auto or population density per km2 (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 hectares (via area_total_ha and others) | acre = area in acres (via area_total_acre and others) | dunam = area in dunams (via area_total_dunam and others) | pref = preference to display /km2 or /sqmi (via unit_pref) | name = name of country (via subdivision_name) }}
자동 치환 인구 밀도의 예제[편집]
아래에 보여지는 것과 같이, 이 틀은 아래의 3가지가 모두 충족되어야 밀도값을 계산합니다. 인구, 면적에 대한 수치가 지정되면, /km2 (또는 /sqmi)는 자동으로 지정됩니다. 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 |
인수[편집]
인수 | 지정 내용 | 기본값 | 설명 |
---|---|---|---|
분류[편집]
이 틀은 이 틀이 부착된 문서에 아래의 분류를 적용합니다:
분류 | 설명 |
---|---|
같이 보기[편집]
위 설명은 틀:Infobox settlement/densdisp/설명문서의 내용을 가져와 보여주고 있습니다. (편집 | 역사) 이 틀에 대한 수정 연습과 시험은 연습장 (만들기 | 미러)과 시험장 (만들기)에서 할 수 있습니다. 분류는 /설명문서에 넣어주세요. 이 틀에 딸린 문서. |