Difference between revisions of "Template:Area code list"

From blackwiki
Jump to navigation Jump to search
blackwiki>Rfc1394
m (Err in Yukon)
m (47 revisions imported)
 
(39 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]] -->[[Area code 306|Saskatchewan]] {{!}}}}
+
* [[Area code 264|Anguilla]]
{{nowrap|<!-- [[List of Yukon Territory area codes|Yukon Territory]] -->[[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]]}} -->[[Area code 264|Anguilla]] {{!}}}}
+
* <!-- [[List of Cayman Islands area codes       -->[[Area code 345|Cayman Islands]]
{{nowrap|<!-- [[List of Antigua and Barbuda area codes  -->[[Area code 268|Antigua and Barbuda]] {{!}}}}
+
* <!-- [[List of Dominica area codes|Dominica]] -->[[Area code 767|Dominica]]
{{nowrap|<!-- [[List of Bahamas area codes|Bahamas]]}}   -->[[Area code 242|Bahamas]] {{!}}}}
+
* [[Telephone numbers in the Dominican Republic|Dominican Republic]]
{{nowrap|<!-- [[List of Barbados area codes|Barbados]]}} -->[[Area code 246|Barbados]] {{!}}}}
+
* <!-- [[List of Grenada area codes|Grenada]]   -->[[Area code 473|Grenada]]
{{nowrap|<!-- [[List of Bermuda area codes|Bermuda]]}}  -->[[Area code 441|Bermuda]] {{!}}}}
+
* <!-- [[List of Jamaica area codes|Jamaica]]  -->[[Area codes 876 and 658|Jamaica]]
{{nowrap|<!-- [[List of British Virgin Islands area codes -->[[Area code 284|British Virgin Islands]] {{!}}}}
+
* <!-- [[List of Montserrat area codes           -->[[Area code 664|Montserrat]]
{{nowrap|<!-- [[List of Cayman Islands area codes        -->[[Area code 345|Cayman Islands]] {{!}}}}
+
* [[Telephone numbers in Puerto Rico|Puerto Rico]]
{{nowrap|<!-- [[List of Dominica area codes|Dominica]]}} -->[[Area code 767|Dominica]] {{!}}}}
+
* <!-- [[List of Saint Kitts and Nevis area codes -->[[Area code 869|Saint Kitts and Nevis]]
{{nowrap|[[List of Dominican Republic area codes|Dominican Republic]] {{!}}}}
+
* <!-- [[List of Saint Lucia area codes           -->[[Area code 758|Saint Lucia]]
{{nowrap|<!-- [[List of Grenada area codes|Grenada]]}}   -->[[Area code 473|Grenada]] {{!}}}}
+
* <!-- [[List of Saint Vincent and the Grenadines -->[[Area code 784|Saint Vincent and the Grenadines]]
{{nowrap|[[List of Guam area codes|Guam]] {{!}}}}
+
* [[Area code 721|Sint Maarten]]
{{nowrap|<!-- [[List of Jamaica area codes|Jamaica]]}}  -->[[Area code 876|Jamaica]] {{!}}}}
+
* <!-- [[List of Trinidad and Tobago area codes   -->[[Area code 868|Trinidad and Tobago]]
{{nowrap|<!-- [[List of Montserrat area codes           -->[[Area code 664|Montserrat]] {{!}}}}
+
* <!-- [[List of Turks and Caicos Islands area   -->[[Area code 649|Turks and Caicos Islands]]
{{nowrap|[[List of Northern Mariana Islands area codes|Northern Mariana Islands]] {{!}}}}
+
* <!-- [[List of U.S. Virgin Islands area codes  -->[[Area code 340|U.S. Virgin Islands]]
{{nowrap|[[List of Puerto Rico area codes|Puerto Rico]] {{!}}}}
+
| group3 = [[Oceania]]  
{{nowrap|<!-- [[List of Saint Kitts and Nevis area codes -->[[Area code 869|Saint Kitts and Nevis]] {{!}}}}
+
| list3  =
{{nowrap|<!-- [[List of Saint Lucia area codes           -->[[Area code 758|Saint Lucia]] {{!}}}}
+
* [[Area code 684|American Samoa]]
{{nowrap|<!-- [[List of Saint Vincent and the Grenadines -->[[Area code 784|Saint Vincent and the Grenadines]] {{!}}}}
+
* [[Area code 670|Commonwealth of the Northern Marianas]]
{{nowrap|<!-- [[List of Trinidad and Tobago area codes   -->[[Area code 868|Trinidad and Tobago]] {{!}}}}
+
* [[Area code 671|Guam]]
{{nowrap|<!-- [[List of Turks and Caicos Islands area   -->[[Area code 649|Turks and Caicos Islands]] {{!}}}}
+
| group4 = United States
{{nowrap|<!-- [[List of U.S. Virgin Islands area codes   -->[[Area code 340|U.S. Virgin Islands]] }}
+
| list4  =
</div>
+
* [[List of Alabama area codes|Alabama]]
|group3 = United States
+
* <!-- [[List of Alaska area codes|Alaska]] -->[[Area code 907|Alaska]]
|list3  = <div>
+
* [[List of Arizona area codes|Arizona]]
{{nowrap|[[List of Alabama area codes|Alabama]] {{!}}}}
+
* [[List of Arkansas area codes|Arkansas]]
{{nowrap|<!-- [[List of Alaska area codes|Alaska]] -->[[Area code 907|Alaska]] {{!}}}}
+
* [[List of California area codes|California]]
{{nowrap|[[List of Arizona area codes|Arizona]] {{!}}}}
+
* [[List of Colorado area codes|Colorado]]
{{nowrap|[[List of Arkansas area codes|Arkansas]] {{!}}}}
+
* [[List of Connecticut area codes|Connecticut]]
{{nowrap|[[List of California area codes|California]] {{!}}}}
+
* <!-- [[List of Delaware area codes|Delaware]] -->[[Area code 302|Delaware]]
{{nowrap|[[List of Colorado area codes|Colorado]] {{!}}}}
+
* <!-- [[List of District of Columbia area codes|District of Columbia]] -->[[Area code 202|District of Columbia]]
{{nowrap|[[List of Connecticut area codes|Connecticut]] {{!}}}}
+
* [[List of Florida area codes|Florida]]
{{nowrap|<!-- [[List of Delaware area codes|Delaware]] -->[[Area code 302|Delaware]] {{!}}}}
+
* [[List of Georgia area codes|Georgia]]
{{nowrap|<!-- [[List of District of Columbia area codes|District of Columbia]] -->[[Area code 202|District of Columbia]] {{!}}}}
+
* <!-- [[List of Hawaii area codes|Hawaii]]-->[[Area code 808|Hawaii]]
{{nowrap|[[List of Florida area codes|Florida]] {{!}}}}
+
* <!-- [[List of Idaho area codes|Idaho]]-->[[Area codes 208 and 986|Idaho]]
{{nowrap|[[List of Georgia area codes|Georgia]] {{!}}}}
+
* [[List of Illinois area codes|Illinois]]
{{nowrap|<!-- [[List of Hawaii area codes|Hawaii]]-->[[Area code 808|Hawaii]] {{!}}}}
+
* [[List of Indiana area codes|Indiana]]
{{nowrap|<!-- [[List of Idaho area codes|Idaho]]-->[[Area code 208|Idaho]] {{!}}}}
+
* [[List of Iowa area codes|Iowa]]
{{nowrap|[[List of Illinois area codes|Illinois]] {{!}}}}
+
* [[List of Kansas area codes|Kansas]]
{{nowrap|[[List of Indiana area codes|Indiana]] {{!}}}}
+
* [[List of Kentucky area codes|Kentucky]]
{{nowrap|[[List of Iowa area codes|Iowa]] {{!}}}}
+
* [[List of Louisiana area codes|Louisiana]]
{{nowrap|[[List of Kansas area codes|Kansas]] {{!}}}}
+
* <!-- [[List of Maine area codes|Maine]] -->[[Area code 207|Maine]]
{{nowrap|[[List of Kentucky area codes|Kentucky]] {{!}}}}
+
* [[List of Maryland area codes|Maryland]]
{{nowrap|[[List of Louisiana area codes|Louisiana]] {{!}}}}
+
* [[List of Massachusetts area codes|Massachusetts]]
{{nowrap|<!-- [[List of Maine area codes|Maine]] -->[[Area code 207|Maine]] {{!}}}}
+
* [[List of Michigan area codes|Michigan]]
{{nowrap|[[List of Maryland area codes|Maryland]] {{!}}}}
+
* [[List of Minnesota area codes|Minnesota]]
{{nowrap|[[List of Massachusetts area codes|Massachusetts]] {{!}}}}
+
* [[List of Mississippi area codes|Mississippi]]
{{nowrap|[[List of Michigan area codes|Michigan]] {{!}}}}
+
* [[List of Missouri area codes|Missouri]]
{{nowrap|[[List of Minnesota area codes|Minnesota]] {{!}}}}
+
* <!-- [[List of Montana area codes|Montana]] -->[[Area code 406|Montana]]
{{nowrap|[[List of Mississippi area codes|Mississippi]] {{!}}}}
+
* [[List of Nebraska area codes|Nebraska]]
{{nowrap|[[List of Missouri area codes|Missouri]] {{!}}}}
+
* [[List of Nevada area codes|Nevada]]
{{nowrap|<!-- [[List of Montana area codes|Montana]] -->[[Area code 406|Montana]] {{!}}}}
+
* <!-- [[List of New Hampshire area codes|New Hampshire]] -->[[Area code 603|New Hampshire]]
{{nowrap|[[List of Nebraska area codes|Nebraska]] {{!}}}}
+
* [[List of New Jersey area codes|New Jersey]]
{{nowrap|[[List of Nevada area codes|Nevada]] {{!}}}}
+
* [[List of New Mexico area codes|New Mexico]]
{{nowrap|<!-- [[List of New Hampshire area codes|New Hampshire]] -->[[Area code 603|New Hampshire]] {{!}}}}
+
* [[List of New York area codes|New York]]
{{nowrap|[[List of New Jersey area codes|New Jersey]] {{!}}}}
+
* [[List of North Carolina area codes|North Carolina]]
{{nowrap|[[List of New Mexico area codes|New Mexico]]  {{!}}}}
+
* <!-- [[List of North Dakota area codes|North Dakota]] -->[[Area code 701|North Dakota]]
{{nowrap|[[List of New York area codes|New York]]  {{!}}}}
+
* [[List of Ohio area codes|Ohio]]
{{nowrap|[[List of North Carolina area codes|North Carolina]] {{!}}}}
+
* [[List of Oklahoma area codes|Oklahoma]]
{{nowrap|<!-- [[List of North Dakota area codes|North Dakota]]}} -->[[Area code 701|North Dakota]] {{!}}}}
+
* [[List of Oregon area codes|Oregon]]
{{nowrap|[[List of Ohio area codes|Ohio]] {{!}}}}
+
* [[List of Pennsylvania area codes|Pennsylvania]]
{{nowrap|[[List of Oklahoma area codes|Oklahoma]] {{!}}}}
+
* <!-- [[List of Rhode Island area codes|Rhode Island]] -->[[Area code 401|Rhode Island]]
{{nowrap|[[List of Oregon area codes|Oregon]] {{!}}}}
+
* [[List of South Carolina area codes|South Carolina]]
{{nowrap|[[List of Pennsylvania area codes|Pennsylvania]] {{!}}}}
+
* <!-- [[List of South Dakota area codes|South Dakota]] -->[[Area code 605|South Dakota]]
{{nowrap|<!-- [[List of Rhode Island area codes|Rhode Island]]}} -->[[Area code 401|Rhode Island]] {{!}}}}
+
* [[List of Tennessee area codes|Tennessee]]
{{nowrap|[[List of South Carolina area codes|South Carolina]]  {{!}}}}
+
* [[List of Texas area codes|Texas]]
{{nowrap|<!-- [[List of South Dakota area codes|South Dakota]]}} -->[[Area code 605|South Dakota]] {{!}}}}
+
* [[List of Utah area codes|Utah]]
{{nowrap|[[List of Tennessee area codes|Tennessee]] {{!}}}}
+
* <!-- [[List of U.S. Government area codes]]  -->[[Area code 710|U.S. Government]]
{{nowrap|[[List of Texas area codes|Texas]]  {{!}}}}
+
* <!-- [[List of Vermont area codes|Vermont]] -->[[Area code 802|Vermont]]
{{nowrap|[[List of Utah area codes|Utah]]  {{!}}}}
+
* [[List of Virginia area codes|Virginia]]
{{nowrap|<!-- [[List of Vermont area codes|Vermont]]}} -->[[Area code 802|Vermont]]  {{!}}}}
+
* [[List of Washington area codes|Washington]]
{{nowrap|[[List of Virginia area codes|Virginia]]  {{!}}}}
+
* <!-- [[List of West Virginia area codes|West Virginia]] -->[[Area codes 304 and 681|West Virginia]]
{{nowrap|[[List of Washington area codes|Washington]]  {{!}}}}
+
* [[List of Wisconsin area codes|Wisconsin]]
{{nowrap|<!-- [[List of West Virginia area codes|West Virginia]]}} -->[[Area code 304|West Virginia]]  {{!}}}}
+
* <!-- [[List of Wyoming area codes|Wyoming]]  -->[[Area code 307|Wyoming]]
{{nowrap|[[List of Wisconsin area codes|Wisconsin]]  {{!}}}}
+
|group5 = Former
{{nowrap|<!-- [[List of Wyoming area codes|Wyoming]] }} -->[[Area code 307|Wyoming]] }}
+
| list5 =
</div>
+
* [[Telephone numbers in Belize|Belize]]
}}
+
* [[Telephone numbers in Costa Rica|Costa Rica]]
 +
* [[Telephone numbers in Cuba|Cuba]]
 +
* [[Telephone numbers in El Salvador|El Salvador]]
 +
* [[Telephone numbers in Guatemala|Guatemala]]
 +
* [[Telephone numbers in Haiti|Haiti]]
 +
* [[Telephone numbers in Honduras|Honduras]]
 +
* [[Telephone numbers in Mexico|Mexico]]
 +
* [[Telephone numbers in Nicaragua|Nicaragua]]
 +
* [[Telephone numbers in Panama|Panama]]
 +
}}<noinclude>
 +
{{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]].