模板:Infobox settlement

模板頁面
Infobox settlement
文檔圖示 模板文件[檢視] [編輯] [查看歷史] [清除快取]

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

使用方式

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


參數名稱及描述

名稱及轉寫

參數名稱 用法 描述 可用的維基數據
name 缺少「official_name」時必填 常用名稱
official_name 缺少「name」時必填 官方名稱(可能需要使用 模板鏈接:{{lang}} 模板)
other_name 選填 其他名稱,有舊名或幾個名稱的城市使用,如孟買、西貢
native_name 選填 當地語言的地名(可用native_name_lang參數指明語言)。在name或official name下顯示(可能需要使用 模板鏈接:{{lang}} 模板)。
settlement_type 選填 可填任何類型,例如市、城市、鎮、村等。如果「name」參數也有填寫的話,此參數若有填寫則以顯示內容。如果population_metro、population_urban、population_rural其中至少一項有填寫,則settlement_type(或type)的填入文字會在「人口」段顯示代替「總計」。area_metro_km2、area_urban_km2等如有填寫,則settlement_type(或type)的填入文字也會在「面積」段出現。如果有需要,可另填total_type改變在「面積」、「人口」段的顯示文字。

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

P31
total_type 選填 指定在「面積」、「人口」段的總數一行顯示哪些文字,例如填"大倫敦"就會以大倫敦取代「總計」或settlement_type的文字。未有填寫則設為空格,並造成總人口和「人口」二字在同一行顯示。
nickname 選填 有名的䁥稱
motto 選填 在䁥稱下方顯示格言
translit_lang1 選填 在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 選填
translit_lang1_info 選填
translit_lang2 選填 加入第二種轉寫法。參見Dêlêg
translit_lang2_type 選填
translit_lang2_info 選填

圖片和地圖

參數名稱 用法 描述 可用的維基數據
image_skyline 選填 雖然參數名的意思是「天際線圖像」,其實本項會接受編者指定的任何圖像。預設顯示尺寸為250px P18
imagesize 選填 改變image_skyline圖像的顯示尺寸。若編者希望資訊模板較寬可在此更改。 不適用
image_caption 選填 在image_skyline圖像下加入說明文字(如有圖像)
image_flag 選填 顯示旗幟。預設顯示尺寸為100px P41[a]
flag_size 選填 改變旗幟的顯示尺寸。 不適用
flag_link 選填 旗幟類型
image_seal 選填 當地印章(如有)。
seal_link 選填
seal_size 選填 預設顯示尺寸為100px
image_shield 選填 當地徽章(如有)。 P94[b]
shield_link 選填 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 選填 預設顯示尺寸為100px 不適用
image_blank_emblem 選填 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 選填 To specify what type of emblem "image_blank_emblem" is. The default is Logo.
blank_emblem_size 選填 預設顯示尺寸為100pxDeprecated name =citylogo_size
blank_emblem_link 選填 Deprecated name =logo_link
image_map 選填
mapsize 選填 預設顯示尺寸為250px
map_caption 選填
image_map1 選填 設立第二地圖。「image_map」必須填寫才可顯示此參數。Example see: Bloomsburg, Pennsylvania.
mapsize1 選填 預設顯示尺寸為250px
map_caption1 選填
image_dot_map 選填 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. 不適用
dot_mapsize 選填 To change the dot map size; 預設顯示尺寸為180px
dot_map_caption 選填 For placing a caption under the dot map.
dot_x
dot_y
選填 For manually superimposing the dot left/right and up/down on the map.
pushpin_map 選填 Category:地理位置圖模板或其子分類內的地理位置圖名稱,例如 IndonesiaUSA California。地理位置圖的圖標位置由coordinates參數值或Wikidata的P625值(如coordinates參數留空)指定。如指定的location map不存在,會產生「表達式錯誤」。 不適用
pushpin_label_position 選填 地圖上標示文字位置(相對於圖標)。填寫 {left, right, top, bottom, none} 其中一個。none是無文字。留空則預設為 right(右)。 不適用
pushpin_mapsize 選填 純數字,請勿加px(否則圖標位置可能有錯),預設為250。 不適用
pushpin_map_caption 選填 Fill out if a different caption from map_caption is desired. 不適用

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

參數名稱 用法 描述 可用的維基數據
subdivision_type 選填 多數情況下為"國家"
subdivision_name 選填 依據 subdivision_type P17
(主權國家)
subdivision_type1
to
subdivision_type4
選填 可能為州、省、縣等
subdivision_name1
to
subdivision_name4
選填
seat_type 選填 同級政府所在地稱呼(如首府、省會、縣治等),默認為政府所在地
seat 選填 政府所在地 P36[c]
parts_type 選填 The label for the smaller subdivisions (defaults to Boroughs). 不適用
parts_style 選填 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 選填 Text or header of the list of smaller subdivisions.
p1, p2, etc. 選填 (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 選填 行政首腦所屬政黨
leader_title 選填 行政首腦稱呼,如省長、州長、區政府主席、市長、縣長等 P1313[d]
leader_name 選填 行政首腦姓名,如果有相關條目則會自動添加內鏈(若鏈接條目不正確可添加「&nbsp」等以取消鏈接) P6[d]
leader_title1
to
leader_title4
選填
leader_name1
to
leader_name4
選填 For long lists use 模板鏈接:{{Collapsible list}}. See Halifax for an example.
established_title 選填 Example: 有人定居
established_date 選填
established_title1 選填 Example: Incorporated (town)
established_date1 選填
established_title2 選填 Example: Incorporated (city)
established_date2 選填
established_title3 選填
established_date3 選填
founder 選填 建立者
named_for 選填 名字來源

地理資訊

面積項目提供自動單位換算,只要指定公制數值,就會自動產生英制數值,反之亦然。自動計算數值準確至小數點後1個數位。如果不想用自動轉換(例如想增加小數點後數位),可在相關項目填入想顯示的資料。
參數名稱 用法 描述 可用的維基數據
unit_pref 選填 如果想顯示英制(公制),填imperial。預設顯示"公制(英制)",如果 subdivision_name 填入"英國"、"美國"之類,則會顯示英制在前面。如果「unit_pref」填入「JP」或「subdivision_name」填入「日本」,則會僅顯示公制,如果想在其他地區信息框中僅顯示公制,請填入metric_only
For the middle east, a unit preference of dunam can be entered (only affects total area).
請使用「無格式」的數字,不要在中間加入「,」。
area_footnotes 選填 可在此填入參考文獻、注釋。可使用 <ref>{{Cite web|...}}</ref> 之類形式。
area_magnitude 選填 中文版設為無效。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 選填 總面積(杜納畝)。用於一些中東國家。請使用「無格式」的數字。如果area_total_km2 和 area_total_sq_mi留空,會自動計算兩者。
area_total_km2 選填 總面積(平方公里)。請使用「無格式」的數字。如果area_total_sq_mi留空,會自動計算平方英里數值。
Deprecated name =area_total
P2046[e]
area_land_km2 選填 陸地面積(平方公里)。請使用「無格式」的數字。如果area_land_sq_mi留空,會自動計算平方英里數值。
Deprecated name =area_land
area_water_km2 選填 Water area in square kilometers—symbol: km². 請使用「無格式」的數字。如果area_water_sq_mi留空,會自動計算平方英里數值。
Deprecated name =area_water
area_total_sq_mi 選填 總面積(平方英里)。請使用「無格式」的數字。如果area_total_km2留空,會自動計算平方公里數值。
Deprecated name =TotalArea_sq_mi
area_land_sq_mi 選填 陸地面積(平方英里)。請使用「無格式」的數字。如果area_land_km2留空,會自動計算平方公里數值。
Deprecated name =LandArea_sq_mi
area_water_sq_mi 選填 Water area in square miles—symbol: sq mi. 請使用「無格式」的數字。如果area_water_km2留空,會自動計算平方公里數值。
Deprecated name =WaterArea_sq_mi
area_water_percent 選填 percent of water(不用填 "%")
area_urban_km2 選填 Deprecated name =area_urban
area_urban_sq_mi 選填 Deprecated name =UrbanArea_sq_mi
area_metro_km2 選填 Deprecated name =area_metro
area_metro_sq_mi 選填 Deprecated name =MetroArea_sq_mi
area_blank1_title 選填 Example see London 不適用
area_blank1_km2 選填
area_blank1_sq_mi 選填
area_blank2_title 選填
area_blank2_km2 選填
area_blank2_sq_mi 選填
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
P2044
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 選填 填入最高和最低的海拔。
coordinates 選填 坐標。採用{{Coord|42|19|53|N|83|2|45|E|...}}之類格式,其中分和秒可以省略,後面加上 "display=inline,title" 就會在信息框和頁面右上方顯示坐標。
詳見 模板鏈接:{{Coord/doc}},及 About the Google Earth Geographic Web Layer
注意:如果頁面另一處有coord模板指明display=title(或包括title),可能產生「每頁不能有多個主標籤」錯誤,請更改其中一個(例如刪去title)。
P625[f]
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

人口資訊

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

其他資訊

參數名稱 用法 描述 可用的維基數據
timezone 選填 時區 P421
utc_offset 選填 例如 +1
timezone_DST 選填 日光節約時間下的時區
utc_offset_DST 選填 日光節約時間下的時區,例如 +2
postal_code_type 選填
postal_code 選填 郵政編號 P281
area_code 選填 電話區號 P473
registration_plate_type 選填 預設為車輛號牌
registration_plate 選填
blank_name 選填 可在此填上附加資料。 不適用
blank_info 選填 對應 blank_name 標題的資料。
blank1_name

blank6_name
選填
blank1_info

blank6_info
選填
footnotes 選填 不適用
website 選填 P856

使用範例

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 of Detroit
從上到下從左到右:底特律市中心天際線和底特律河、福克斯劇院(底特律)、多蘿茜·H·特科爾宅、貝爾島花房、底特律精神塑像、漁人大廈、東市場 (底特律)、韋恩州立大學主樓「Old Main」、大使橋和底特律藝術學院
底特律旗幟
旗幟
底特律官方圖章
圖章
詞源:法語:détroit(海峽)
綽號:The Motor City, Motown, Renaissance City, City of the Straits, The D, Hockeytown, The Automotive Capital of the World, Rock City, The 313
格言:拉丁語Speramus Meliora; Resurget Cineribus
(We Hope For Better Things; It Shall Rise From the Ashes)
在韋恩縣和密歇根州的位置
在韋恩縣和密歇根州的位置
國家 美國
密歇根州
韋恩縣
成立於1701
法人地位1806
政府
 • 類型市長-議會制政府
 • 行政機構底特律市議會
 • 市長邁克·達根D
面積
 • 市142.87 平方英里(370.03 平方公里)
 • 陸地138.75 平方英里(359.36 平方公里)
 • 水域4.12 平方英里(10.67 平方公里)
 • 市區1,295 平方英里(3,000 平方公里)
 • 都會區3,913 平方英里(10,000 平方公里)
海拔600 英尺(200 公尺)
人口(2013)
 • 市688,701人
 • 排名美國第18
 • 密度5,142人/平方英里(1,985人/平方公里)
 • 市區3,734,090(美國第11)
 • 都會區4,292,060(美國第14)
 • CSA5,311,449(美國第12
居民稱謂Detroiter
時區ESTUTC−5
 • 夏時制EDTUTC−4
電話區號313
FIPS編碼26-22000
GNIS特徵ID1617959
網站DetroitMI.gov
{{Infobox settlement
| name                    = 底特律
| official_name           = City of Detroit
| native_name_lang        = fr
| settlement_type         = 市
| image_skyline           = Detroit Montage 3.png
| imagesize               = 320px
| image_caption           = 從上到下從左到右:{{link-en|底特律市中心|Downtown Detroit}}天際線和[[底特律河]]、{{link-en|福克斯剧院(底特律)|Fox Theatre (Detroit)}}、{{link-en|多萝茜·H·特科尔宅|Dorothy H. Turkel House}}、{{link-en|贝尔岛花房|Belle Isle Conservatory}}、{{link-en|底特律精神塑像|The Spirit of Detroit}}、[[漁人大廈]]、{{link-en|东市場 (底特律)|Eastern Market, Detroit}}、[[韋恩州立大學]]主樓“Old Main”、[[大使橋]]和{{link-en|底特律艺术学院|Detroit Institute of Arts}}
| image_flag              = Flag of Detroit.svg
| image_seal              = Seal of Detroit (B&W).svg
| etymology               = {{lang-fr|détroit}}(海峽)
| nickname                = The Motor City, Motown, Renaissance City, City of the Straits, The D, Hockeytown, The Automotive Capital of the World, Rock City, The 313
| motto                   = {{lang-la|[[Gabriel Richard#Work in Detroit|Speramus Meliora; Resurget Cineribus]]}}<br /><small>(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             = 在韋恩縣和密歇根州的位置
| coordinates_footnotes   = 
| pushpin_map             = USA
| pushpin_map_caption     =在美國的位置
| subdivision_type        =     國家
| subdivision_name        = {{USA}}
| subdivision_type1       = [[美國各州|州]]
| subdivision_name1       = [[密歇根州]]
| subdivision_type2       = [[密歇根州行政區劃|縣]]
| subdivision_name2       = [[韋恩縣 (密歇根州)|韋恩縣]]
| established_title       = 成立於
| established_date        = 1701
| established_title2      = 法人地位
| established_date2       = 1806
| government_footnotes    = 
| government_type         = [[市长-议会制政府]]
| governing_body          = {{link-en|底特律市议会|Detroit City Council}}
| leader_title            = 市長
| leader_name             = {{link-en|迈克·达根|Mike Duggan}}([[美國民主黨|D]])
| leader_title1           = 
| leader_name1            = 
| leader_title2           =  議會
| leader_name2            = 
| unit_pref               = Imperial
| area_footnotes          = 
| area_magnitude          =
| area_total_km2          = 370.03
| area_land_km2           = 359.36
| area_water_km2          = 10.67
| area_total_sq_mi        = 142.87
| area_land_sq_mi         = 138.75
| area_water_sq_mi        = 4.12
| area_urban_sq_mi        = 1295
| area_metro_sq_mi        = 3913
| elevation_footnotes     = 
| elevation_ft            = 600
| population_footnotes    = 
| population_as_of        = 2013
| population_total        = 688,701 
| population_rank         = 美國[[美國城市列表 (按人口排列)|第18]]
| population_urban        = 3,734,090(美國第11)
| population_metro        = 4,292,060(美國第14)
| population_blank1_title = [[聯合統計區|CSA]]
| population_blank1       = 5,311,449(美國[[聯合統計區列表|第12]])
| population_density_sq_mi= {{#expr:713777/138.8 round 0}}
| population_demonym      = Detroiter
| population_note         =
| timezone                = [[北美東部時區|EST]]
| utc_offset              = −5
| timezone_DST            = [[東部夏令時間|EDT]]
| utc_offset_DST          = −4
| postal_code_type        =
| postal_code             =
| area_code               = [[區號313|313]]
| blank_name              = [[Federal Information Processing Standard|FIPS編碼]]
| blank_info              = 26-22000
| blank1_name             = [[地名信息系統|GNIS]]特征ID
| blank1_info             = 1617959
| website                 = [http://www.detroitmi.gov/ DetroitMI.gov]
| footnotes               =
}}

注釋

  1. {{Wikidata|property|raw|P41}}
  2. {{Wikidata|property|raw|P94}}
  3. {{Wikidata|property|linked|P36}}
  4. 4.0 4.1 未必是中文。
  5. {{Wikidata|property|raw|P2046}}
  6. 留空則使用P625值,但只有display=inline效果,如需有display=inline,title效果,可使用{{coord|region:...|...|display=inline,title}}。
  7. {{Wikidata|qualifier|P1082|P585}}或{{Wikidata|qualifier|single|raw|P1082|P585}}
  8. {{Wikidata|property|raw|P1082}}

使用與重定向

至少有12個模板使用了本模板中的參數,有多個模板重定向至本模板。

微格式

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

hCard 使用以下的 HTML class:

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

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

  • geo
  • latitude
  • longtitude

請勿將這些class更名或刪除。

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

追蹤分類

上述文檔內容嵌入自Template:Infobox settlement/doc編輯 | 歷史
編者可以在本模板的沙盒創建 | 鏡像和測試樣例創建頁面進行實驗。
請將模板自身所屬的分類添加在文檔中。本模板的子頁面