Difference between revisions of "Template:Administrative divisions of South Africa"

From blackwiki
Jump to navigation Jump to search
(no rationale)
(formatting)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
| name     = Administrative divisions of South Africa
+
| name = Administrative divisions of South Africa
| title     = {{flagicon|South Africa}} [[Administrative divisions of South Africa]]
+
| state = {{{state|{{{1|autocollapse}}}}}}
| state    = {{{state|autocollapse}}}
+
| title = {{flagicon|South Africa}} [[Administrative divisions of South Africa]]
| image    =
 
 
| listclass = hlist
 
| listclass = hlist
  
| above = [[Capital city|Capitals]]: '''[[Pretoria]]''' (executive); '''[[Bloemfontein]]''' (judicial); '''[[Cape Town]]''' (legislative)  
+
| aboveclass = hlist
 +
| above =
 +
* [[Capital city|Capital]]s: '''[[Pretoria]]''' {{smaller|(executive)}}
 +
* '''[[Bloemfontein]]''' {{smaller|(judicial)}}
 +
* '''[[Cape Town]]''' {{smaller|(legislative)}}
  
 
| group1 = [[Provinces of South Africa|Provinces]]
 
| group1 = [[Provinces of South Africa|Provinces]]
| list1 =  
+
| list1 =
 
* [[Eastern Cape]]
 
* [[Eastern Cape]]
 
* [[Free State (province)|Free State]]
 
* [[Free State (province)|Free State]]
Line 21: Line 24:
  
 
| group2 = [[Municipalities of South Africa|Municipalities]]
 
| group2 = [[Municipalities of South Africa|Municipalities]]
| list2 =
+
| list2 =
  {{Navbox|child
+
{{Navbox |child |groupstyle=font-weight:normal; |evenodd=swap
 
+
   | list1 = ''[[List of municipalities in South Africa]]''
  | group1 =  
 
   | list1 = '''[[List of municipalities in South Africa|Full list]]'''
 
 
 
 
   | group2 = By province
 
   | group2 = By province
   | list2 =  
+
   | list2 =
 
* [[List of municipalities in the Eastern Cape|Eastern Cape]]
 
* [[List of municipalities in the Eastern Cape|Eastern Cape]]
 
* [[List of municipalities in the Free State|Free State]]
 
* [[List of municipalities in the Free State|Free State]]
Line 38: Line 38:
 
* [[List of municipalities in the Northern Cape|Northern Cape]]
 
* [[List of municipalities in the Northern Cape|Northern Cape]]
 
* [[List of municipalities in the Western Cape|Western Cape]]
 
* [[List of municipalities in the Western Cape|Western Cape]]
 
 
   | group3 = Types
 
   | group3 = Types
   | list3 =
+
   | list3 =
 
* [[Metropolitan municipality (South Africa)|Metropolitan]]
 
* [[Metropolitan municipality (South Africa)|Metropolitan]]
 
* [[Local municipality (South Africa)|Local]]
 
* [[Local municipality (South Africa)|Local]]
 
* [[District municipality (South Africa)|District]]
 
* [[District municipality (South Africa)|District]]
  }}
+
}}
  
 
| group3 = [[List of populated places in South Africa|Settlements]]
 
| group3 = [[List of populated places in South Africa|Settlements]]
| list3  =  
+
| list3 =
* [[List of cities and towns in the Eastern Cape|In the Eastern Cape]]
+
  {{Navbox |child |groupstyle=font-weight:normal;
* [[List of cities and towns in the Free State|In the Free State]]
+
  | group1 = By province
* [[List of cities and towns in Gauteng|In Gauteng]]
+
  | list1 =
* [[List of cities and towns in KwaZulu-Natal|In KwaZulu-Natal]]
+
* [[List of cities and towns in the Eastern Cape|Eastern Cape]]
* [[List of cities and towns in Limpopo|In Limpopo]]
+
* [[List of cities and towns in the Free State|Free State]]
* [[List of cities and towns in Mpumalanga|In Mpumalanga]]
+
* [[List of cities and towns in Gauteng|Gauteng]]
* [[List of cities and towns in the North West (South Africa)|In the North West]]
+
* [[List of cities and towns in KwaZulu-Natal|KwaZulu-Natal]]
* [[List of cities and towns in the Northern Cape|In the Northern Cape]]
+
* [[List of cities and towns in Limpopo|Limpopo]]
* [[List of cities and towns in the Western Cape|In the Western Cape]]
+
* [[List of cities and towns in Mpumalanga|Mpumalanga]]
 +
* [[List of cities and towns in the North West (South Africa)|North West]]
 +
* [[List of cities and towns in the Northern Cape|Northern Cape]]
 +
* [[List of cities and towns in the Western Cape|Western Cape]]
 +
}}
 +
 
 
}}<noinclude>
 
}}<noinclude>
{{collapsible option}}
+
 
 +
{{collapsible option |statename=optional}}
 +
 
 
[[Category:South Africa subdivision templates| ]]
 
[[Category:South Africa subdivision templates| ]]
 
</noinclude>
 
</noinclude>

Revision as of 11:32, 27 March 2014

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Administrative divisions of South Africa|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Administrative divisions of South Africa|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Administrative divisions of South Africa|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.