Template:Metadata South Africa/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This is the parent of a collection of templates used by {{Infobox South African municipality}} and {{Infobox South African town}} to populate various infobox fields with statistical and structural information. The various subtemplates take a single parameter - either a Municipal Demarcation Board municipality code (in the case of the "muni" templates) or a populated place code from the 2001 census (List) - and returns appropriate statistical information about the municipality or place. Errors are logged in this category.

List of subtemplates:

{{Infobox South African town
|censuscode             = 386003
}}

returns:

Metadata South Africa/doc
CountrySouth Africa
ProvinceProvince missing
MunicipalityMunicipality missing
Area
 • Total10.77 km2 (4.16 sq mi)
Population
 (2011)[1]
 • Total10,465
 • Density970/km2 (2,500/sq mi)
Racial makeup (2011)
 • Black African56.3%
 • Coloured30.2%
 • Indian/Asian0.6%
 • White12.0%
 • Other1.0%
First languages (2011)
 • Afrikaans47.8%
 • Tswana37.9%
 • English7.8%
 • Xhosa1.8%
 • Other4.7%
Time zoneUTC+2 (SAST)

names and coordinates should be added separately. A reference is included automatically, but more can be added in the 'ref' field:

{{Infobox South African town 
|censuscode             = 386003
|name                   = Hartswater
|coordinates = {{coord|27|46|S|24|49|E|display=inline}}
}}

returns:

Hartswater
Hartswater is located in South Africa
Hartswater
Hartswater
 Hartswater shown within
Hartswater is located in Africa
Hartswater
Hartswater
Hartswater (Africa)
Coordinates: 27°46′S 24°49′E / 27.767°S 24.817°E / -27.767; 24.817
CountrySouth Africa
ProvinceProvince missing
MunicipalityMunicipality missing
Area
 • Total10.77 km2 (4.16 sq mi)
Population
 (2011)[1]
 • Total10,465
 • Density970/km2 (2,500/sq mi)
Racial makeup (2011)
 • Black African56.3%
 • Coloured30.2%
 • Indian/Asian0.6%
 • White12.0%
 • Other1.0%
First languages (2011)
 • Afrikaans47.8%
 • Tswana37.9%
 • English7.8%
 • Xhosa1.8%
 • Other4.7%
Time zoneUTC+2 (SAST)
Postal code (street)
8570
PO box
8570

References

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 "Main Place Metadata South Africa/doc". Census 2011. Cite error: Invalid <ref> tag; name "census2011" defined multiple times with different content