வார்ப்புரு:Infobox South African town/doc
{{Documentation subpage}}
 &lt;!-- Categories and interwikis go at the bottom of this page. --&gt;
 
 {{Uses Infobox settlement}}
 {{Uses Wikidata|P571}}
 
 == Usage ==
 This is a frontend to {{tl|Infobox settlement}} for South African cities, towns and villages.
 
 If the &lt;code&gt;censuscode&lt;/code&gt; parameter is added, the infobox is automatically populated with data from the 2011 Census, including:
 * Land area of the town in square kilometres (as defined by Stats SA)
 * Population and population density of the town as of 2011
 * Demographic makeup of the population by race and first language (not available for all towns)
 
 Census codes for towns and smaller settlements can be found by searching at http://census2011.adrianfrith.com/.
 
 With the &lt;code&gt;censuscode&lt;/code&gt; parameter, the template will produce a functional infobox, but it is recommended that you also add at least the latitude and longitude of the town, in which case the template will also produce a pushpin map showing the location of the town. You can use other parameters from {{tl|Infobox settlement}} to further populate the template.
 
 ==Example==
 The wikicode below produces the infobox shown to the right.
 {{Infobox South African town
 | censuscode = 172024
 | latd  = 34 | latm  = 35 | lats  = 20
 | longd = 19 | longm = 34 | longs = 15
 | province                = Western Cape
 | district                = Overberg
 | municipality            = Overstrand
 | coordinates_display = inline &lt;!--- stop the template from tagging this page with coordinates ---&gt;
 }}
 &lt;pre&gt;
 {{Infobox South African town
 | censuscode = 172024
 | latd  = 34 | latm  = 35 | lats  = 20
 | longd = 19 | longm = 34 | longs = 15
 | province                = Western Cape
 | district                = Overberg
 | municipality            = Overstrand
 }}
 &lt;/pre&gt;
 {{Reflist}}
 
 ==Basic blank template==
 &lt;pre style=&quot;overflow:auto&quot;&gt;
 {{Infobox South African town
 | name                    = {{subst:PAGENAME}}
 | native_name             = 
 | other_name              = 
 | image_skyline           = 
 | image_caption           = 
 | latd  =  |latm  =  |lats  = 
 | longd =  |longm =  |longs = 
 | province                = &lt;!-- name of the province, without disambiguation or other suffixes --&gt;
 | district                = &lt;!-- name of the district municipality, without disambiguation or other suffixes --&gt;
 | municipality            = &lt;!-- name of the municipality, without disambiguation or other suffixes --&gt;
 | established_date        = &lt;!-- retrieved from Wikidata property P571 if missing --&gt;
 | government_type         = &lt;!-- Ward number --&gt;
 | leader_party            = 
 | leader_title            = &lt;!-- Councillor --&gt;
 | leader_name             = 
 | elevation_m             = 
 | postal_code             = &lt;!-- the code for street addresses --&gt;
 | postal2_code            = &lt;!-- the code for Post-office boxes --&gt;
 | area_code               = 
 | censuscode              = 
 | website                 = 
 }}
 &lt;/pre&gt;
 
 ==Full blank template==
 &lt;pre style=&quot;overflow:auto&quot;&gt;
 {{Infobox South African town
 | name                    = {{subst:PAGENAME}}
 | official_name           = 
 | other_name              = 
 | native_name             = 
 | image_skyline           = 
 | image_alt               = 
 | image_caption           = 
 | image_flag              = 
 | image_seal              = 
 | image_shield            = 
 | nickname                = 
 | motto                   = 
 | image_map               = 
 | map_caption             = 
 | latd  =  |latm  =  |lats  = 
 | longd =  |longm =  |longs = 
 | province                = &lt;!-- name of the province, without disambiguation or other suffixes --&gt;
 | district                = &lt;!-- name of the district municipality, without disambiguation or other suffixes --&gt;
 | municipality            = &lt;!-- name of the municipality, without disambiguation or other suffixes --&gt;
 | mainplace               = &lt;!-- for suburbs and other settlements which are part of a larger entity --&gt;
 | established_date        = &lt;!-- retrieved from Wikidata property P571 if missing --&gt;
 | founder                 =
 | named_for               = 
 | government_footnotes    = 
 | government_type         = 
 | leader_party            = 
 | leader_title            = 
 | leader_name             = 
 | leader_title1           = 
 | leader_name1            = 
 | leader_title2           = 
 | leader_name2            = 
 | area_footnotes          = 
 | area_total_km2          = 
 | area_metro_km2          = 
 | elevation_m             = 
 | elevation_max_m         = 
 | elevation_min_m         = 
 | population_footnotes    = 
 | population_est          = 
 | pop_est_as_of           = 
 | population_total        = 
 | population_as_of        = 
 | population_metro        = 
 | population_metro_footnotes = 
 | population_demonym      = 
 | population_note         = 
 &lt;!-- demographics (section 1) --&gt;
 | demographics1_footnotes = 
 | percent_black           = &lt;!-- demographic statistics for the population groups --&gt;
 | percent_coloured        = 
 | percent_asian           = 
 | percent_white           = 
 | percent_other           = 
 &lt;!-- demographics (section 2) --&gt;
 | demographics2_footnotes = 
 | demographics2_title1    = &lt;!-- a list of the most common languages, where it's not added automatically through a census code --&gt;
 | demographics2_info1     = 
 | demographics2_title2    = 
 | demographics2_info2     = 
 | demographics2_title3    = 
 | demographics2_info3     = 
 | demographics2_title4    = 
 | demographics2_info4     = 
 | demographics2_title5    = 
 | demographics2_info5     = 
 &lt;!-- twin cities ---------------&gt;
 | twin1                   = 
 | twin1_country           = 
 | twin2                   = 
 | twin2_country           = 
 | twin3                   = 
 | twin3_country           = 
 | twin4                   = 
 | twin4_country           = 
 | twin5                   = 
 | twin5_country           = 
 | twin6                   = 
 | twin6_country           = 
 &lt;!-- blank fields (section 1) --&gt;
 | blank_name_sec1         = 
 | blank_info_sec1         = 
 | blank1_name_sec1        = 
 | blank1_info_sec1        = 
 | blank2_name_sec1        = 
 | blank2_info_sec1        = &lt;!-- etc., up to blank7_name_sec1 / blank7_info_sec1 --&gt;
 &lt;!-- blank fields (section 2) --&gt;
 | blank_name_sec2         = 
 | blank_info_sec2         = 
 | blank1_name_sec2        = 
 | blank1_info_sec2        = 
 | blank2_name_sec2        = 
 | blank2_info_sec2        = &lt;!-- etc., up to blank7_name_sec2 / blank7_info_sec2 --&gt;
 &lt;!-- Other information --&gt;
 | postal_code             = &lt;!-- the code for street addresses --&gt;
 | postal2_code            = &lt;!-- the code for Post-office boxes --&gt;
 | area_code               = 
 | censuscode              = 
 | website                 = 
 | footnotes               = 
 }}
 &lt;/pre&gt;
 
 ==Use without a census code==
 When the right census code cannot be found, the data from the 2011 census will not be included automatically. The infobox can still be used, but it will require the addition of at least the name of the &lt;code&gt;province&lt;/code&gt; and &lt;code&gt;municipality&lt;/code&gt; by using the parameters of the same name, entering them without qualifiers or disambiguation, so that [[Dannhauser Local Municipality]], for example, is added to the infobox as just &lt;code&gt;Dannhauser&lt;/code&gt;.
 
 Without a census code, land area and population (if available) will have to be added manually. This can be done by using the &lt;code&gt;area_total_km2&lt;/code&gt; and &lt;code&gt;population_total&lt;/code&gt; parameters, respectively.
 
 ==Maintenance links==
 * [http://tools.wmflabs.org/catscan2/catscan2.php?depth=2&amp;categories=Populated+places+in+the+Free+State+%28South+African+province%29%0D%0APopulated+places+in+Limpopo%0D%0APopulated+places+in+Mpumalanga%0D%0APopulated+places+in+Gauteng%0D%0APopulated+places+in+North+West+%28South+African+province%29%0D%0APopulated+places+in+the+Eastern+Cape%0D%0APopulated+places+in+the+Northern+Cape%0D%0APopulated+places+in+the+Western+Cape%0D%0APopulated+places+in+KwaZulu-Natal&amp;comb&amp;#91;union&amp;#93;=1&amp;templates_no=Infobox+South+African+town+2011&amp;sortby=size&amp;sortorder=descending&amp;doit=1 Articles about South African towns not using this infobox]
 * [http://tools.wmflabs.org/catscan2/catscan2.php?templates_any=Infobox+South+African+town+2011&amp;templates_no=Metadata+South+Africa%2Fmp2011%2Fpop1%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop2%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop3%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop4%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop5%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop6%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop7%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop8%0D%0AMetadata+South+Africa%2Fmp2011%2Fpop9%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop1%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop2%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop3%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop4%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop5%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop6%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop7%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop8%0D%0AMetadata+South+Africa%2Fsp2011%2Fpop9&amp;sortby=size&amp;sortorder=descending&amp;doit=1 Using this infobox but without a census code]
 * Errors are logged in this [[:Category:Pages using South Africa data templates with unknown parameters‎|category]].
 
 &lt;includeonly&gt;{{basepage subpage|
 &lt;!-- Categories go here: --&gt;
 [[Category:South Africa subdivision infobox templates]]
 [[Category:Templates using data from Wikidata]]