Template:Infobox U.S. state/doc

From Omniversalis

Template:WPAN

Template:Uses Infobox settlement

{{{name}}}
State
{{{official_name}}}
[[File:{{{image_flag}}}|125px|alt={{{flag_alt}}}|border|Flag of {{{name}}}]]
[[Flag of {{{name}}}|Flag]]
[[File:{{{image_seal}}}|100px|alt={{{seal_alt}}}|Official seal of {{{name}}}]]
[[Seal of {{{name}}}|Seal]]
Nickname(s): {{{nickname}}}
Motto(s): {{{motto}}}
Anthem: {{{anthem}}}
[[File:{{{image_map}}}|300px|alt={{{map_alt}}}|Map of the United States with {{{name}}} highlighted]]
Map of the United States with {{{name}}} highlighted
Country United States
Before statehood Territory
Admitted to the Union {{{AdmittanceDate}}} ({{{AdmittanceOrder}}})
Capital {{{seat}}}
Largest city {{{LargestCity}}}
Largest metro and urban areas {{{LargestMetro}}}
Government
 • [[Governor of {{{name}}}|Governor]] {{{Governor}}}
 • [[Lieutenant Governor of {{{name}}}|{{{Lieutenant Governor_alt}}}]] {{{Lieutenant Governor}}}
Area
 • Total {{{area_total_sq_mi}}} sq mi ({{{area_total_km2}}} km2)
Area rank {{{area_rank}}}
Dimensions
 • Length {{{length_mi}}} mi ({{{length_km}}} km)
 • Width {{{width_mi}}} mi ({{{width_km}}} km)
Elevation {{{elevation_ft}}} ft ({{{elevation_m}}} m)
Highest elevation ({{{elevation_max_point}}}) {{{elevation_max_ft}}} ft ({{{elevation_max_m}}} m)
Lowest elevation ({{{elevation_min_point}}}) {{{elevation_min_ft}}} ft ({{{elevation_min_m}}} m)
Population ({{{population_as_of}}})
 • Total {{{2,010Pop}}}
 • Rank {{{population_rank}}}
 • Density rank {{{population_density_rank}}}
 • Median household income {{{MedianHouseholdIncome}}}
 • Income rank {{{IncomeRank}}}
Demonym(s) {{{population_demonym}}}
Language
 • Official language {{{OfficialLang}}}
 • Spoken language {{{Languages}}}
Time zones {{{timezone1}}} ([[Wikipedia:UTC{{{utc_offset1}}}|UTC{{{utc_offset1}}}]])
{{{timezone2}}} ([[UTC{{{utc_offset2}}}]])
 • Summer (DST) {{{timezone1_DST}}} ([[Wikipedia:UTC{{{utc_offset1_DST}}}|UTC{{{utc_offset1_DST}}}]])
{{{timezone2_DST}}} ([[Wikipedia:UTC{{{utc_offset2_DST}}}|UTC{{{utc_offset2_DST}}}]])
USPS abbreviation {{{postal_code}}}
ISO 3166 code {{{iso_code}}}
Latitude {{{Latitude}}}
Longitude {{{Longitude}}}
Website {{{website}}}
{{{footnotes}}}

Usage[edit]

{{Infobox U.S. state
| official_name = 
| image_flag =
| flag_alt = 
| name = 
| image_seal =
| flag_link = 
| nickname = 
| anthem = 
| image_map = 
| OfficialLang = 
| Languages = 
| population_demonym =
| LargestCity =
| seat = 
| LargestMetro = 
| area_rank = 
| area_total_sq_mi = 
| area_total_km2 = 
| width_mi = 
| width_km = 
| length_mi = 
| length_km = 
| area_water_percent = 
| Latitude = 
| Longitude = 
| population_rank = 
| population_as_of = 
| 2010Pop = 
| MedianHouseholdIncome =
| 2000DensityUS = 
| 2000Density = 
| population_density_rank =
| IncomeRank = 
| elevation_max_point = 
| elevation_max_ft = 
| elevation_max_m = 
| elevation_ft = 
| elevation_m = 
| elevation_min_point = 
| elevation_min_m = 
| elevation_min_ft =
| Former = 
| AdmittanceDate = 
| AdmittanceOrder = 
| Governor = 
| Lieutenant Governor =
| Legislature = 
| Upperhouse = 
| Lowerhouse = 
| Judiciary =
| Senators = 
| Representative = 
| timezone1 = 
| utc_offset1 = 
| timezone1_DST = 
| utc_offset1_DST = 
| iso_code = 
| postal_code = 
| TradAbbreviation = 
| website = 
| area_land_km2 = 
| area_land_sq_mi = 
| area_water_km2 = 
| area_water_sq_mi = 
}}

Parameters[edit]

The parameters below are required unless marked as optional.

Name[edit]

  • name: the common name of the state
  • official_name: the full name of the state (such as "State of California" or "Commonwealth of Pennsylvania")
  • nickname: one or more nicknames for the state, usually separated by semicolons

Flag[edit]

  • image_flag: file name of the state flag image; example: |Flag=Flag of California.svg
    • A small border is drawn around the flag unless |flag_border=no is set (for e.g. |Name=Ohio, which is the only state with a non-rectangular flag).
  • flag_alt: (optional) alt-text for the flag image; if unspecified, the alt-text defaults to "Flag of Name"
  • flag_link: (optional) a link to an article about the state's flag; if unspecified, the link defaults to "[[Flag of Name|Flag]]"

Seal[edit]

  • image_seal: file name of the state seal image; example: |Seal=Seal of California.svg
  • seal_alt: (optional) alt-text for the seal image; if unspecified, the alt-text defaults to "State seal of Name"
  • seal_link: (optional) a link to an article about the state's seal; if unspecified, the link defaults to "[[Seal of Name|Seal]]"

Motto[edit]

  • motto: (optional) state motto

Song[edit]

  • anthem: (optional) state song or anthem

Map[edit]

  • Map: file name of a map highlighting the state; example: |Map=California in United States.svg
  • MapAlt: (optional) alt-text for the map image; if unspecified, the alt-text defaults to "Map of the United States with Name highlighted"

Languages[edit]

  • OfficialLang: (optional) the state's official language(s)
  • Languages: (optional) language(s) with a significant number of speakers in the state; often listed with a percentage, such as "English 94.6%, Spanish 5.9%"

Demonym[edit]

Cities[edit]

  • seat: the state's capital city
  • LargestCity: the largest city (by population) in the state
    • Specify |LargestCity=capital if the capital is also the largest city
  • LargestMetro: (optional) the largest metropolitan area and urban areas (by population) in the state

Area[edit]

  • AreaRank: where the state ranks on List of U.S. states and territories by area; example: |AreaRank=5th
  • TotalAreaUS: land + water area in square miles (usually rounded to a whole number)
  • TotalArea: land + water area in square kilometers (usually rounded to a whole number)
  • width_mi: width of the state in miles (usually rounded to a whole number or approximated to the tens place, such as "360")
  • width_km: width of the state in kilometers (usually rounded to a whole number or approximated to the tens place, such as "580")
  • length_mi: length of the state in miles (usually rounded to a whole number or approximated to the tens place, such as "360")
  • length_km: length of the state in kilometers (usually rounded to a whole number or approximated to the tens place, such as "580")
  • area_water_percent: percent of total area that is water; example: |area_water_percent=3.2
  • Latitude: range of latitudes in the state, usually given in degrees and minutes from the southernmost to the northernmost parallel
example: |Latitude=25° 50′ N to 36° 30′ N
  • Longitude: range of longitudes in the state, usually given in degrees and minutes from the easternmost to the westernmost meridian
example: |Longitude=93° 31′ W to 106° 39′ W

Population[edit]

Elevations[edit]

  • elevation_max_point: text naming the location of the highest point in the state; usually it's the name of a mountain or hill
  • elevation_max_ft: elevation of the highest point in feet
  • elevation_max_m: elevation of the highest point in meters
  • elevation_ft: mean elevation of the state in feet
  • elevation_m: mean elevation of the state in meters
  • elevation_min_point: (optional) text naming the location of the lowest point in the state; usually it's the name of a body of water
  • elevation_min_ft: elevation of the lowest point in feet
  • elevation_min_m: elevation of the lowest point in meters

History[edit]

Government[edit]

  • Governor: the name and party of the current governor
  • Lieutenant Governor: the name and party of the current Lt. Governor/next-in-succession
  • Lieutenant Governor_alt: (optional, defaults to "Lieutenant Governor") the name of the title that succeeds the Governor; several states have no Lt. Gov. and instead their Secretary of State or President of the Senate is next in succession
  • Legislature: a link to the article about the state's legislature; example: |Legislature=[[New Mexico Legislature]]
  • Upperchamber: a link to the article about the state's upper legislative chamber; example: |Upperchamber=[[Wisconsin State Senate|Senate]]
  • Lowerchamber: a link to the article about the state's lower legislative chamber; example: |Lowerchamber=[[Wisconsin State Assembly|State Assembly]]
  • Senators: the two U.S. Senators from the state, listed by name and party; the two are separated by a linebreak <br />
  • Representative: (optional) text that appears before the link to the list of delegates to the House of Representatives
Most states tally the number of Representatives per party (example: |Representative=6 Democrats, 6 Republicans). States with only a few Representatives usually list the people by name.

Time zones[edit]

If timezone2 is specified, the time zone section will consist of four rows and the location for timezone1 and timezone2 should be specified.

Other information[edit]

  • ISOCode: (optional) the ISO 3166-2:US code for the state
  • postal_code: (optional) the state's current standard two-letter postal abbreviation
  • TradAbbreviation: (optional) common traditional abbreviations for the state
  • website: (optional) an official URL for the state
  • module: (optional) used to insert other infobox
  • footnotes: (optional) where footnotes can be placed

Maintenance categories[edit]

Microformat[edit]

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

If the place or venue has an "established", "founded", "opened" or similar date that is specific to the day, use {{start date}} unless the date is before 1583 CE. If it has a URL, use {{URL}}.

hCard uses HTML classes including:

  • adr
  • category
  • country-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • street-address
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.

TemplateData[edit]

Template:Templatedata header <templatedata> { "params": { "Seallink": { "label": "Link to seal's page", "description": "Link to the Wikipedia page of the state's seal", "type": "date" }, "OfficialLang": { "label": "Official language", "description": "The state's official language, if it has one", "example": "English", "type": "content" }, "Languages": { "label": "Languages spoken", "example": "Language spoken at home[1] * English: 58.1% * Spanish: 28.8% * Chinese: 3.0% * Filipino: 2.2% * Other: 7.9%", "type": "content" }, "LargestCity": { "label": "Largest city", "description": "The state's largest city by population", "example": "Los Angeles", "type": "wiki-page-name", "suggested": true }, "Capital": { "description": "The state's capital city", "example": "Sacramento", "type": "wiki-page-name", "required": true }, "LargestMetro": { "label": "Largest metropolitan area", "description": "The state's largest metropolitan area and urban area by population", "example": "Greater Los Angeles", "type": "string", "suggested": true }, "TotalAreaUS": {}, "WidthUS": {}, "Width": {}, "LengthUS": {}, "Length": {}, "PCWater": {}, "Latitude": {}, "Longitude": {}, "PopRank": { "aliases": [ "population_rank" ], "label": "Population rank", "example": "1st", "type": "string" }, "2010Pop": {}, "population_as_of": {}, "2000Pop": {}, "MedianHouseholdIncome": { "label": "Median household income", "example": "$71,805 (2017)[2]", "type": "content" }, "2010DensityUS": {}, "2000DensityUS": {}, "2010Density": {}, "2000Density": {}, "DensityRank": {}, "IncomeRank": {}, "HighestPoint": {}, "HighestElevUS": {}, "HighestElev": {}, "MeanElevUS": {}, "MeanElev": {}, "LowestPoint": {}, "LowestElev": {}, "LowestElevUS": {}, "Former": { "label": "Former name", "description": "The state's former name(s)", "example": "California Republic", "type": "string" }, "AdmittanceDate": { "label": "Admittance date", "description": "Date the state was admitted to the union", "type": "date" }, "AdmittanceOrder": { "label": "Admittance order", "type": "string" }, "Governor": { "example": "Gavin Newsom (D)", "type": "content" }, "Lieutenant Governor_alt": { "label": "Lieutenant Governor alt title", "type": "string" }, "Lieutenant Governor": { "example": "Eleni Kounalakis (D)", "type": "content", "suggested": true }, "Senate Pro Tem": {}, "House Speaker": {}, "Legislature": {}, "Upperchamber": { "aliases": [ "Upperhouse" ], "label": "Upper chamber", "description": "The state's upper legislative chamber", "example": "State Senate", "type": "content", "suggested": true }, "Lowerchamber": { "aliases": [ "Lowerhouse" ], "label": "Lower chamber", "description": "The state's lower legislative chamber", "example": "State Assembly", "type": "content", "suggested": true }, "Senators": { "description": "The state's Senators in the US Senate", "example": "Template:Ublist", "type": "content", "required": true }, "Representatives": { "description": "The state's number of representatives in the House of Representatives by political party", "example": "Template:Ublist", "type": "content", "required": true }, "timezone1": {}, "utc_offset1": {}, "timezone1_DST": {}, "utc_offset1_DST": {}, "timezone1_location": {}, "timezone2": {}, "utc_offset2": {}, "timezone2_DST": {}, "utc_offset2_DST": {}, "timezone2_location": {}, "PostalAbbreviation": { "label": "Postal abbreviation", "description": "Official 2-letter abbreviation of the state", "example": "CA", "type": "string" }, "TradAbbreviation": { "label": "Traditional abbreviation(s)", "description": "The state's traditional abbreviation(s)", "example": "Calif., Cal.", "type": "string" }, "official_name": { "label": "Official name", "example": "Commonwealth of Virginia", "type": "string", "description": "The state's official name. Use only when not of the form 'State of X'" }, "area_code": { "label": "Area codes", "description": "A list of the state's telephone area codes", "example": "209 213 310 323 408 415 510 530 559 562 619 626 650 661 707 714 760 805 818 831 858 909 916 925 949", "type": "string" }, "iso_code": { "label": "ISO code", "example": "US-CA", "type": "string" }, "website": { "label": "Official website", "description": "The state's official website", "example": "https://www.ca.gov/", "type": "url" }, "seal_alt": { "label": "Seal alternate text", "type": "string" }, "flag_link": { "label": "Link to flag's page", "description": "Link to the Wikipedia page of the state's flag", "example": "Flag of California", "type": "wiki-page-name" }, "image_seal": { "label": "Seal image", "description": "An image of the state's seal", "type": "wiki-file-name" }, "name": { "label": "Name", "description": "The state's name", "example": "California", "type": "string" }, "image_flag": { "label": "Flag image", "description": "An image of the state's flag", "example": "Flag of California.svg", "type": "wiki-file-name" }, "flag_alt": { "label": "Flag alternate text", "type": "string" }, "nickname": { "label": "State nickname", "description": "The state's nickname", "example": "The Golden State", "type": "string" }, "nicknames": { "label": "State nicknames", "description": "The state's nicknames, if there are more than one", "example": "The Constitution State (official), The Nutmeg State", "type": "content" }, "footnotes": { "label": "Footnotes", "type": "content" }, "map_alt": { "label": "Map alternate text", "type": "string" }, "image_map": { "label": "Map image", "example": "California in United States.svg", "type": "wiki-file-name" }, "anthem": { "label": "State anthem", "description": "The state's anthem",

"example": "\"I Love You, California\"

File:\"I Love You, California\" - Regional anthem of California.ogg

",

"type": "content" }, "motto": { "label": "State motto", "description": "The state's motto(s)", "example": "\"Eureka\"[3]", "type": "content" }, "population_demonym": { "label": "Demonym", "description": "What the state's residents are called", "example": "Californian", "type": "string", "suggested": true }, "area_rank": { "label": "Area rank", "example": "3rd", "type": "string" }, "total_area": { "label": "Total area", "type": "number" }, "module": { "label": "Module", "type": "string" } }, "format": "block", "description": "An infobox for States of the United States of America." } </templatedata>

  1. ^ Lua error in Module:Citation/CS1 at line 2593: attempt to call field 'has_accept_as_written' (a nil value).
  2. ^ Lua error in Module:Citation/CS1 at line 2593: attempt to call field 'has_accept_as_written' (a nil value).
  3. ^ Lua error in Module:Citation/CS1 at line 2593: attempt to call field 'has_accept_as_written' (a nil value).