Difference between revisions of "Template:Area code list"

From blackwiki
Jump to navigation Jump to search
blackwiki>Rfc1394
(adjust unroll)
m (47 revisions imported)
 
(41 intermediate revisions by 28 users not shown)
Line 1: Line 1:
{{Navbox generic
+
{{Navbox
|name       = Area code list
+
| name     = Area code list
|state     = expanded
+
| state     = {{{state|uncollapsed}}}
|titlestyle = background:#ccccff;
+
| title     = [[List of North American Numbering Plan area codes|Lists]] of [[Telephone numbering plan|area codes]] in the [[North American Numbering Plan]]
|title     = [[List of NANP area codes|Lists]] of [[area codes]] in the [[North American Numbering Plan]]
+
| listclass = hlist
<!-- Note to editors: if a state/province/country has only one area code, use that rather than creating a 'List of' page; if the state (say, 'Winnemac' [See Arrowmith by Sinclair Lewis]) has more than one, then there should be a 'List of Winnemac Area codes' page -->
+
| group1 = Canada
|group1 = Canada
+
| list1  =
|list1  =  <div>
+
* [[List of Alberta area codes|Alberta]]
{{nowrap|[[List of Alberta area codes|Alberta]] {{!}}}}
+
* [[List of British Columbia area codes|British Columbia]]
{{nowrap|[[List of British Columbia area codes|British Columbia]] {{!}}}}
+
* <!-- [[List of Manitoba area codes|Manitoba]] -->[[Area codes 204 and 431|Manitoba]]
<!-- {{nowrap|[[List of Manitoba area codes|Manitoba]] -->{{nowrap|[[Area code 204|Manitoba]] {{!}}}}
+
* <!-- [[List of New Brunswick area codes|New Brunswick]] -->[[Area code 506|New Brunswick]]
<!-- {{nowrap|[[List of New Brunswick area codes|New Brunswick]] -->{{nowrap|[[Area code 506|New Brunswick]] {{!}}}}
+
* <!-- [[List of Newfoundland and Labrador area codes|Newfoundland and Labrador]] -->[[Area code 709|Newfoundland and Labrador]]
<!-- {{nowrap|[[List of Newfoundland and Labrador area codes|Newfoundland and Labrador]] -->
+
* <!-- [[List of Northwest Territories area codes|Northwest Territories]] -->[[Area code 867|Northwest Territories]]
{{nowrap|[[Area code 709|Newfoundland and Labrador]] {{!}}}}
+
* <!-- [[List of Nova Scotia area codes|Nova Scotia]] -->[[Area codes 902 and 782|Nova Scotia]]
<!-- {{nowrap|[[List of Northwest Territories area codes|Northwest Territories]] -->
+
* <!-- [[List of Nunavut area codes|Nunavut]] -->[[Area code 867|Nunavut]]
{{nowrap|[[Area code 867|Northwest Territories]] {{!}}}}
+
* [[List of Ontario area codes|Ontario]]
<!-- {{nowrap|[[List of Nova Scotia area codes|Nova Scotia]] -->{{nowrap|[[Area code 902|Nova Scotia]] {{!}}}}
+
* <!-- [[List of Prince Edward Island area codes|Prince Edward Island]] -->[[Area codes 902 and 782|Prince Edward Island]]
<!-- {{nowrap|[[List of Nunavut area codes|Nunavut]] -->{{nowrap|[[Area code 867|Nunavut]] {{!}}}}
+
* [[List of Quebec area codes|Quebec]]
{{nowrap|[[List of Ontario area codes|Ontario]] {{!}}}}
+
* <!-- [[List of Saskatchewan area codes|Saskatchewan]] -->[[Area codes 306 and 639|Saskatchewan]]
<!-- {{nowrap|[[List of Prince Edward Island area codes|Prince Edward Island]] -->
+
* <!-- [[List of Yukon Territory area codes|Yukon]] -->[[Area code 867|Yukon]]
{{nowrap|[[Area code 902|Prince Edward Island]]  {{!}}}}
+
| group2 = [[Area codes in the Caribbean|Caribbean]]  
{{nowrap|[[List of Quebec area codes|Quebec]] {{!}}}}
+
| list2 =
<!-- {{nowrap|[[List of Saskatchewan area codes|Saskatchewan]] -->{{nowrap|[[Area code 306|Saskatchewan]] {{!}}}}
+
* [[Area code 264|Anguilla]]
<!-- {{nowrap|[[List of Yukon Territory area codes|Yukon Territory]] -->{{nowrap|[[Area code 867|Yukon Territory]]}}
+
* <!-- [[List of Antigua and Barbuda area codes   -->[[Area code 268|Antigua and Barbuda]]
</div>
+
* <!-- [[List of Bahamas area codes|Bahamas]]   -->[[Area code 242|Bahamas]]
|group2 = [[Area codes in the Caribbean|Caribbean]] and U.S. Territories
+
* <!-- [[List of Barbados area codes|Barbados]] -->[[Area code 246|Barbados]]
|list2 = <div>
+
* <!-- [[List of Bermuda area codes|Bermuda]]  -->[[Area code 441|Bermuda]]
{{nowrap|[[List of American Samoa area codes|American Samoa]] {{!}}}}
+
* <!-- [[List of British Virgin Islands area codes -->[[Area code 284|British Virgin Islands]]
<!-- {{nowrap|[[List of Anguilla area codes|Anguilla]]}} -->{{nowrap|[[Area code 264|Anguilla]] {{!}}}}
+
* <!-- [[List of Cayman Islands area codes       -->[[Area code 345|Cayman Islands]]
<!-- {{nowrap|[[List of Antigua and Barbuda area codes|Antigua and Barbuda]]}} -->
+
* <!-- [[List of Dominica area codes|Dominica]] -->[[Area code 767|Dominica]]
{{nowrap|[[Area code 268|Antigua and Barbuda]] {{!}}}}
+
* [[Telephone numbers in the Dominican Republic|Dominican Republic]]
<!-- {{nowrap|[[List of Bahamas area codes|Bahamas]]}} -->{{nowrap|[[Area code 242|Bahamas]] {{!}}}}
+
* <!-- [[List of Grenada area codes|Grenada]]   -->[[Area code 473|Grenada]]
<!-- {{nowrap|[[List of Barbados area codes|Barbados]]}} -->{{nowrap|[[Area code 246|Barbados]] {{!}}}}
+
* <!-- [[List of Jamaica area codes|Jamaica]]   -->[[Area codes 876 and 658|Jamaica]]
<!-- {{nowrap|[[List of Bermuda area codes|Bermuda]]}} -->{{nowrap|[[Area code 441|Bermuda]] {{!}}}}
+
* <!-- [[List of Montserrat area codes           -->[[Area code 664|Montserrat]]
<!-- {{nowrap|[[List of British Virgin Islands area codes|British Virgin Islands]]}} -->
+
* [[Telephone numbers in Puerto Rico|Puerto Rico]]
{{nowrap|[[Area code 284|British Virgin Islands]] {{!}}}}
+
* <!-- [[List of Saint Kitts and Nevis area codes -->[[Area code 869|Saint Kitts and Nevis]]
<!-- {{nowrap|[[List of Cayman Islands area codes|Cayman Islands]]}} -->{{nowrap|[[Area code 345|Cayman Islands]] {{!}}}}
+
* <!-- [[List of Saint Lucia area codes           -->[[Area code 758|Saint Lucia]]
<!-- {{nowrap|[[List of Dominica area codes|Dominica]]}} -->{{nowrap|[[Area code 767|Dominica]] {{!}}}}
+
* <!-- [[List of Saint Vincent and the Grenadines -->[[Area code 784|Saint Vincent and the Grenadines]]
{{nowrap|[[List of Dominican Republic area codes|Dominican Republic]] {{!}}}}
+
* [[Area code 721|Sint Maarten]]
<!-- {{nowrap|[[List of Grenada area codes|Grenada]]}} -->{{nowrap|[[Area code 473|Grenada]] {{!}}}}
+
* <!-- [[List of Trinidad and Tobago area codes   -->[[Area code 868|Trinidad and Tobago]]
{{nowrap|[[List of Guam area codes|Guam]] {{!}}}}
+
* <!-- [[List of Turks and Caicos Islands area   -->[[Area code 649|Turks and Caicos Islands]]
<!-- {{nowrap|[[List of Jamaica area codes|Jamaica]]}} -->{{nowrap|[[Area code 876|Jamaica]] {{!}}}}
+
* <!-- [[List of U.S. Virgin Islands area codes   -->[[Area code 340|U.S. Virgin Islands]]
<!-- {{nowrap|[[List of Montserrat area codes|Montserrat]]}} -->{{nowrap|[[Area code 664|Montserrat]] {{!}}}
+
| group3 = [[Oceania]]  
{{nowrap|[[List of Northern Mariana Islands area codes|Northern Mariana Islands]] {{!}}}}
+
| list3  =
{{nowrap|[[List of Puerto Rico area codes|Puerto Rico]] {{!}}}}
+
* [[Area code 684|American Samoa]]
<!-- {{nowrap|[[List of Saint Kitts and Nevis area codes|Saint Kitts and Nevis]]}} -->
+
* [[Area code 670|Commonwealth of the Northern Marianas]]
{{nowrap|[[Area code 869|Saint Kitts and Nevis]] {{!}}}}
+
* [[Area code 671|Guam]]
<!-- {{nowrap|[[List of Saint Lucia area codes|Saint Lucia]]}} -->{{nowrap|[[Area code 758|Saint Lucia]] {{!}}}}
+
| group4 = United States
<!-- {{nowrap|[[List of Saint Vincent and the Grenadines area codes|Saint Vincent and the Grenadines]]}} -->
+
| list4  =
{{nowrap|[[Area code 784|Saint Vincent and the Grenadines]] {{!}}}}
+
* [[List of Alabama area codes|Alabama]]
<!-- {{nowrap|[[List of Trinidad and Tobago area codes|Trinidad and Tobago]]}} -->
+
* <!-- [[List of Alaska area codes|Alaska]] -->[[Area code 907|Alaska]]
{{nowrap|[[Area code 868|Trinidad and Tobago]] {{!}}}}
+
* [[List of Arizona area codes|Arizona]]
<!-- {{nowrap|[[List of Turks and Caicos Islands area codes|Turks and Caicos Islands]]}} -->
+
* [[List of Arkansas area codes|Arkansas]]
{{nowrap|[[Area code 649|Turks and Caicos Islands]] {{!}}}}
+
* [[List of California area codes|California]]
<!-- {{nowrap|[[List of U.S. Virgin Islands area codes|U.S. Virgin Islands]]}} -->
+
* [[List of Colorado area codes|Colorado]]
{{nowrap|[[Area code 340|U.S. Virgin Islands]]  
+
* [[List of Connecticut area codes|Connecticut]]
</div>
+
* <!-- [[List of Delaware area codes|Delaware]] -->[[Area code 302|Delaware]]
|group3 = United States
+
* <!-- [[List of District of Columbia area codes|District of Columbia]] -->[[Area code 202|District of Columbia]]
|list3  = <div>
+
* [[List of Florida area codes|Florida]]
{{nowrap|[[List of Alabama area codes|Alabama]] {{!}}}}
+
* [[List of Georgia area codes|Georgia]]
<!-- {{nowrap|[[List of Alaska area codes|Alaska]] -->{{nowrap|[[Area code 907|Alaska]] {{!}}}}
+
* <!-- [[List of Hawaii area codes|Hawaii]]-->[[Area code 808|Hawaii]]
{{nowrap|[[List of Arizona area codes|Arizona]] {{!}}}}
+
* <!-- [[List of Idaho area codes|Idaho]]-->[[Area codes 208 and 986|Idaho]]
{{nowrap|[[List of Arkansas area codes|Arkansas]] {{!}}}}
+
* [[List of Illinois area codes|Illinois]]
{{nowrap|[[List of California area codes|California]] {{!}}}}
+
* [[List of Indiana area codes|Indiana]]
{{nowrap|[[List of Colorado area codes|Colorado]] {{!}}}}
+
* [[List of Iowa area codes|Iowa]]
{{nowrap|[[List of Connecticut area codes|Connecticut]] {{!}}}}
+
* [[List of Kansas area codes|Kansas]]
<!-- {{nowrap|[[List of Delaware area codes|Delaware]] -->{{nowrap|[[Area code 302|Delaware]] {{!}}}}
+
* [[List of Kentucky area codes|Kentucky]]
<!-- {{nowrap|[[List of District of Columbia area codes|District of Columbia]] -->
+
* [[List of Louisiana area codes|Louisiana]]
{{nowrap|[[Area code 202|District of Columbia]] {{!}}}}
+
* <!-- [[List of Maine area codes|Maine]] -->[[Area code 207|Maine]]
{{nowrap|[[List of Florida area codes|Florida]] {{!}}}}
+
* [[List of Maryland area codes|Maryland]]
{{nowrap|[[List of Georgia area codes|Georgia]]   {{!}}}}
+
* [[List of Massachusetts area codes|Massachusetts]]
<!-- {{nowrap|[[List of Hawaii area codes|Hawaii]] {{!}}}} -->{{nowrap|[[Area code 808|Hawaii]] {{!}}}}
+
* [[List of Michigan area codes|Michigan]]
<!-- {{nowrap|[[List of Idaho area codes|Idaho]] {{!}}}} -->{{nowrap|[[Area code 208|Idaho]] {{!}}}}
+
* [[List of Minnesota area codes|Minnesota]]
{{nowrap|[[List of Illinois area codes|Illinois]] {{!}}}}
+
* [[List of Mississippi area codes|Mississippi]]
{{nowrap|[[List of Indiana area codes|Indiana]] {{!}}}}
+
* [[List of Missouri area codes|Missouri]]
{{nowrap|[[List of Iowa area codes|Iowa]] {{!}}}}
+
* <!-- [[List of Montana area codes|Montana]] -->[[Area code 406|Montana]]
{{nowrap|[[List of Kansas area codes|Kansas]] {{!}}}}
+
* [[List of Nebraska area codes|Nebraska]]
{{nowrap|[[List of Kentucky area codes|Kentucky]] {{!}}}}
+
* [[List of Nevada area codes|Nevada]]
{{nowrap|[[List of Louisiana area codes|Louisiana]] {{!}}}}
+
* <!-- [[List of New Hampshire area codes|New Hampshire]] -->[[Area code 603|New Hampshire]]
<!-- {{nowrap|[[List of Maine area codes|Maine]] {{!}}}} -->{{nowrap|[[Area code 207|Maine]] {{!}}}}
+
* [[List of New Jersey area codes|New Jersey]]
{{nowrap|[[List of Maryland area codes|Maryland]] {{!}}}}
+
* [[List of New Mexico area codes|New Mexico]]
{{nowrap|[[List of Massachusetts area codes|Massachusetts]] {{!}}}}
+
* [[List of New York area codes|New York]]
{{nowrap|[[List of Michigan area codes|Michigan]] {{!}}}}
+
* [[List of North Carolina area codes|North Carolina]]
{{nowrap|[[List of Minnesota area codes|Minnesota]] {{!}}}}
+
* <!-- [[List of North Dakota area codes|North Dakota]] -->[[Area code 701|North Dakota]]
{{nowrap|[[List of Mississippi area codes|Mississippi]] {{!}}}}
+
* [[List of Ohio area codes|Ohio]]
{{nowrap|[[List of Missouri area codes|Missouri]] {{!}}}}
+
* [[List of Oklahoma area codes|Oklahoma]]
<!-- {{nowrap|[[List of Montana area codes|Montana]] -->{{nowrap|[[Area code 406|Montana]] {{!}}}}
+
* [[List of Oregon area codes|Oregon]]
{{nowrap|[[List of Nebraska area codes|Nebraska]] {{!}}}}
+
* [[List of Pennsylvania area codes|Pennsylvania]]
{{nowrap|[[List of Nevada area codes|Nevada]] {{!}}}}
+
* <!-- [[List of Rhode Island area codes|Rhode Island]] -->[[Area code 401|Rhode Island]]
{{nowrap|[[List of New Hampshire area codes|New Hampshire]] {{!}}}}
+
* [[List of South Carolina area codes|South Carolina]]
{{nowrap|[[Area code 603|New Hampshire]] {{!}}}}
+
* <!-- [[List of South Dakota area codes|South Dakota]] -->[[Area code 605|South Dakota]]
{{nowrap|[[List of New Jersey area codes|New Jersey]] {{!}}}}
+
* [[List of Tennessee area codes|Tennessee]]
{{nowrap|[[List of New Mexico area codes|New Mexico]] {{!}}}}
+
* [[List of Texas area codes|Texas]]
{{nowrap|[[List of New York area codes|New York]]  {{!}}}}
+
* [[List of Utah area codes|Utah]]
{{nowrap|[[List of North Carolina area codes|North Carolina]]  {{!}}}}
+
* <!-- [[List of U.S. Government area codes]]   -->[[Area code 710|U.S. Government]]
<!--{{nowrap|[[List of North Dakota area codes|North Dakota]] -->{{nowrap|[[Area code 701|North Dakota]] {{!}}}}
+
* <!-- [[List of Vermont area codes|Vermont]] -->[[Area code 802|Vermont]]
{{nowrap|[[List of Ohio area codes|Ohio]] {{!}}}}
+
* [[List of Virginia area codes|Virginia]]
{{nowrap|[[List of Oklahoma area codes|Oklahoma]] {{!}}}}
+
* [[List of Washington area codes|Washington]]
{{nowrap|[[List of Oregon area codes|Oregon]] {{!}}}}
+
* <!-- [[List of West Virginia area codes|West Virginia]] -->[[Area codes 304 and 681|West Virginia]]
{{nowrap|[[List of Pennsylvania area codes|Pennsylvania]] {{!}}}}
+
* [[List of Wisconsin area codes|Wisconsin]]
<!-- {{nowrap|[[List of Rhode Island area codes|Rhode Island]] -->{{nowrap|[[Area code 401|Rhode Island]]  {{!}}}}
+
* <!-- [[List of Wyoming area codes|Wyoming]]  -->[[Area code 307|Wyoming]]
{{nowrap|[[List of South Carolina area codes|South Carolina]] {{!}}}}
+
|group5 = Former
{{nowrap|[[List of South Dakota area codes|South Dakota]]  {{!}}}}
+
| list5 =
{{nowrap|[[Area code 605|South Dakota]] {{!}}}}
+
* [[Telephone numbers in Belize|Belize]]
{{nowrap|[[List of Tennessee area codes|Tennessee]] {{!}}}}
+
* [[Telephone numbers in Costa Rica|Costa Rica]]
{{nowrap|[[List of Texas area codes|Texas]]  {{!}}}}
+
* [[Telephone numbers in Cuba|Cuba]]
{{nowrap|[[List of Utah area codes|Utah]]  {{!}}}}
+
* [[Telephone numbers in El Salvador|El Salvador]]
<!-- {{nowrap|[[List of Vermont area codes|Vermont]] -->{{nowrap|[[Area code 802|Vermont]]  {{!}}}}
+
* [[Telephone numbers in Guatemala|Guatemala]]
{{nowrap|[[List of Virginia area codes|Virginia]]  {{!}}}}
+
* [[Telephone numbers in Haiti|Haiti]]
{{nowrap|[[List of Washington area codes|Washington]]  {{!}}}}
+
* [[Telephone numbers in Honduras|Honduras]]
{{nowrap|[[List of West Virginia area codes|West Virginia]]  {{!}}}}
+
* [[Telephone numbers in Mexico|Mexico]]
{{nowrap|[[Area code 304|West Virginia]]  {{!}}}}
+
* [[Telephone numbers in Nicaragua|Nicaragua]]
{{nowrap|[[List of Wisconsin area codes|Wisconsin]]  {{!}}}}
+
* [[Telephone numbers in Panama|Panama]]
<!-- {{nowrap|[[List of Wyoming area codes|Wyoming]] -->{{nowrap|[[Area code 307|Wyoming]]  
+
}}<noinclude>
</div>
+
{{collapsible option}}
}}
+
==Usage==
 +
This macro is placed on the primary listing page for all the area codes in each state or country in the [[North American Numbering Plan]]. If there is more than one area code for a state, it should link the state to a page such as '''<nowiki>[[</nowiki>List of Idaho area codes|Idaho]]'''. Where there is a page listing all area codes for that state or country, each area code listed on it should point back to the state's area code list page. If there is only one area code for the country or state, then it is placed on that area code page, e.g. '''<nowiki>[[</nowiki>Area code 302|Delaware]]'''.
 +
 
 +
[[Category:area code templates|Area code list]]
 +
</noinclude>

Latest revision as of 13:12, 23 October 2020

Initial visibility: currently defaults to autocollapse

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

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

Usage

This macro is placed on the primary listing page for all the area codes in each state or country in the North American Numbering Plan. If there is more than one area code for a state, it should link the state to a page such as [[List of Idaho area codes|Idaho]]. Where there is a page listing all area codes for that state or country, each area code listed on it should point back to the state's area code list page. If there is only one area code for the country or state, then it is placed on that area code page, e.g. [[Area code 302|Delaware]].