Template:Pop density/doc

Usage
This template converts a population and area to a density.

Examples



 * rounding


 * no conversion


 * reverse outputs


 * give only raw numerical output


 * table

TemplateData
{	"params": { "1": {			"label": "Number of people", "example": "1600000", "type": "number", "required": true },		"2": {			"label": "Area", "description": "Numerical value of area", "example": "240", "type": "number", "required": true },		"3": {			"label": "Unit of area", "type": "string", "suggestedvalues": [ "sqkm", "km2", "mi2", "sqmi", "acres", "acre", "ha", "dunam", "sqm", "m2" ],			"required": true },		"4": {			"label": "Convert to units", "description": "Area unit to convert to", "type": "string" },		"prec": { "label": "Precision", "description": "Round to this number of decimals", "example": "2", "type": "number" },		"disp": { "label": "Display", "description": "Give only raw numerical output. Use \"num\" for usage in normal text; use \"table\" within tables.", "type": "string", "suggestedvalues": [ "num", "table" ]		},		"flip": { "label": "Reverse outputs", "type": "string", "suggestedvalues": [ "on" ]		}	},	"description": "This template converts a population and area to a density.", "format": "inline" }