Template:Area code list
| This template does not display in the mobile view of Wikipedia; it is desktop only. See Template:Navbox visibility for a brief explanation. |
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 a state has more than one area code, 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]].
This is a navigational template created using {{navbox}}. It can be transcluded on pages by placing {{Area code list}} below the standard article appendices and above categories.
Initial visibility
This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state= parameter may be used:
{{Area code list|state=collapsed}}will show the template collapsed, i.e. hidden apart from its title bar.{{Area code list|state=expanded}}will show the template expanded, i.e. fully visible.
Templates using the classes class=navbox ({{navbox}}) or class=nomobile ({{sidebar}}) are not displayed in article space on the mobile web site of English Wikipedia. Mobile page views accounted for 60% to 70% of all page views from 2020 through 2025. Briefly, these templates are not included in articles because 1) they are not well designed for mobile, and 2) they significantly increase page sizes—bad for mobile downloads—in a way that is not useful for the mobile use case. You can review/watch phab:T124168 for further discussion.
TemplateData
A navigational box that can be placed at the bottom of articles.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| State | state | The initial visibility of the navbox
| String | suggested |
Template transclusions
| Transclusion maintenance |
|---|
| Check completeness of transclusions |