வார்ப்புரு:Infobox South African town
&lt;includeonly&gt;{{Infobox settlement
 &lt;!-- See Template:Infobox settlement for additional fields and descriptions --&gt;
 | name                    = {{{name|}}}
 | official_name           = {{{official_name|}}}
 | other_name              = {{{other_name|}}}
 | native_name             = {{{native_name|}}}
 | native_name_lang        = &lt;!-- ISO 639-2 code e.g. &quot;fr&quot; for French. If more than one, use {{lang}} instead --&gt;
 | image_skyline           = {{{image_skyline|}}}
 | image_alt               = {{{image_alt|}}}
 | image_caption           = {{{image_caption|}}}
 | imagesize               = 
 | image_flag              = {{{image_flag|}}}
 | flag_alt                =
 | image_seal              = {{{image_seal|}}}
 | seal_alt                =
 | image_shield            = {{{image_shield|}}}
 | shield_alt              =
 | nickname                = {{{nickname|}}}
 | motto                   = {{{motto|}}}
 | image_map               = {{{image_map|}}}
 | map_alt                 =
 | map_caption             = {{{map_caption|}}}
 | pushpin_map             = {{#if: {{{latd|}}} | South Africa }}
 | pushpin_label_position  =
 | pushpin_map_alt         =
 | pushpin_map_caption     = {{#if: {{{latd|}}} | [[File:Red pog.svg|6px|link=|alt=]]&amp;nbsp;{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} shown within South Africa }}
 &lt;!-- Wedge secondary map in box after pushpin map --&gt;
 {{#if: {{{latd|}}} | {{#switch: {{{municipality}}} | City of Cape Town | eThekwini | City of Johannesburg = &lt;/small&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;mergedrow&quot;&gt;
 &lt;td colspan=2 align=&quot;center&quot;&gt;
 {{hidden begin |titlestyle=height:auto; padding-right:2em; |border=line |title= Location within {{#switch: {{{municipality}}} | City of Cape Town = Cape Town | eThekwini = Durban | City of Johannesburg = Greater Johannesburg }} }}&lt;!--begins locationmap --&gt;{{Location map| {{#switch: {{{municipality}}} | City of Cape Town = Cape Town | eThekwini = Durban | City of Johannesburg = Greater Johannesburg }} |lat_deg = {{{latd|}}} |lat_min = {{{latm|}}} |lat_sec = {{{lats|}}} |lat_dir = S |lon_deg = {{{longd|}}} |lon_min = {{{longm|}}} |lon_sec = {{{longs|}}} |lon_dir = E |label = {{{name|}}} |marksize=6 |float=center |width=250 |border=none |caption= }}&lt;!--end locationmap --&gt;{{hidden end}} }} }}
 | latd  = {{{latd|}}} |latm  = {{{latm|}}} |lats  = {{{lats|}}} |latNS  = S
 | longd = {{{longd|}}} |longm = {{{longm|}}} |longs = {{{longs|}}} |longEW = E
 | coordinates_type        = type:city_region:ZA
 | coordinates_display     = {{#if: {{{coordinates_display|}}} | {{{coordinates_display}}} | inline,title}}
 | subdivision_type        = நாடு
 | subdivision_name        = [[தென்னாப்பிரிக்கா]]
 | subdivision_type1       = மாகாணம்
 | subdivision_name1       = {{#if: {{{province|}}} | [[{{#switch: {{{province}}} | Free State = Free State (province){{!}}Free State | North West = North West (South African province){{!}}North West |#default = {{{province}}} }}]] | &lt;strong class=&quot;error&quot;&gt;Province missing&lt;/tt&gt;&lt;/strong&gt;{{ns0|[[Category:Template:Data population/Error]]}} }}
 | subdivision_type2       = மாவட்டம்
 | subdivision_name2       = {{#if: {{{district|}}} | [[{{{district}}} District Municipality|{{{district}}}]] }}
 | subdivision_type3       = நகராட்சி
 | subdivision_name3       = {{#if: {{{municipality|}}} | [[{{#switch: {{{municipality}}} | Buffalo City | City of Cape Town | Ekurhuleni | eThekwini | City of Johannesburg | Mangaung | Nelson Mandela Bay | City of Tshwane = {{{municipality}}} Metropolitan Municipality{{!}}{{{municipality}}} | Emalahleni = Emalahleni Local Municipality, {{{province}}}{{!}}Emalahleni | Naledi = Naledi Local Municipality, {{{province}}}{{!}}Naledi | #default = {{{municipality}}} Local Municipality{{!}}{{{municipality}}} }}]] | &lt;strong class=&quot;error&quot;&gt;Municipality missing&lt;/tt&gt;&lt;/strong&gt;{{ns0|[[Category:Template:Data population/Error]]}} }}
 | subdivision_type4       = முக்கிய இடங்கள்
 | subdivision_name4       = {{#if: {{{mainplace|}}} | [[{{{mainplace}}}]] }}
 | established_title       = {{#if: {{{established_title|}}} | {{{established_title|}}} | Established }}
 | established_date        = {{#if: {{{established_date|}}} | {{{established_date}}} | {{#property:P571}} }}
 | founder                 =
 | named_for               = {{{named_for|}}}
 | government_footnotes    = {{{government_footnotes|}}}
 | government_type         = {{{government_type|}}}
 | leader_party            = {{{leader_party|}}}
 | leader_title            = {{{leader_title|}}}
 | leader_name             = {{{leader_name|}}}
 | leader_title1           = {{{leader_title1|}}}
 | leader_name1            = {{{leader_name1|}}}
 | leader_title2           = {{{leader_title2|}}}
 | leader_name2            = {{{leader_name2|}}}
 | unit_pref               = Metric&lt;!-- or US or UK --&gt;
 | area_footnotes          = {{#if: {{{censuscode|}}} | {{#tag:ref |{{cite web |url=http://census2011.adrianfrith.com/place/{{{censuscode|}}} |title = {{#ifeq: {{str len|{{{censuscode|}}} }} | 9 | Sub | Main }} Place {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} |work=Census 2011}} |name=census2011}} | {{{area_footnotes|}}} }}
 | area_total_km2          = {{#if: {{{censuscode|}}} | {{Metadata South Africa/{{#ifeq: {{str len|{{{censuscode|}}} }} | 9 | s | m }}p2011/area{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | {{{area_total_km2|}}} }}
 | area_metro_km2          = {{{area_metro_km2|}}}
 | elevation_m             = {{{elevation_m|}}}
 | elevation_max_m         = {{{elevation_max_m|}}}
 | elevation_min_m         = {{{elevation_min_m|}}}
 | population_footnotes    = {{#if: {{{censuscode|}}} | &lt;ref name=&quot;census2011&quot; /&gt; | {{{population_footnotes|}}} }}
 | population_est          = {{{population_est|}}}
 | pop_est_as_of           = {{{pop_est_as_of|}}}
 | population_total        = {{#if: {{{censuscode|}}} | {{Metadata South Africa/{{#ifeq: {{str len|{{{censuscode|}}} }} | 9 | s | m }}p2011/pop{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | {{{population_total|}}} }}
 | population_as_of        = {{#if: {{{censuscode|}}} | 2011 | {{{population_as_of|}}} }}
 | population_density_km2  = auto
 | population_metro        = {{{population_metro|}}}
 | population_density_metro_km2 = {{#if: {{{population_metro|}}} | auto }}
 | population_metro_footnotes = {{{population_metro_footnotes|}}}
 | population_demonym      = {{{population_demonym|}}}
 | population_note         = {{{population_note|}}}
 &lt;!-- demographics (section 1) --&gt;
 | demographics_type1      = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | இனப் பகுப்பு&lt;span style=&quot;font-weight:normal;&quot;&gt;(2011)&lt;/span&gt; | {{#if: {{{percent_black|}}} {{{percent_coloured|}}} {{{percent_asian|}}} {{{percent_white|}}} | இனப் பகுப்பு makeup &lt;span style=&quot;font-weight:normal;&quot;&gt;({{#if: {{{censuscode|}}} | 2011 | {{{population_as_of|}}} }})&lt;/span&gt; }} }}
 | demographics1_footnotes = {{#if: {{{censuscode|}}} | &lt;ref name=&quot;census2011&quot; /&gt; | {{{demographics1_footnotes|}}} }}
 | demographics1_title1    = &lt;span style=&quot;font-weight:normal;&quot;&gt;[[தென்னாப்பிரிக்காவின் பந்து மொழி பேசுவோர்|கருப்பின ஆபிரிக்கர்]]&lt;/span&gt;
 | demographics1_info1     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 1 }} | {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 1 }}% }} | {{{percent_black|}}} }}
 | demographics1_title2    = &lt;span style=&quot;font-weight:normal;&quot;&gt;கலவை நிறத்தவர்&lt;/span&gt;
 | demographics1_info2     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 2 }} | {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 2 }}% }} | {{{percent_coloured|}}} }}
 | demographics1_title3    = &lt;span style=&quot;font-weight:normal;&quot;&gt;[[இந்திய தென்னாபிரிக்கர்|இந்தியர்]]/[[ஆசிய தென்னாபிரிக்கர்|ஆசியர்]]&lt;/span&gt;
 | demographics1_info3     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 3 }} | {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 3 }}% }} | {{{percent_asian|}}} }}
 | demographics1_title4    = &lt;span style=&quot;font-weight:normal;&quot;&gt;[[வெள்ளையின தென்னாபிரிக்கர்|வெள்ளையர்]]&lt;/span&gt;
 | demographics1_info4     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 4 }} | {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 4 }}% }} | {{{percent_white|}}} }}
 | demographics1_title5    = &lt;span style=&quot;font-weight:normal;&quot;&gt;பிறர்&lt;/span&gt;
 | demographics1_info5     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 5 }} | {{#titleparts: {{Metadata South Africa/mp2011/race{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 5 }}% }} | {{{percent_other|}}} }}
 &lt;!-- demographics (section 2) --&gt;
 | demographics_type2      = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | [[தாய்மொழி]]கள் &lt;span style=&quot;font-weight:normal;&quot;&gt;(2011)&lt;/span&gt; | {{#if: {{{demographics2_info1|}}} | [[தாய்மொழி]]கள் &lt;span style=&quot;font-weight:normal;&quot;&gt;({{#if: {{{censuscode|}}} | 2011 | {{{population_as_of|}}} }})&lt;/span&gt; }} }}
 | demographics2_footnotes = {{#if: {{{censuscode|}}} | &lt;ref name=&quot;census2011&quot; /&gt; | {{{demographics2_footnotes|}}} }}
 | demographics2_title1    = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{Infobox South African town/langname| {{{censuscode}}} | 1 }}&lt;/span&gt; | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{{demographics2_title1|}}}&lt;/span&gt; }}
 | demographics2_info1     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 2 }}% | {{{demographics2_info1|}}} }}
 | demographics2_title2    = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{Infobox South African town/langname| {{{censuscode}}} | 3 }}&lt;/span&gt; | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{{demographics2_title2|}}}&lt;/span&gt; }}
 | demographics2_info2     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 4 }} | {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 4 }}% }} | {{{demographics2_info2|}}} }}
 | demographics2_title3    = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{Infobox South African town/langname| {{{censuscode}}} | 5 }}&lt;/span&gt; | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{{demographics2_title3|}}}&lt;/span&gt; }}
 | demographics2_info3     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 6 }} | {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 6 }}% }} | {{{demographics2_info3|}}} }}
 | demographics2_title4    = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{Infobox South African town/langname| {{{censuscode}}} | 7 }}&lt;/span&gt; | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{{demographics2_title4|}}}&lt;/span&gt; }}
 | demographics2_info4     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 8 }} | {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 8 }}% }} | {{{demographics2_info4|}}} }}
 | demographics2_title5    = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | &lt;span style=&quot;font-weight:normal;&quot;&gt;Other&lt;/span&gt; | &lt;span style=&quot;font-weight:normal;&quot;&gt;{{{demographics2_title5|}}}&lt;/span&gt; }}
 | demographics2_info5     = {{#ifeq: {{str len|{{{censuscode}}} }} | 6 | {{#if: {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 9 }} | {{#titleparts: {{Metadata South Africa/mp2011/lang{{Str left|{{{censuscode|}}} }}|{{{censuscode|}}} }} | 1 | 9 }}% }} | {{{demographics2_info5|}}} }}
 &lt;!-- twin cities ---------------&gt;
 | twin1                   = {{{twin1|}}}
 | twin1_country           = {{{twin1_country|}}}
 | twin2                   = {{{twin2|}}}
 | twin2_country           = {{{twin2_country|}}}
 | twin3                   = {{{twin3|}}}
 | twin3_country           = {{{twin3_country|}}}
 | twin4                   = {{{twin4|}}}
 | twin4_country           = {{{twin4_country|}}}
 | twin5                   = {{{twin5|}}}
 | twin5_country           = {{{twin5_country|}}}
 | twin6                   = {{{twin6|}}}
 | twin6_country           = {{{twin6_country|}}}
 &lt;!-- blank fields (section 1) --&gt;
 | blank_name_sec1         = {{{blank_name_sec1|}}}
 | blank_info_sec1         = {{{blank_info_sec1|}}}
 | blank1_name_sec1        = {{{blank1_name_sec1|}}}
 | blank1_info_sec1        = {{{blank1_info_sec1|}}}
 | blank2_name_sec1        = {{{blank2_name_sec1|}}}
 | blank2_info_sec1        = {{{blank2_info_sec1|}}}
 &lt;!-- blank fields (section 2) --&gt;
 | blank_name_sec2         = {{{blank_name_sec2|}}}
 | blank_info_sec2         = {{{blank_info_sec2|}}}
 | blank1_name_sec2        = {{{blank1_name_sec2|}}}
 | blank1_info_sec2        = {{{blank1_info_sec2|}}}
 | blank2_name_sec2        = {{{blank2_name_sec2|}}}
 | blank2_info_sec2        = {{{blank2_info_sec2|}}}
 &lt;!-- Other information --&gt;
 | timezone1               = 
 | utc_offset1             = 
 | postal_code_type        = அஞ்சல் குறியீடு &lt;span style=&quot;font-weight:normal;&quot;&gt;(street)&lt;/span&gt;
 | postal_code             = {{#if: {{{postal_code|}}} | {{{postal_code}}} | {{#if: {{#titleparts: {{Metadata ZA post|{{{name}}} }} | 1 | 2 }} | {{#titleparts: {{Metadata ZA post|{{{name}}} }} | 1 | 2 }} }} }}
 | postal2_code_type       = [[Post-office box|PO box]]
 | postal2_code            = {{#if: {{{postal2_code|}}} | {{{postal2_code}}} | {{#if: {{#titleparts: {{Metadata ZA post|{{{name}}} }} | 1 | 1 }} | {{#titleparts: {{Metadata ZA post|{{{name}}} }} | 1 | 1 }} }} }}
 | area_code_type          = Telephone numbers in South Africa
 | area_code               = {{{area_code|}}}
 | website                 = {{{website|}}}
 | footnotes               = {{{footnotes|}}}
 }}&lt;/includeonly&gt;&lt;noinclude&gt;
 
 {{documentation}}