Template:Infobox settlement
Preview
City Example Cityउदाहरण नगर | |
|---|---|
| Nickname(s) | Example Nickname |
| Country | India |
| State | Rajasthan |
| District | Example District |
| Founded | 1727 |
| Government | |
| • Type | Municipal corporation |
| • Mayor | Example Name |
| Area | |
| • Total | 484.64 km2 (187.12 sq mi) |
| Elevation | 431 m (1,414 ft) |
| Population (2011) | |
| • Total | 3,073,350 |
| • Density | 6,341.5/km2 (16,424.4/sq mi) |
| Demonym(s) | Example-ite |
| Time zone | IST (UTC+05:30) |
| PIN | 302001 |
| Telephone code | 0141 |
| ISO 3166 code | IN-RJ |
| Website | example.org |
A lightweight infobox for cities, towns, villages and other places. Works without Lua/Scribunto; needs only ParserFunctions. Empty fields are hidden, and area, length, elevation and population density are converted between metric and imperial automatically.
Notes
- Write numbers plainly (
484.64or3,073,350). Put references in the_footnotesfields, not inside number fields; otherwise the raw value is shown without conversion. - Give each area in one unit only:
_km2,_ha,_sq_mior_acre. km² / sq mi values show as km² (sq mi); ha / acre values show as ha (acres). population_density_km2 = autouses land area if given, otherwise total area.unit_pref = Imperialshows imperial units first. Default is metric.- Also accepted:
image_skyline,imagesize,image_caption,settlement_type,official_name,timezone1,utc_offset,area_codes,registration_plate,map_size, subdivisions up to 6,established_title1–3. pushpin_mapneeds Lua (Module:Location map) andmapframeneeds the Kartographer extension, so they are accepted but not shown. Useimage_mapwith a map image instead.
TemplateData
Infobox for cities, towns, villages and other places. Area, length, elevation and density are converted between metric and imperial automatically.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Common English name. Defaults to page name. | Line | suggested |
| Native name | native_name | Name in local language/script. | Line | optional |
| Native name lang | native_name_lang | no description | Line | optional |
| Type | type settlement_type | e.g. City, Town, Village, District | Line | suggested |
| Image | image image_skyline | File name only, e.g. Jaipur skyline.jpg | File | suggested |
| Image size | image_size imagesize | no description | Line | optional |
| Alt | alt | no description | Line | optional |
| Caption | caption image_caption | no description | Content | suggested |
| Image flag | image_flag | no description | File | optional |
| Flag alt | flag_alt | no description | Line | optional |
| Image seal | image_seal | no description | File | optional |
| Seal alt | seal_alt | no description | Line | optional |
| Image shield | image_shield | no description | File | optional |
| Shield alt | shield_alt | no description | Line | optional |
| Etymology | etymology | no description | Line | optional |
| Nickname | nickname | no description | Line | optional |
| Motto | motto | no description | Line | optional |
| Image map | image_map | no description | File | optional |
| Map alt | map_alt | no description | Line | optional |
| Map caption | map_caption | no description | Line | optional |
| Pushpin map | pushpin_map | Needs Lua (Module:Location map); not shown by this template. Use image_map. | Line | optional |
| Pushpin alt | pushpin_alt | no description | Line | optional |
| Pushpin caption | pushpin_caption | no description | Line | optional |
| Pushpin map size | pushpin_map_size | no description | Line | optional |
| Pushpin label position | pushpin_label_position | no description | Line | optional |
| Mapframe | mapframe | Needs Kartographer extension; not shown by this template. | Line | optional |
| Coordinates | coordinates | Text, or {{coord}} if that template exists. | Content | optional |
| Coor pinpoint | coor_pinpoint | no description | Line | optional |
| Coordinates footnotes | coordinates_footnotes | no description | Content | optional |
| Subdivision type | subdivision_type | Default: Country | Line | suggested |
| Subdivision name | subdivision_name | e.g. {{Flag icon|India}} India | Content | suggested |
| Subdivision type 1 | subdivision_type1 | e.g. State | Line | suggested |
| Subdivision name 1 | subdivision_name1 | e.g. Rajasthan | Content | suggested |
| Subdivision type 2 | subdivision_type2 | e.g. District | Line | suggested |
| Subdivision name 2 | subdivision_name2 | e.g. Jaipur | Content | suggested |
| Subdivision type3 | subdivision_type3 | no description | Line | optional |
| Subdivision name3 | subdivision_name3 | no description | Line | optional |
| Established title | established_title | no description | Line | optional |
| Established date | established_date | no description | Line | optional |
| Founder | founder | no description | Line | optional |
| Seat type | seat_type | no description | Line | optional |
| Seat | seat | no description | Line | optional |
| Government footnotes | government_footnotes | no description | Content | optional |
| Government type | government_type | no description | Line | optional |
| Governing body | governing_body | no description | Line | optional |
| Leader party | leader_party | no description | Line | optional |
| Leader title | leader_title | no description | Line | optional |
| Leader name | leader_name | no description | Line | optional |
| Leader title1 | leader_title1 | no description | Line | optional |
| Leader name1 | leader_name1 | no description | Line | optional |
| Leader title2 | leader_title2 | no description | Line | optional |
| Leader name2 | leader_name2 | no description | Line | optional |
| Leader title3 | leader_title3 | no description | Line | optional |
| Leader name3 | leader_name3 | no description | Line | optional |
| Leader title4 | leader_title4 | no description | Line | optional |
| Leader name4 | leader_name4 | no description | Line | optional |
| Unit preference | unit_pref | Metric (default) or Imperial; controls which unit is shown first. | Line | optional |
| Area footnotes | area_footnotes | no description | Content | optional |
| Area urban footnotes | area_urban_footnotes | no description | Content | optional |
| Area rural footnotes | area_rural_footnotes | no description | Content | optional |
| Area metro footnotes | area_metro_footnotes | no description | Content | optional |
| Area note | area_note | no description | Content | optional |
| Area water percent | area_water_percent | no description | Line | optional |
| Area rank | area_rank | no description | Line | optional |
| Area blank1 title | area_blank1_title | no description | Line | optional |
| Area blank2 title | area_blank2_title | no description | Line | optional |
| Area total (km²) | area_total_km2 | Number only; converted automatically. | Number | suggested |
| Area land km2 | area_land_km2 | no description | Number | optional |
| Area water km2 | area_water_km2 | no description | Number | optional |
| Area urban km2 | area_urban_km2 | no description | Number | optional |
| Area rural km2 | area_rural_km2 | no description | Number | optional |
| Area metro km2 | area_metro_km2 | no description | Number | optional |
| Area blank1 km2 | area_blank1_km2 | no description | Number | optional |
| Area blank2 km2 | area_blank2_km2 | no description | Number | optional |
| Area total ha | area_total_ha | no description | Number | optional |
| Area land ha | area_land_ha | no description | Number | optional |
| Area water ha | area_water_ha | no description | Number | optional |
| Area urban ha | area_urban_ha | no description | Number | optional |
| Area rural ha | area_rural_ha | no description | Number | optional |
| Area metro ha | area_metro_ha | no description | Number | optional |
| Area blank1 ha | area_blank1_ha | no description | Number | optional |
| Area blank2 ha | area_blank2_ha | no description | Number | optional |
| Length km | length_km | no description | Number | optional |
| Width km | width_km | no description | Number | optional |
| Dimensions footnotes | dimensions_footnotes | no description | Content | optional |
| Elevation footnotes | elevation_footnotes | no description | Content | optional |
| Elevation (m) | elevation_m | Number only. | Number | suggested |
| Population footnotes | population_footnotes | no description | Content | optional |
| Population as of | population_as_of | e.g. 2011 census | Line | suggested |
| Population | population_total | Number only, e.g. 3073350 | Number | suggested |
| Density (/km²) | population_density_km2 | auto = calculate from population and area | Line | optional |
| Population note | population_note | no description | Content | optional |
| Population demonym | population_demonym | no description | Line | optional |
| Time zone | time_zone1 | e.g. IST | Line | suggested |
| UTC offset | utc_offset1 | e.g. +05:30 | Line | suggested |
| Time zone1 dst | time_zone1_DST | no description | Line | optional |
| Utc offset1 dst | utc_offset1_DST | no description | Line | optional |
| Postal code type | postal_code_type | e.g. PIN | Line | suggested |
| Postal code | postal_code | no description | Line | suggested |
| Area code type | area_code_type | e.g. Telephone code | Line | optional |
| Area code | area_code | no description | Line | optional |
| Area codes | area_codes | no description | Line | optional |
| Iso code | iso_code | no description | Line | optional |
| Website | website | e.g. [https://example.gov.in example.gov.in] | Content | suggested |
| Module | module | no description | Content | optional |
| Footnotes | footnotes | no description | Content | optional |
| Area total sq mi | area_total_sq_mi | no description | Number | optional |
| Area land sq mi | area_land_sq_mi | no description | Number | optional |
| Area water sq mi | area_water_sq_mi | no description | Number | optional |
| Area urban sq mi | area_urban_sq_mi | no description | Number | optional |
| Area rural sq mi | area_rural_sq_mi | no description | Number | optional |
| Area metro sq mi | area_metro_sq_mi | no description | Number | optional |
| Area blank1 sq mi | area_blank1_sq_mi | no description | Number | optional |
| Area blank2 sq mi | area_blank2_sq_mi | no description | Number | optional |
| Area total acre | area_total_acre | no description | Number | optional |
| Area land acre | area_land_acre | no description | Number | optional |
| Area water acre | area_water_acre | no description | Number | optional |
| Area urban acre | area_urban_acre | no description | Number | optional |
| Area rural acre | area_rural_acre | no description | Number | optional |
| Area metro acre | area_metro_acre | no description | Number | optional |
| Area blank1 acre | area_blank1_acre | no description | Number | optional |
| Area blank2 acre | area_blank2_acre | no description | Number | optional |
| Length mi | length_mi | no description | Number | optional |
| Width mi | width_mi | no description | Number | optional |
| Elevation ft | elevation_ft | no description | Number | optional |
| Population density sq mi | population_density_sq_mi | no description | Number | optional |
| Subdivision type4 | subdivision_type4 | no description | Line | optional |
| Subdivision name4 | subdivision_name4 | no description | Line | optional |
| Subdivision type5 | subdivision_type5 | no description | Line | optional |
| Subdivision name5 | subdivision_name5 | no description | Line | optional |
| Subdivision type6 | subdivision_type6 | no description | Line | optional |
| Subdivision name6 | subdivision_name6 | no description | Line | optional |
| Established title1 | established_title1 | no description | Line | optional |
| Established date1 | established_date1 | no description | Line | optional |
| Established title2 | established_title2 | no description | Line | optional |
| Established date2 | established_date2 | no description | Line | optional |
| Established title3 | established_title3 | no description | Line | optional |
| Established date3 | established_date3 | no description | Line | optional |
| Map size | map_size | no description | Line | optional |
| Registration plate | registration_plate | no description | Line | optional |
Usage
{{Infobox settlement
|name =
|native_name = <!-- Settlement name in the dominant local language(s), if different from the English name -->
|native_name_lang = <!-- ISO 639-1 code e.g. "fr" for French. If more than one, use {{lang}} instead -->
|type =
|image =
|image_size =
|alt =
|caption =
|image_flag =
|flag_alt =
|image_seal =
|seal_alt =
|image_shield =
|shield_alt =
|etymology =
|nickname =
|motto =
|image_map =
|map_alt =
|map_caption =
|pushpin_map =
|pushpin_alt =
|pushpin_caption =
|pushpin_map_size =
|pushpin_label_position =
|mapframe = <!-- "yes" to show an interactive map -->
|coordinates = <!-- {{coord|latitude|longitude|type:city|display=inline,title}} -->
|coor_pinpoint =
|coordinates_footnotes =
|subdivision_type = Country
|subdivision_name =
|subdivision_type1 =
|subdivision_name1 =
|subdivision_type2 =
|subdivision_name2 =
|subdivision_type3 =
|subdivision_name3 =
|established_title =
|established_date =
|founder =
|seat_type =
|seat =
|government_footnotes =
|government_type =
|governing_body =
|leader_party =
|leader_title =
|leader_name =
|leader_title1 =
|leader_name1 =
|leader_title2 =
|leader_name2 =
|leader_title3 =
|leader_name3 =
|leader_title4 =
|leader_name4 =
|unit_pref = Metric
<!-- ALL fields with measurements have automatic unit conversion -->
<!-- for references: use <ref> tags -->
|area_footnotes =
|area_urban_footnotes = <!-- <ref> </ref> -->
|area_rural_footnotes = <!-- <ref> </ref> -->
|area_metro_footnotes = <!-- <ref> </ref> -->
|area_note =
|area_water_percent =
|area_rank =
|area_blank1_title =
|area_blank2_title =
<!-- square kilometers -->
|area_total_km2 =
|area_land_km2 =
|area_water_km2 =
|area_urban_km2 =
|area_rural_km2 =
|area_metro_km2 =
|area_blank1_km2 =
|area_blank2_km2 =
<!-- hectares -->
|area_total_ha =
|area_land_ha =
|area_water_ha =
|area_urban_ha =
|area_rural_ha =
|area_metro_ha =
|area_blank1_ha =
|area_blank2_ha =
|length_km =
|width_km =
|dimensions_footnotes =
|elevation_footnotes =
|elevation_m =
|population_footnotes =
|population_as_of =
|population_total =
|population_density_km2 = auto
|population_note =
|population_demonym =
|time_zone1 =
|utc_offset1 =
|time_zone1_DST =
|utc_offset1_DST =
|postal_code_type =
|postal_code =
|area_code_type =
|area_code =
|area_codes = <!-- for multiple area codes -->
|iso_code =
|website = <!-- {{Official URL}} -->
|module =
|footnotes =
}}