本页使用了标题或全文手工转换
Permanently protected template

Template:Infobox settlement

维基百科,自由的百科全书
(重定向自Template:Infobox Settlement
跳转至: 导航搜索
Infobox settlement
文档图示 模板文档[查看] [编辑] [历史] [清除]

本信息框模板適用於人類聚落(城市、城鎮、村落等)的條目中,也可用於行政區、郡、省等等。實際上,任何國家以下的行政區都可使用本信息框。以下的表格將解說各參數的意義和使用方式。

使用方式

  • 注意:在使用#expr:計算的參數(例如人口、面積、高度等)輸入數值時,如果出現「表達式錯誤」,請使用「無格式」的數字,不要在中間加入「,」,例如應使用10000,而非10,000。(如問題已修正,可忽略本提示。)


表格

名稱和座右銘

Field Name Usage Description
name required if official_name missing 常用名称
official_name required if name missing 官方名称(可能需要使用 {{lang}} 模板)
other_name optional For places with a former or more common name like Bombay or Saigon
native_name optional 當地語言的地名(可用native_name_lang參數指明語言)。在name或official name下顯示(可能需要使用 {{lang}} 模板)。
settlement_type optional 可填任何類型,例如市、城市、鎮、村等。If set, will be displayed under the names, provided that name is filled in. 如果population_metro、population_urban、population_rural其中至少一項有填寫,則settlement_type(或type)的填入文字會在「人口」段顯示代替「總計」。area_metro_km2、area_urban_km2等如有填寫,則settlement_type(或type)的填入文字也會在「面積」段出現。如果有需要,可另填total_type改變在「面積」、「人口」段的顯示文字。

如果留空,則使用Wikidata的#property:P31生成顯示文字。

total_type optional 指定在「面積」、「人口」段的總數一行顯示哪些文字,例如填"大倫敦"就會以大倫敦取代「總計」或settlement_type的文字。For no label, can be set to  ; (this precise value also causes the total population to be displayed on the same line as the word Population).
nickname optional well-known nickname(s)
motto optional Will place the motto under the nicknames
translit_lang1 optional Will place the "entry" before the word "transliteration(s)". Can be used to specify a particular language like in Dêlêg or one may just enter "Other", like in Gaza's article.
translit_lang1_type optional
translit_lang1_info optional
translit_lang2 optional Will place a second transliteration. See Dêlêg
translit_lang2_type optional
translit_lang2_info optional

圖片和地圖

Field Name Usage Description
image_skyline 選填 雖然參數名的意思是「天際線圖像」,其實本項會接受編者指定的任何圖像。預設顯示尺寸為250px
imagesize 選填 改變image_skyline圖像的顯示尺寸。This can can helpful if an editor want to make the infobox wider.
image_caption 選填 在image_skyline圖像下加入說明文字(如有圖像)
image_flag 選填 Used for a flag. Default size:100px
flag_size 選填 Can be used to tweak the size of the image_flag up or down from 100px as desired.
flag_link optional
image_seal optional If the place has an official seal.
seal_link optional
seal_size optional Default is 100px.
image_shield optional Can be used for a place with a coat of arms.
shield_link optional Can be used if a wiki article if known but is not automatically linked by the template. See Coquitlam, British Columbia's infobox for an example.
shield_size optional Default is 100px.
image_blank_emblem optional Can be used if a place has an official logo, crest, emblem, etc. Logo is the default type. See Kingston upon Hull's infobox for an example.
Deprecated name =city_logo
blank_emblem_type optional To specify what type of emblem "image_blank_emblem" is. The default is Logo.
blank_emblem_size optional Default is 100px. Deprecated name =citylogo_size
blank_emblem_link optional Deprecated name =logo_link
image_map optional
mapsize optional Default is 250px.
map_caption optional
image_map1 optional A secondary map image. The field image_map must be filled in first. Example see: Bloomsburg, Pennsylvania.
mapsize1 optional Default is 250px.
map_caption1 optional
image_dot_map optional A field for manually superimposing a dot over a blank map using an "X" & "Y" system. Blank maps, if available, can be found over at Wikimedia Commons. Example see: Rainbow Lake, Alberta
dot_mapsize optional To change the dot map size; default is 180px.
dot_map_caption optional For placing a caption under the dot map.
dot_x
dot_y
optional For manually superimposing the dot left/right and up/down on the map.
pushpin_map optional Category:地理位置圖模板或其子分類內的地理位置圖名稱,例如 IndonesiaUSA California。地理位置圖的圖標位置由latd、longd等坐標參數指定。如指定的location map不存在,會產生「表達式錯誤」。
pushpin_label_position optional 地圖上標示文字位置(相對於圖標)。填 {left, right, top, bottom, none} 其中一個。none是無文字。留空則預設為 right(右)。
pushpin_mapsize optional 純數字,請勿加px(否則圖標位置可能有錯),預設為250。
pushpin_map_caption optional Fill out if a different caption from map_caption is desired.

地理位置、分區、政府和創建資訊

Field Name Usage Description
subdivision_type optional almost always "國家"
subdivision_name optional Depends on the subdivision_type
subdivision_type1
to
subdivision_type4
optional Can be State/Province, region, county.
subdivision_name1
to
subdivision_name4
optional
seat_type optional The label for the seat of government (defaults to Seat).
seat optional The seat of government.
parts_type optional The label for the smaller subdivisions (defaults to Boroughs).
parts_style optional Set to list to display as a collapsible list, coll as a collapsed list, or para to use paragraph style. Default is list for up to 5 items, otherwise coll.
parts optional Text or header of the list of smaller subdivisions.
p1, p2, etc. optional (maximum p50) The smaller subdivisions to be listed. Example: 華沙
government_footnotes 選填 If a reference(s) is available this where to put them using the <ref> </ref> tags and possibly the citing format at {{Cite web}} within the ref tags.
government_type 選填 Example:
governing_body 選填 行政機構的名稱,如中華民國台北市台北市政府日本東京都東京都廳
leader_party 選填 Political party of the place's leader.
leader_title 選填 First title of the place's leader, e.g. Mayor
leader_name 選填 Tip: Names are automatically wiki-linked if an article exists; if the target is not the intended one, insert a character such as " " to disable the link
leader_title1
to
leader_title4
選填
leader_name1
to
leader_name4
選填 For long lists use {{Collapsible list}}. See Halifax for an example.
established_title 選填 Example: First settled
established_date 選填
established_title1 選填 Example: Incorporated (town)
established_date1 選填
established_title2 選填 Example: Incorporated (city)
established_date2 選填
established_title3 選填
established_date3 選填
founder 選填 The name of the settlement's founder
named_for 選填 The source of the name of the settlement (a person, a place, et cetera)

地理資訊

面積項目提供自動單位換算,只要指定公制數值,就會自動產生英制數值,反之亦然。自動計算數值準確至小數點後1個數位。如果不想用自動轉換(例如想增加小數點後數位),可在相關項目填入想顯示的資料。
Field Name Usage Description
unit_pref optional 如果想顯示英制(公制),填imperial。預設顯示"公制(英制)",如果 subdivision_name 填入"英國"、"美國"之類,則會顯示英制在前面。
For the middle east, a unit preference of dunam can be entered (only affects total area).
請使用「無格式」的數字,不要在中間加入「,」。
area_footnotes optional 可在此填入參考文獻、注釋。可使用 <ref>{{Cite web|...}}</ref> 之類形式。
area_magnitude optional 中文版設為無效。Area magnitude of total_area in terms of m². Should enter 1 E+6 for area of 1.0 km². See 1 E+6 m²
area_total_dunam optional 總面積(dunams)。用於一些中東國家。請使用「無格式」的數字。如果area_total_km2 和 area_total_sq_mi留空,會自動計算兩者。
area_total_km2 optional 總面積(平方公里)。請使用「無格式」的數字。如果area_total_sq_mi留空,會自動計算平方英里數值。
Deprecated name =area_total
area_land_km2 optional 陸地面積(平方公里)。請使用「無格式」的數字。如果area_land_sq_mi留空,會自動計算平方英里數值。
Deprecated name =area_land
area_water_km2 optional Water area in square kilometers—symbol: km². 請使用「無格式」的數字。如果area_water_sq_mi留空,會自動計算平方英里數值。
Deprecated name =area_water
area_total_sq_mi optional 總面積(平方英里)。請使用「無格式」的數字。如果area_total_km2留空,會自動計算平方公里數值。
Deprecated name =TotalArea_sq_mi
area_land_sq_mi optional 陸地面積(平方英里)。請使用「無格式」的數字。如果area_land_km2留空,會自動計算平方公里數值。
Deprecated name =LandArea_sq_mi
area_water_sq_mi optional Water area in square miles—symbol: sq mi. 請使用「無格式」的數字。如果area_water_km2留空,會自動計算平方公里數值。
Deprecated name =WaterArea_sq_mi
area_water_percent optional percent of water(不用填 "%")
area_urban_km2 optional Deprecated name =area_urban
area_urban_sq_mi optional Deprecated name =UrbanArea_sq_mi
area_metro_km2 optional Deprecated name =area_metro
area_metro_sq_mi optional Deprecated name =MetroArea_sq_mi
area_blank1_title optional Example see London
area_blank1_km2 optional
area_blank1_sq_mi optional
area_blank2_title optional
area_blank2_km2 optional
area_blank2_sq_mi optional
elevation_footnotes 選填 可在此填入高度的參考文獻、注釋,可使用 <ref>{{Cite web|...}}</ref>。
elevation_m 選填 公尺海拔,填入純數字。如果elevation_ft留空,會自動計算英尺海拔。 However, if a range in elevation (i.e. 5–50 m ) is desired, the editor must enter a converted range in the elevation_m field to over-ride the automatic conversion. use the "max" and "min" fields below
Deprecated name =elevation
elevation_ft 選填 英尺海拔,填入純數字。如果elevation_m留空,會自動計算公尺海拔。 However, if a range in elevation (i.e. 50–500 ft ) is desired, the editor must enter a converted range in the elevation_m field to over-ride the automatic conversion. use the "max" and "min" fields below
elevation_max_m, elevation_max_ft, elevation_min_m, elevation_min_ft 選填 填入最高和最低的海拔。
coor_pinpoint 選填 If needed, to specify more exactly where (or what) coordinates are given (e.g. Town Hall) or a specific place in a larger area (e.g. a city in a county). Example: Masovian Voivodeship Deprecated name =coor_type
coordinates_type 選填 指明coord模板的region、type和scale,見{{coord}},例如填 |coordinates_type =region:GB_type:city_scale:1000
coordinates_display 選填 設定 {{Geobox coor}} title= 的參數,從而設定 {{Coord}} display= 的參數。如果填coordinates_display =inline,title,就會在信息框和頁面右上方顯示坐標。
詳見 {{Coord/doc}},及 About the Google Earth Geographic Web Layer
注意:如果頁面另一處有coord模板指明display=title(或包括title),可能產生「每頁不能有多個主標籤」錯誤,請更改其中一個(例如刪去title)。
latd optional 緯度。Can also be used for decimal degrees.
latm optional 緯分。
lats optional 緯秒。
latNS optional 北緯填 N,南緯填 S。如果有填寫latm、longm,則latNS和longEW亦需填寫,否則會顯示"Coordinates: Unknown argument format"。
longd optional
longm optional
longs optional
longEW optional

人口資訊

各「密度」項目配有公制-英制的自動轉換,只要指定公制數值,就會自動產生英制數值,反之亦然。如果不想用自動轉換,可在相關「密度」項目填入想顯示的資料。如要自動計算密度,在任何「密度」項目內填 auto (準確度為兩個有效數字)。
Field Name Usage Description
population_as_of 選填 人口數字是哪一年
population_footnotes 選填 填寫參考資料(如有),可使用 <ref>{{Cite web|...}}</ref>。
population_total 選填 人口總數(填入純阿拉伯數字,如果填入標點、字母等「非數字」或中文字,可引致使用 auto 計算人口密度的項目出現「表達式錯誤」)
population_density_km2 選填 Deprecated name =population_density
population_density_sq_mi 選填 Deprecated name =population_density_mi2
population_metro 選填
population_density_metro_km2 選填
population_density_metro_sq_mi 選填 Deprecated name =population_density_metro_mi2
population_urban optional
population_density_urban_km2 optional
population_density_urban_sq_mi optional Deprecated name =population_density_urban_mi2
population_blank1_title optional Can be used for estimates. Example: Windsor, Ontario
population_blank1 optional The population value for blank1_title
population_density_blank1_km2 optional
population_density_blank1_sq_mi optional
population_blank2_title optional
population_blank2 optional
population_density_blank2_km2 optional
population_density_blank2_sq_mi optional
population_demonym Not currently available 「Demonym」或「gentilic」是對於某地方的居民的稱呼,例如American、Chinese。由於中文用「地名」加「人」來表示某地方的人,此項目在中文無甚作用。
population_note optional A place for additional information such as the name of the source.

其他資訊

Field Name Usage Description
timezone 選填 時區
utc_offset 選填 例如 +1
timezone_DST 選填
utc_offset_DST 選填
postal_code_type 選填
postal_code 選填
area_code 選填
registration_plate 選填
blank_name 選填 可在此填上附加資料,例如「車牌號碼」(car plates)。
blank_info 選填 對應 blank_name 標題的資料。
blank1_name

blank6_name
選填
blank1_info

blank6_info
選填
twin1

twin7
選填 友好城市名稱
twin1_country

twin7_country
選填 友好城市所屬國家
footnotes 選填
website 選填

微格式

本模板產生的HTML記號包含了HCard 微格式,能夠讓電腦解析地點名稱和位置,具有可自動將文章分類至適當類別的功能。在HCard中有Geo微格式,能讓電腦分析经纬度資料,因此可在地圖上查詢,或下載至全球定位系统(GPS)裝置。關於微格式的更多使用資訊,請參閱維基百科的微格式專題

hCard 使用以下的 HTML class:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "vcard"

Geo由{{coord}}產生,並使用以下的HTML class:

  • "geo"
  • "latitude"
  • "longitude"

请勿将这些class更名或删除。

當指定經緯度數值時,請避免太過詳細。

使用範例

From Detroit — note pipe characters are in front of the line of cell data, instead of at the end of the line, which simplifies the spacing:

底特律
City
City of Detroit
Images from top to bottom, left to right: Downtown Detroit skyline, Spirit of Detroit, Greektown, Ambassador Bridge, Michigan Soldiers' and Sailors' Monument, Fox Theatre, and Comerica Park.
Images from top to bottom, left to right: Downtown Detroit skyline, Spirit of Detroit, Greektown, Ambassador Bridge, Michigan Soldiers' and Sailors' Monument, Fox Theatre, and Comerica Park.
底特律旗幟
旗幟
底特律官方圖章
官方圖章
綽號:The Motor City, Motown, Renaissance City, The D, Hockeytown, The Automotive Capital of the World, Rock City, The 313
格言:Speramus Meliora; Resurget Cineribus
(Latin: We Hope For Better Things; It Shall Rise From the Ashes)
Location within Wayne County, Michigan and the state of Michigan
Location within Wayne County, Michigan and the state of Michigan
Infobox settlement在美国的位置Lua错误 模块:Location_map的第364行:No value was provided for longitude
Location within the contiguous United States of America
Country  United States of America
State  密西根州
County Wayne
Founded 1701
Incorporated 1806
政府
 • 类型 Mayor-Council
 • Mayor Dave BingD
 • City Council
面积
 • City
142.87 平方英里(370.03 平方公里)
 • 陸地
138.75 平方英里(359.36 平方公里)
 • 水域
4.12 平方英里(10.67 平方公里)
 • 市區
1,295 平方英里(3,000 平方公里)
 • 都會區
3,913 平方英里(10,000 平方公里)
海拔 600 英尺(200 米)
人口(2011)
 • City 706,585
 • 排名 18th in U.S.
 • 密度 5,142/平方英里(1,985/平方公里)
 • 市区 3,863,924
 • 都會區 4,285,832 (US: 13th)
 • CSA 5,207,434 (US: 11th)
居民称谓 Detroiter
時區 ESTUTC−5
 • 夏令時 EDTUTC−4
電話區號 313
FIPS code 26-22000
GNIS feature ID 1617959, 1626181
網站 DetroitMI.gov
{{Infobox settlement
| name                    = 底特律
| settlement_type         = [[City (Michigan)|City]]
| official_name           = City of Detroit
| image_skyline           = Detroit Montage.jpg
| imagesize               = 290px
| image_caption           = Images from top to bottom, left to right: [[Downtown Detroit]] skyline, [[Spirit of Detroit]], [[Greektown Historic District|Greektown]], [[Ambassador Bridge]], [[Michigan Soldiers' and Sailors' Monument]], [[Fox Theatre (Detroit)|Fox Theatre]], and [[Comerica Park]].
| image_flag              = Flag of Detroit.svg
| image_seal              = The Official City Seal of the City of Detroit, Michigan.svg
| etymology               = {{lang-fr|détroit}} ([[strait]])
| nickname                = The Motor City, Motown, Renaissance City, The D, Hockeytown, The Automotive Capital of the World, Rock City, The 313
| motto                   = ''Speramus Meliora; Resurget Cineribus''<br /><small>([[Latin]]: We Hope For Better Things; It Shall Rise From the Ashes)</small>
| image_map               = Wayne County Michigan Incorporated and Unincorporated areas Detroit highlighted.svg
| mapsize                 = 250x200px
| map_caption             = Location within [[Wayne County, Michigan]] and the state of [[Michigan]]
| pushpin_map             = USA
| pushpin_map_caption     = Location within the [[Contiguous United States|contiguous United States of America]]
| coordinates = {{coord|42|19|53|N|83|2|45|W}}
| coordinates_footnotes   =
| subdivision_type        = Country
| subdivision_name        = {{flagu|United States of America}}
| subdivision_type1       = State
| subdivision_name1       = {{flag|Michigan}}
| subdivision_type2       = [[List of counties in Michigan|County]]
| subdivision_name2       = [[Wayne County, Michigan|Wayne]]
| established_title       = Founded
| established_date        = 1701
| established_title2      = Incorporated
| established_date2       = 1806
| government_footnotes    = <!-- for references: use<ref> tags -->
| government_type         = [[Mayor-council government|Mayor-Council]]
| leader_title            = [[List of mayors of Detroit, Michigan|Mayor]]
| leader_name             = [[Dave Bing]]
| leader_party            = [[Democratic Party (United States)|D]]
| leader_title1           = [[Detroit City Council|City Council]]
| leader_name1            = {{collapsible list|bullets=yes
 | title = Members
 | 1 = [[Charles Pugh]] – Council President
 | 2 = [[Gary Brown (Detroit politician)|Gary Brown]] – Council President Pro-Tem
 | 3 = [[JoAnn Watson]]
 | 4 = [[Kenneth Cockrel, Jr.]]
 | 5 = [[Saunteel Jenkins]]
 | 6 = [[Andre Spivey]]
 | 7 = [[James Tate (Detroit politician)|James Tate]]
 | 8 = [[Brenda Jones (Detroit politician)|Brenda Jones]]
 | 9 = [[Kwame Kenyatta]]
 }}
| unit_pref               = Imperial
| area_footnotes          =
| area_magnitude          =
| area_total_sq_mi        = 142.87
| area_total_km2          = 370.03
| area_land_sq_mi         = 138.75
| area_land_km2           = 359.36
| area_water_sq_mi        = 4.12
| area_water_km2          = 10.67
| area_urban_sq_mi        = 1295
| area_metro_sq_mi        = 3913
| elevation_footnotes     =
| elevation_ft            = 600
| population_as_of        = 2011
| population_footnotes    =
| population_total        = 706,585
| population_rank         = [[List of United States cities by population|18th in U.S.]]
| population_urban        = 3,863,924
| population_metro        = 4,285,832 (US: [[List of United States metropolitan statistical areas|13th]])
| population_blank1_title = [[Combined statistical area|CSA]]
| population_blank1       = 5,207,434 (US: [[List of United States combined statistical areas|11th]])
| population_density_sq_mi= {{#expr:713777/138.8 round 0}}
| population_demonym      = Detroiter
| population_note         =
| timezone                = [[Eastern Time Zone (North America)|EST]]
| utc_offset              = −5
| timezone_DST            = [[Eastern Daylight Time|EDT]]
| utc_offset_DST          = −4
| postal_code_type        =
| postal_code             =
| area_code               = [[Area code 313|313]]
| blank_name              = [[Federal Information Processing Standards|FIPS code]]
| blank_info              = {{FIPS|26|22000}}
| blank1_name             = [[Geographic Names Information System|GNIS]] feature ID
| blank1_info             = {{GNIS4|1617959}}, {{GNIS4|1626181}}
| website                 = [http://www.detroitmi.gov/ DetroitMI.gov]
| footnotes               =
}}


微格式

本模板產生的HTML記號包含了HCard 微格式,能夠讓電腦解析地點名稱和位置,具有可自動將文章分類至適當類別的功能。在HCard中有Geo微格式,能讓電腦分析经纬度資料,因此可在地圖上查詢,或下載至全球定位系统(GPS)裝置。關於微格式的更多使用資訊,請參閱維基百科的微格式專題

hCard 使用以下的 HTML class:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "vcard"

Geo由{{coord}}產生,並使用以下的HTML class:

  • "geo"
  • "latitude"
  • "longitude"

请勿将这些class更名或删除。

當指定經緯度數值時,請避免太過詳細。