ಟೆಂಪ್ಲೇಟು:Pop density
ಗೋಚರ
This template uses Lua: |
Usage
[ಬದಲಾಯಿಸಿ]This template converts a population and area to a density.
{{Pop density|number of people|numerical value of area|unit of area|area unit to convert to
}}
Examples
[ಬದಲಾಯಿಸಿ]- {{
Pop density|120|240|km2|sqmi
}} → "೦.೫00/km2 (೧.೨೯/sq mi)" - {{
Pop density|1600|600|sqmi|km2
}} → "೨.೬೭/sq mi (೧.೦೩/km2)"
- rounding
- {{
Pop density|120|240|km2|sqmi|prec=1
}} → "೦.೫/km2 (೧.೩/sq mi)"
- no conversion
- {{
Pop density|120|240|km2
}} → "೦.೫00/km2"
- reverse outputs
- {{
Pop density|1600|600|sqmi|km2|flip=on
}} → "೧.೦೩/km2 (೨.೬೭/sq mi)"
- give only raw numerical output
- {{
Pop density|120|240|km2|disp=num
}} → "೦.೫00" - {{
Pop density|1600|600|sqmi|disp=num
}} → "೨.೬೭" - {{
Pop density|120|240|km2|sqmi|disp=num
}} → "೧.೨೯" - {{
Pop density|1600|600|sqmi|km2|disp=num
}} → "೧.೦೩"