Difference between revisions of "Template:Area code list"
m (47 revisions imported) |
|||
| (16 intermediate revisions by 14 users not shown) | |||
| Line 1: | Line 1: | ||
{{Navbox | {{Navbox | ||
| − | |name | + | | name = Area code list |
| − | |state | + | | state = {{{state|uncollapsed}}} |
| − | |title | + | | title = [[List of North American Numbering Plan area codes|Lists]] of [[Telephone numbering plan|area codes]] in the [[North American Numbering Plan]] |
| − | + | | listclass = hlist | |
| − | |group1 = Canada | + | | group1 = Canada |
| − | |list1 = | + | | list1 = |
| − | + | * [[List of Alberta area codes|Alberta]] | |
| − | + | * [[List of British Columbia area codes|British Columbia]] | |
| − | <!-- | + | * <!-- [[List of Manitoba area codes|Manitoba]] -->[[Area codes 204 and 431|Manitoba]] |
| − | <!-- | + | * <!-- [[List of New Brunswick area codes|New Brunswick]] -->[[Area code 506|New Brunswick]] |
| − | <!-- | + | * <!-- [[List of Newfoundland and Labrador area codes|Newfoundland and Labrador]] -->[[Area code 709|Newfoundland and Labrador]] |
| − | + | * <!-- [[List of Northwest Territories area codes|Northwest Territories]] -->[[Area code 867|Northwest Territories]] | |
| − | + | * <!-- [[List of Nova Scotia area codes|Nova Scotia]] -->[[Area codes 902 and 782|Nova Scotia]] | |
| − | + | * <!-- [[List of Nunavut area codes|Nunavut]] -->[[Area code 867|Nunavut]] | |
| − | <!-- | + | * [[List of Ontario area codes|Ontario]] |
| − | <!-- | + | * <!-- [[List of Prince Edward Island area codes|Prince Edward Island]] -->[[Area codes 902 and 782|Prince Edward Island]] |
| − | + | * [[List of Quebec area codes|Quebec]] | |
| − | <!-- | + | * <!-- [[List of Saskatchewan area codes|Saskatchewan]] -->[[Area codes 306 and 639|Saskatchewan]] |
| − | + | * <!-- [[List of Yukon Territory area codes|Yukon]] -->[[Area code 867|Yukon]] | |
| − | + | | group2 = [[Area codes in the Caribbean|Caribbean]] | |
| − | + | | list2 = | |
| − | + | * [[Area code 264|Anguilla]] | |
| − | + | * <!-- [[List of Antigua and Barbuda area codes -->[[Area code 268|Antigua and Barbuda]] | |
| − | |group2 = [[Area codes in the Caribbean|Caribbean]] | + | * <!-- [[List of Bahamas area codes|Bahamas]] -->[[Area code 242|Bahamas]] |
| − | |list2 = | + | * <!-- [[List of Barbados area codes|Barbados]] -->[[Area code 246|Barbados]] |
| − | + | * <!-- [[List of Bermuda area codes|Bermuda]] -->[[Area code 441|Bermuda]] | |
| − | + | * <!-- [[List of British Virgin Islands area codes -->[[Area code 284|British Virgin Islands]] | |
| − | + | * <!-- [[List of Cayman Islands area codes -->[[Area code 345|Cayman Islands]] | |
| − | + | * <!-- [[List of Dominica area codes|Dominica]] -->[[Area code 767|Dominica]] | |
| − | + | * [[Telephone numbers in the Dominican Republic|Dominican Republic]] | |
| − | + | * <!-- [[List of Grenada area codes|Grenada]] -->[[Area code 473|Grenada]] | |
| − | + | * <!-- [[List of Jamaica area codes|Jamaica]] -->[[Area codes 876 and 658|Jamaica]] | |
| − | + | * <!-- [[List of Montserrat area codes -->[[Area code 664|Montserrat]] | |
| − | + | * [[Telephone numbers in Puerto Rico|Puerto Rico]] | |
| − | + | * <!-- [[List of Saint Kitts and Nevis area codes -->[[Area code 869|Saint Kitts and Nevis]] | |
| − | + | * <!-- [[List of Saint Lucia area codes -->[[Area code 758|Saint Lucia]] | |
| − | + | * <!-- [[List of Saint Vincent and the Grenadines -->[[Area code 784|Saint Vincent and the Grenadines]] | |
| − | + | * [[Area code 721|Sint Maarten]] | |
| − | + | * <!-- [[List of Trinidad and Tobago area codes -->[[Area code 868|Trinidad and Tobago]] | |
| − | + | * <!-- [[List of Turks and Caicos Islands area -->[[Area code 649|Turks and Caicos Islands]] | |
| − | + | * <!-- [[List of U.S. Virgin Islands area codes -->[[Area code 340|U.S. Virgin Islands]] | |
| − | + | | group3 = [[Oceania]] | |
| − | + | | list3 = | |
| − | + | * [[Area code 684|American Samoa]] | |
| − | + | * [[Area code 670|Commonwealth of the Northern Marianas]] | |
| − | |group3 = [[Oceania]] | + | * [[Area code 671|Guam]] |
| − | |list3 = | + | | group4 = United States |
| − | + | | list4 = | |
| − | + | * [[List of Alabama area codes|Alabama]] | |
| − | + | * <!-- [[List of Alaska area codes|Alaska]] -->[[Area code 907|Alaska]] | |
| − | + | * [[List of Arizona area codes|Arizona]] | |
| − | |group4 = United States | + | * [[List of Arkansas area codes|Arkansas]] |
| − | |list4 = | + | * [[List of California area codes|California]] |
| − | + | * [[List of Colorado area codes|Colorado]] | |
| − | + | * [[List of Connecticut area codes|Connecticut]] | |
| − | + | * <!-- [[List of Delaware area codes|Delaware]] -->[[Area code 302|Delaware]] | |
| − | + | * <!-- [[List of District of Columbia area codes|District of Columbia]] -->[[Area code 202|District of Columbia]] | |
| − | + | * [[List of Florida area codes|Florida]] | |
| − | + | * [[List of Georgia area codes|Georgia]] | |
| − | + | * <!-- [[List of Hawaii area codes|Hawaii]]-->[[Area code 808|Hawaii]] | |
| − | + | * <!-- [[List of Idaho area codes|Idaho]]-->[[Area codes 208 and 986|Idaho]] | |
| − | + | * [[List of Illinois area codes|Illinois]] | |
| − | + | * [[List of Indiana area codes|Indiana]] | |
| − | + | * [[List of Iowa area codes|Iowa]] | |
| − | + | * [[List of Kansas area codes|Kansas]] | |
| − | + | * [[List of Kentucky area codes|Kentucky]] | |
| − | + | * [[List of Louisiana area codes|Louisiana]] | |
| − | + | * <!-- [[List of Maine area codes|Maine]] -->[[Area code 207|Maine]] | |
| − | + | * [[List of Maryland area codes|Maryland]] | |
| − | + | * [[List of Massachusetts area codes|Massachusetts]] | |
| − | + | * [[List of Michigan area codes|Michigan]] | |
| − | + | * [[List of Minnesota area codes|Minnesota]] | |
| − | + | * [[List of Mississippi area codes|Mississippi]] | |
| − | + | * [[List of Missouri area codes|Missouri]] | |
| − | + | * <!-- [[List of Montana area codes|Montana]] -->[[Area code 406|Montana]] | |
| − | + | * [[List of Nebraska area codes|Nebraska]] | |
| − | + | * [[List of Nevada area codes|Nevada]] | |
| − | + | * <!-- [[List of New Hampshire area codes|New Hampshire]] -->[[Area code 603|New Hampshire]] | |
| − | + | * [[List of New Jersey area codes|New Jersey]] | |
| − | + | * [[List of New Mexico area codes|New Mexico]] | |
| − | + | * [[List of New York area codes|New York]] | |
| − | + | * [[List of North Carolina area codes|North Carolina]] | |
| − | + | * <!-- [[List of North Dakota area codes|North Dakota]] -->[[Area code 701|North Dakota]] | |
| − | + | * [[List of Ohio area codes|Ohio]] | |
| − | + | * [[List of Oklahoma area codes|Oklahoma]] | |
| − | + | * [[List of Oregon area codes|Oregon]] | |
| − | + | * [[List of Pennsylvania area codes|Pennsylvania]] | |
| − | + | * <!-- [[List of Rhode Island area codes|Rhode Island]] -->[[Area code 401|Rhode Island]] | |
| − | + | * [[List of South Carolina area codes|South Carolina]] | |
| − | + | * <!-- [[List of South Dakota area codes|South Dakota]] -->[[Area code 605|South Dakota]] | |
| − | + | * [[List of Tennessee area codes|Tennessee]] | |
| − | + | * [[List of Texas area codes|Texas]] | |
| − | + | * [[List of Utah area codes|Utah]] | |
| − | + | * <!-- [[List of U.S. Government area codes]] -->[[Area code 710|U.S. Government]] | |
| − | + | * <!-- [[List of Vermont area codes|Vermont]] -->[[Area code 802|Vermont]] | |
| − | + | * [[List of Virginia area codes|Virginia]] | |
| − | + | * [[List of Washington area codes|Washington]] | |
| − | + | * <!-- [[List of West Virginia area codes|West Virginia]] -->[[Area codes 304 and 681|West Virginia]] | |
| − | + | * [[List of Wisconsin area codes|Wisconsin]] | |
| − | + | * <!-- [[List of Wyoming area codes|Wyoming]] -->[[Area code 307|Wyoming]] | |
| − | + | |group5 = Former | |
| − | + | | list5 = | |
| − | + | * [[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> | }}<noinclude> | ||
| + | {{collapsible option}} | ||
==Usage== | ==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]]. | + | 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]] | [[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}}
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]].