Difference between revisions of "Template:English official language clickable map"

From blackwiki
Jump to navigation Jump to search
(moved sections consisting of groupname-then-list together)
(Large template, so converted to Navbox with collapsible sections)
Line 1: Line 1:
{{Navbox
+
{{Navbox with collapsible sections
 
| name = English official language clickable map
 
| name = English official language clickable map
| state = {{{state|autocollapse}}}
+
| state = {{{state|<noinclude>expanded</noinclude>}}}
 
| bodyclass = hlist
 
| bodyclass = hlist
 
| title = [[English language#Geographic distribution|English-speaking world]]
 
| title = [[English language#Geographic distribution|English-speaking world]]
| groupstyle = width:8.25em;
 
| liststyle = width:auto;
 
  
 
<!--------------------------------------------------------->
 
<!--------------------------------------------------------->
| list1 =
+
| state1 = expanded
 +
| content1 =
 
<center>
 
<center>
 
''Click on a coloured area to see an article about English in that country or region''
 
''Click on a coloured area to see an article about English in that country or region''
Line 79: Line 78:
  
 
<!--------------------------------------------------------->
 
<!--------------------------------------------------------->
| group2 = Articles
+
| sect2 = Further links
| list2 =
+
| state2 = collapsed
 +
| content2 =
 +
{{Navbox |child
 +
  | groupstyle = width:8.25em;
 +
  | liststyle = width:auto;
 +
 
 +
  | group1 = Articles
 +
  | list1 =
 
* [[Anglosphere]]
 
* [[Anglosphere]]
 
* [[History of the English language]]
 
* [[History of the English language]]
Line 86: Line 92:
 
* [[English in the Commonwealth of Nations]]
 
* [[English in the Commonwealth of Nations]]
  
| group3 = Lists
+
  | group2 = Lists
| list3style = text-align:left;color:darkblue;
+
  | list2style = text-align:left;color:darkblue;
| list3 =
+
  | list2 =
 
* [[List of countries by English-speaking population]]
 
* [[List of countries by English-speaking population]]
 
* [[List of countries where English is an official language]]
 
* [[List of countries where English is an official language]]
  
<!--------------------------------------------------------->
+
  | list3 =
| list4 =
+
  {{Navbox |child
{{Navbox |child
+
    | group1style = background:blue;
  | group1style = background:blue;
+
    | group1 = {{pad}}
  | group1 = {{pad}}
+
    | list1 =
  | list1 =
 
  
  {{Navbox |child
+
    {{Navbox |child
    | above =
+
      | above =
 
* '''Countries and territories where English is the national language or the native language of the majority'''
 
* '''Countries and territories where English is the national language or the native language of the majority'''
    | group1 = [[Languages of Africa|Africa]]
+
      | group1 = [[Languages of Africa|Africa]]
    | list1 =
+
      | list1 =
 
* ''[[Saint Helena]]''
 
* ''[[Saint Helena]]''
    | group2 = [[Anglo-America|Americas]]
+
      | group2 = [[Anglo-America|Americas]]
    | list2 =
+
      | list2 =
 
* ''[[Anguilla]]''
 
* ''[[Anguilla]]''
 
* [[Antigua and Barbuda]]
 
* [[Antigua and Barbuda]]
Line 133: Line 138:
 
* [[United States]]
 
* [[United States]]
 
* ''[[United States Virgin Islands]]''
 
* ''[[United States Virgin Islands]]''
    | group3 = [[English language in Europe|Europe]]
+
      | group3 = [[English language in Europe|Europe]]
    | list3 =
+
      | list3 =
 
* ''[[Guernsey]]''
 
* ''[[Guernsey]]''
 
* [[Republic of Ireland|Ireland]]
 
* [[Republic of Ireland|Ireland]]
Line 140: Line 145:
 
* ''[[Jersey]]''
 
* ''[[Jersey]]''
 
* [[United Kingdom]]
 
* [[United Kingdom]]
    | group4 = [[Languages of Oceania|Oceania]]
+
      | group4 = [[Languages of Oceania|Oceania]]
    | list4 =
+
      | list4 =
 
* [[Australia]]
 
* [[Australia]]
 
* [[New Zealand]]
 
* [[New Zealand]]
 
* ''[[Norfolk Island]]''
 
* ''[[Norfolk Island]]''
 
* ''[[Pitcairn Islands]]''
 
* ''[[Pitcairn Islands]]''
  }}
+
    }}
  
  | group2style = background:lightblue;
+
    | group2style = background:lightblue;
  | group2 = {{pad}}
+
    | group2 = {{pad}}
  | list2 =
+
    | list2 =
  
  {{Navbox |child
+
    {{Navbox |child
    | above =
+
      | above =
 
* '''Countries and territories where English is an official language, but not the majority first language'''
 
* '''Countries and territories where English is an official language, but not the majority first language'''
    | group1 = Africa
+
      | group1 = Africa
    | list1 =
+
      | list1 =
 
* [[Botswana]]
 
* [[Botswana]]
 
* [[Cameroon]]
 
* [[Cameroon]]
Line 181: Line 186:
 
* [[Zambia]]
 
* [[Zambia]]
 
* [[Zimbabwe]]
 
* [[Zimbabwe]]
    | group2 = Americas
+
      | group2 = Americas
    | list2 =
+
      | list2 =
 
* ''[[Puerto Rico]]''
 
* ''[[Puerto Rico]]''
    | group3 = [[Languages of Asia|Asia]]
+
      | group3 = [[Languages of Asia|Asia]]
    | list3 =
+
      | list3 =
 
* ''[[Christmas Island]]''
 
* ''[[Christmas Island]]''
 
* ''[[Cocos (Keeling) Islands]]''
 
* ''[[Cocos (Keeling) Islands]]''
Line 194: Line 199:
 
* [[Philippines]]
 
* [[Philippines]]
 
* [[Singapore]]
 
* [[Singapore]]
    | group4 = [[English language in Europe|Europe]]
+
      | group4 = Europe
    | list4 =
+
      | list4 =
 
* ''[[Gibraltar]]''
 
* ''[[Gibraltar]]''
 
* [[Malta]]
 
* [[Malta]]
    | group5 = Oceania
+
      | group5 = Oceania
    | list5 =
+
      | list5 =
 
* ''[[American Samoa]]''
 
* ''[[American Samoa]]''
 
* [[Cook Islands]]
 
* [[Cook Islands]]
Line 217: Line 222:
 
* [[Tuvalu]]
 
* [[Tuvalu]]
 
* [[Vanuatu]]
 
* [[Vanuatu]]
 +
    }}
 
   }}
 
   }}
}}
 
  
 
| below = [[Dependent territory|Dependencies]] shown in ''italics''.
 
| below = [[Dependent territory|Dependencies]] shown in ''italics''.
 +
 +
}}
  
 
}}<noinclude>
 
}}<noinclude>

Revision as of 12:39, 16 January 2014

Template:Navbox with collapsible sections

50px Template documentation[view] [edit] [history] [purge]

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{English official language clickable map|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{English official language clickable map|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{English official language clickable map|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.

The Anglophone states/English official language clickable map template is an ongoing work-in-progress. While many improvements have been made, including the merge with the Anglophone states template, there is still much work to be done. Any and all help is very greatly appreciated!