Difference between revisions of "Template:Area code list"

From blackwiki
Jump to navigation Jump to search
blackwiki>Rfc1394
(clarify usage)
m (47 revisions imported)
 
(12 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
| name      = Area code list
 
| name      = Area code list
| state    = uncollapsed
+
| state    = {{{state|uncollapsed}}}
 
| 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 North American Numbering Plan area codes|Lists]] of [[Telephone numbering plan|area codes]] in the [[North American Numbering Plan]]
 
| listclass = hlist
 
| 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  =  
 
* [[List of Alberta area codes|Alberta]]
 
* [[List of Alberta area codes|Alberta]]
 
* [[List of British Columbia area codes|British Columbia]]
 
* [[List of British Columbia area codes|British Columbia]]
* <!-- [[List of Manitoba area codes|Manitoba]] -->[[Area code 204|Manitoba]]
+
* <!-- [[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 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 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 Northwest Territories area codes|Northwest Territories]] -->[[Area code 867|Northwest Territories]]
* <!-- [[List of Nova Scotia area codes|Nova Scotia]] -->[[Area code 902|Nova Scotia]]
+
* <!-- [[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 Nunavut area codes|Nunavut]] -->[[Area code 867|Nunavut]]
 
* [[List of Ontario area codes|Ontario]]
 
* [[List of Ontario area codes|Ontario]]
* <!-- [[List of Prince Edward Island area codes|Prince Edward Island]] -->[[Area code 902|Prince Edward Island]]
+
* <!-- [[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 Quebec area codes|Quebec]]
* <!-- [[List of Saskatchewan area codes|Saskatchewan]] -->[[Area code 306|Saskatchewan]]
+
* <!-- [[List of Saskatchewan area codes|Saskatchewan]] -->[[Area codes 306 and 639|Saskatchewan]]
* <!-- [[List of Yukon Territory area codes|Yukon Territory]] -->[[Area code 867|Yukon Territory]]
+
* <!-- [[List of Yukon Territory area codes|Yukon]] -->[[Area code 867|Yukon]]
 
| group2 = [[Area codes in the Caribbean|Caribbean]]  
 
| group2 = [[Area codes in the Caribbean|Caribbean]]  
 
| list2  =  
 
| list2  =  
Line 33: Line 31:
 
* [[Telephone numbers in the Dominican Republic|Dominican Republic]]
 
* [[Telephone numbers in the Dominican Republic|Dominican Republic]]
 
* <!-- [[List of Grenada area codes|Grenada]]  -->[[Area code 473|Grenada]]
 
* <!-- [[List of Grenada area codes|Grenada]]  -->[[Area code 473|Grenada]]
* <!-- [[List of Jamaica area codes|Jamaica]]  -->[[Area code 876|Jamaica]]
+
* <!-- [[List of Jamaica area codes|Jamaica]]  -->[[Area codes 876 and 658|Jamaica]]
 
* <!-- [[List of Montserrat area codes            -->[[Area code 664|Montserrat]]
 
* <!-- [[List of Montserrat area codes            -->[[Area code 664|Montserrat]]
 
* [[Telephone numbers in Puerto Rico|Puerto Rico]]
 
* [[Telephone numbers in Puerto Rico|Puerto Rico]]
Line 62: Line 60:
 
* [[List of Georgia area codes|Georgia]]
 
* [[List of Georgia area codes|Georgia]]
 
* <!-- [[List of Hawaii area codes|Hawaii]]-->[[Area code 808|Hawaii]]
 
* <!-- [[List of Hawaii area codes|Hawaii]]-->[[Area code 808|Hawaii]]
* <!-- [[List of Idaho area codes|Idaho]]-->[[Area code 208|Idaho]]
+
* <!-- [[List of Idaho area codes|Idaho]]-->[[Area codes 208 and 986|Idaho]]
 
* [[List of Illinois area codes|Illinois]]
 
* [[List of Illinois area codes|Illinois]]
 
* [[List of Indiana area codes|Indiana]]
 
* [[List of Indiana area codes|Indiana]]
Line 102: Line 100:
 
* [[List of Wisconsin area codes|Wisconsin]]
 
* [[List of Wisconsin area codes|Wisconsin]]
 
* <!-- [[List of Wyoming area codes|Wyoming]]  -->[[Area code 307|Wyoming]]
 
* <!-- [[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]]. 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]]'''.
 
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]]
[[Category:Navigational boxes]]
+
</noinclude>
 
 
[[ro:Format: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]].