模板: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编辑 | 历史
编者可以在本模板的沙盒创建 | 镜像和测试样例创建页面进行实验。
请将模板自身所属的分类添加在文档中。本模板的子页面