Template:CityInfobox/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:CityInfobox. It may contain usage information, categories and other content that is not part of the original template page. |
The {{CityInfobox}} is used to create an infobox for cities, towns, and similar administrative subdivisions. Use the CountryInfobox for countries and the RegionInfobox for subdivisions such as counties, provinces, districts, etc.
Usage
To use the template, copy and paste the following at the top of the article. Then add the appropriate parameter values.
{{CityInfobox | Short city name = | Full city name = | City Photos = | Photo description = | flag = | coa1 = | Locator Map = | country text = | country = | region = | foundation = | founded by = | government type = | government body = | leader title = | mayor = | elevation = | total area = | urban area = | metro area = | time zone = | population = | rank = | density = | demonym = }}
Parameters
Optional parameters are not displayed if left blank.
Parameter | Description | Type | Status | Notes |
---|---|---|---|---|
Short city name |
Short city name | String | Required | Defaults to the article pagename |
Full city name |
Full city name | String | Optional | Can be used for the city's native language name (for example, Москва for Moscow)
|
City Photos |
City image filename | String | Optional | |
Photo description |
Image caption | String | Optional | Will not display if City Photos has no value
|
flag |
City image flag filename | String | Optional | |
coa1 |
City coat of arms filename | String | Optional | |
Locator Map |
Locator map filename | String | Optional | |
country text |
Country name | String | Optional | Can be used to display a country name with a flag icon using {{flag}} |
country |
Country name | String | Required | Links to the country article; country text supersedes if it has a value
|
region |
Region | String | Optional | For example, district, county, province, state, etc. |
foundation |
Foundation date | String | Optional | |
founded by |
Founder's name(s) | String | Optional | |
government type |
Type of government | String | Optional | For example, Mayor-Council, Commission, etc. |
leader title |
Leader title | String | Optional | Defaults to Mayor |
mayor |
Leader's name | String | Optional | |
elevation |
Elevation above sea level | String | Optional | |
total area |
Total area | Numeric | Optional | Km2 |
urban area |
Urban area | Numeric | Optional | Km2 |
metro area | Metropolitan area | Numeric | Optional | Km2 |
time zone |
Time zone | String | Optional | |
population |
Population | Numeric | Optional | |
rank |
Population rank | String | Optional | |
density |
Population density | String | Optional | If total area and population have numeric values, the template will calculate the population density per km2. A value in density overrides the template's calculation.
|
demonym |
City residents demonym | String | Optional |
Non-numeric data for total area
and/or population
may result in a calculation error for density
. Please use numeric values for those parameters. Providing a parameter value for density
supersedes any calculation, however.
Examples
City of Example | |
---|---|
File:Cityphoto.png View of Example City from XYZ viewpoint | |
File:Exampleflag.png Flag |
File:Examplecoa1.png Coat of arms |
Location | |
File:Examplemap.png | |
Country | CountryName |
Region | RegionName |
Foundation | 01.01.1001 |
Founded by | FounderName |
Government | |
Type | Democratic |
Body | City Council |
Mayor | MayorName |
Physical | |
Elevation | 100 m |
Total area | 100 km2 |
Urban area | 80 km2 |
Metro area | 120 km2 |
Time zone | UTC+2 |
Population | |
Total | 1,000,000 |
Rank | 1st place |
Density | 10,000/km2 |
Demonym | Example Cityzen |
{{CityInfobox | Short city name = Example City | Full city name = City of Example | City Photos = cityphoto.png | Photo description = View of Example City from XYZ viewpoint | flag = exampleflag.png | coa1 = examplecoa1.png | Locator Map = examplemap.png | country = CountryName | region = RegionName | foundation = 01.01.1001 | founded by = FounderName | government type = Democratic | government body = City Council | leader title = Mayor | mayor = MayorName | elevation = 100 | total area = 100 | urban area = 80 | metro area = 120 | time zone = UTC+2 | population = 1,000,000 | rank = 1st place | density = 10,000 | demonym = Example Cityzen }}
City of Example | |
---|---|
File:Cityphoto.png View of Example City from XYZ viewpoint | |
File:Exampleflag.png Flag |
File:Examplecoa1.png Coat of arms |
Location | |
File:Examplemap.png | |
Country | CountryName |
Region | RegionName |
Foundation | 01.01.1001 |
Founded by | FounderName |
Government | |
Type | Democratic |
Body | City Council |
Mayor | MayorName |
Physical | |
Elevation | 100 m |
Total area | 100 km2 |
Urban area | 80 km2 |
Metro area | 120 km2 |
Time zone | UTC+2 |
Population | |
Total | 1,000,000 |
Rank | 1st place |
Density | 10,000/km2 |
Demonym | Example Cityzen |
{{CityInfobox | Short city name = Example City | Full city name = City of Example | City Photos = cityphoto.png | Photo description = View of Example City from XYZ viewpoint | flag = exampleflag.png | coa1 = examplecoa1.png | Locator Map = examplemap.png | country text = {{flag|CountryName}} | country = | region = RegionName | foundation = 01.01.1001 | founded by = FounderName | government type = Democratic | government body = City Council | leader title = Mayor | mayor = MayorName | elevation = 100 | total area = 100 | urban area = 80 | metro area = 120 | time zone = UTC+2 | population = 1,000,000 | rank = 1st place | density = | demonym = Example Cityzen }}
See also
- {{CountryInfobox}}
- {{RegionInfobox}}