Bản mẫu:Infobox City/doc

WarningBefore making any changes to the template, please first try and compare your changes in the test template:Template:Infobox Settlement/Test. Thank you.

Usage

  • Important: Please enter all numeric values in a raw, unformatted fashion. References are to be included in their respective section footnotes field. Numeric values that are not "raw" may create an "Expression error". Raw values will be automatically formatted by the template. If you find a raw value is not formatted in your usage of the template, please post a notice on the discussion page for this template.
  • Empty Syntax

For questions see the talk page.

<!-- Infobox begins -->{{Infobox Settlement|official_name          = |other_name             =|native_name            =  <!-- for cities whose native name is not in English -->|nickname               = |settlement_type        = <!--For Town or Village (Leave blank for the default City)-->|motto                  = |image_skyline          = |imagesize              = |image_caption          = |image_flag             = |flag_size              =|image_seal             = |seal_size              =|image_shield           = |shield_size            =|city_logo              =|citylogo_size          =|image_map              = |mapsize                = |map_caption            = |image_map1             = |mapsize1               = |map_caption1           = |image_dot_map          =|dot_mapsize            =|dot_map_caption        =|dot_x =  |dot_y =|pushpin_map            = <!-- the name of a location map as per http://en.wikipedia.org/wiki/Template:Location_map -->|pushpin_label_position = <!-- the position of the pushpin label: left, right, top, bottom, none -->|pushpin_map_caption    =|pushpin_mapsize        =|subdivision_type       = <!--Country-->|subdivision_name       = <!--the name of the country-->|subdivision_type1      = |subdivision_name1      = |subdivision_type2      = |subdivision_name2      = |subdivision_type3      = |subdivision_name3      = |subdivision_type4      = |subdivision_name4      = |government_footnotes   =|government_type        =|leader_title           =|leader_name            =|leader_title1          =  <!-- for places with, say, both a mayor and a city manager -->|leader_name1           =|leader_title2          =|leader_name2           =|leader_title3          =|leader_name3           =|leader_title4          =|leader_name4           =|established_title      =  <!-- Settled -->|established_date       = |established_title2     =  <!-- Incorporated (town) -->|established_date2      = |established_title3     =  <!-- Incorporated (city) -->|established_date3      = |area_magnitude         = |unit_pref                = <!--Enter: Imperial, if Imperial (metric) is desired-->|area_footnotes           =|area_total_km2           = <!-- ALL fields dealing with a measurements are subject to automatic unit conversion-->|area_land_km2            = <!--See table @ Template:Infobox Settlement for details on automatic unit conversion-->|area_water_km2           = |area_total_sq_mi         = |area_land_sq_mi          = |area_water_sq_mi         = |area_water_percent       = |area_urban_km2           = |area_urban_sq_mi         = |area_metro_km2           = |area_metro_sq_mi         = |population_as_of               = |population_footnotes           =|population_note                = |population_total               = |population_density_km2         = |population_density_sq_mi       = |population_metro               =|population_density_metro_km2   =|population_density_metro_sq_mi =|population_urban               = |population_density_urban_km2   =|population_density_urban_sq_mi =|population_blank1_title        =|population_blank1              =|population_density_blank1_km2 =   |population_density_blank1_sq_mi = |timezone               = |utc_offset             = |timezone_DST           = |utc_offset_DST         = |latd= |latm= |lats= |latNS=|longd= |longm= |longs= |longEW=|elevation_footnotes    =  <!--for references: use <ref> </ref> tags-->|elevation_m            = |elevation_ft           = |postal_code_type       =  <!-- enter ZIP code, Postcode, Post code, Postal code... -->|postal_code            =|area_code              =|blank_name             =|blank_info             =|blank1_name            =|blank1_info            =|website                = |footnotes              = }} <!-- Infobox ends -->

Table

This table is still under construction.

Name and motto

Field NameUsageDescription
official_namerequiredThe official name in English
other_nameoptionalFor places with a former or more common name like Bombay or Saigon
native_nameoptionalThis will display under the official name in parentheses as such:
Warsaw
(Warszawa)
settlement_typeoptionalAny type of settlement can be entered, such as towns or villages (Leave blank for the default—City). Examples: see Town, Village, Hamlet, Governorate, Reservation.
nicknameoptionalFor a well known nickname(s).
mottooptionalWill place the motto under the nicknames

Images and maps

These variables are only used for generating categories for this article
Field NameUsageDescription
image_skylineoptionalDespite the name it can be any image that an editor wishes. Default size will be 250px
imagesizeoptionalCan be used to tweak the size of the image_skyline up or down. This can can helpful if an editor want to make the infobox wider.
image_captionoptionalWill place a caption under the image_skyline (if present)
image_flagoptionalUsed for a flag. Default size:100px
flag_size optionalCan be used to tweak the size of the image_flag up or down from 100px as desired.
image_sealoptionalIf the place has an official seal.
seal_sizeoptional
image_shield optionalCan be used for a place with a coat of arms.
shield_sizeoptional
city_logooptionalIf a place has an official logo
image_mapoptional
mapsizeoptional
map_captionoptional
image_map1optionalA secondary map image. The field image_map must be filled in first. Example see: Bloomsburg, Pennsylvania.
mapsize1optional
map_caption1optional
image_dot_mapoptionalA 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_mapsizeoptionalTo change the dot map size; default is 180px.
dot_map_captionoptionalFor placing a caption under the dot map.
dot_x
dot_y
optionalFor manually superimposing the dot left/right and up/down on the map.
pushpin_mapoptionalThe name of a location map as per Template:Location map (eg. Indonesia or Russia). The coordinate fields (eg. latd and longd) position a pushpin coordinate marker and label on the map automatically. Example see: Padang, Indonesia
pushpin_label_positionoptionalThe position of the label on the pushpin map relative to the pushpin coordinate marker. Valid options are {left, right, top, bottom, none}. If this field is not specified, the default value is right.
pushpin_mapsizeoptionalMust be entered as only a number—no need for px. The default value is 250.
pushpin_map_captionoptionalFill out if a different caption from map_caption is desired.

Government and Established information

Field NameUsageDescription
subdivision_typeoptionalThis field is almost always "Country".
subdivision_nameoptionalDepends on the subdivision_type
subdivision_type1
to
subdivision_type4
optionalCan be State/Province, region, county.
subdivision_name1
to
subdivision_name4
optional
government_footnotesoptionalIf 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_typeoptionalExample:
leader_titleoptionalFirst title of the place's leader, e.g. Mayor
leader_name optional
leader_title1
to
leader_title4
optional
leader_name1
to
leader_name4
optional
established_titleoptionalExample: First settled
established_date optional
established_title2 optionalExample: Incorporated (town)
established_date2optional
established_title3 optionalExample: Incorporated (city)
established_date3optional

Geographic information

These fields have dual automatic unit conversion meaning that if only metric values are entered, the imperial values will be automatically converted and vise-versa. If an editor wishes to over-ride the automatic conversion, e.g. if the source gives both metric and imperial or if a range of values is needed, they can should enter both values in their respective fields.
Field NameUsageDescription
unit_prefoptionalIf the editor would like to change the unit order to imperial (metric) they should enter imperial. The default is metric (imperial). However, template will swap the unit order automatically if the subdivision_name equals same variation of the U.S.

All values must be entered in a raw format, no commas, spaces, or unit symbols. The template will format them automatically.
area_footnotesoptionalIf 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.
area_magnitudeoptionalArea 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_km2optionalTotal area in square kilometers—abbreviation: km², which is wiki-linked. Value must be entered in raw format, no comms or spaces. Auto-converted to display square miles if area_total_sq_mi is empty.
Deprecated name =area_total
area_land_km2optionalLand area in square kilometers—abbreviation: km². Value must be entered in raw format, no comms or spaces. Auto-converted to display square miles if area_land_sq_mi is empty.
Deprecated name =area_land
area_water_km2optionalWater area in square kilometers—abbreviation: km². Value must be entered in raw format, no comms or spaces. Auto-converted to display square miles if area_water_sq_mi is empty.
Deprecated name =area_water
area_total_sq_mioptionalTotal area in square miles—abbreviation: sq mi, which is wiki-linked. Value must be entered in raw format, no comms or spaces. Auto-converted to display square kilometers if area_total_km2 is empty.
Deprecated name =TotalArea_sq_mi
area_land_sq_mi optionalLand area in square miles—abbreviation: sq mi. Value must be entered in raw format, no comms or spaces. Auto-converted to display square kilometers if area_land_km2 is empty.
Deprecated name =LandArea_sq_mi
area_water_sq_mioptionalWater area in square miles—abbreviation: sq mi. Value must be entered in raw format, no comms or spaces. Auto-converted to display square kilometers if area_water_km2 is empty.
Deprecated name =WaterArea_sq_mi
area_water_percentoptionalEnter the percent of water without the "%"
area_urban_km2optional
Deprecated name =area_urban
area_urban_sq_mioptional
Deprecated name =UrbanArea_sq_mi
area_metro_km2 optional
Deprecated name =area_metro
area_metro_sq_mioptional
Deprecated name =MetroArea_sq_mi
area_blank1_titleoptionalExample see London
area_blank1_km2optional
area_blank1_sq_mioptional
area_blank2_titleoptional
area_blank2_km2optional
area_blank2_sq_mioptional
elevation_footnotesoptionalIf 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.
elevation_moptionalRaw number entered in meters. Will automatically convert to display elevation in feet if elevation_ft is empty. However, if a range in elevation (i.e. 5–50 m) is desired, the editor must enter a converted range in the elevation_ft field to over-ride the automatic conversion.
Deprecated name =elevation
elevation_ftoptionalRaw number, entered in feet. Will automatically convert to display elevation in meters if elevation_m field is empty. 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.
latdoptionalLatitude degrees. Can also be used for decimal degrees.
latm optionalLatitude minutes
latsoptionalLatitude seconds
latNSoptionalLatitude North or South.
longdoptional
longmoptional
longsoptional
longEWoptional

Population infomation

The density fields have duel automatic unit conversion meaning that if only metric values are entered, the imperial values will be automatically converted and vise-versa. If an editor wishes to over-ride the automatic conversion, e.g. if the source gives both metric and imperial or if a range of values is needed, they can should enter both values in their respective fields.
Field NameUsageDescription
population_as_of optional
population_footnotesoptionalIf 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.
population_totaloptional
population_density_km2optional
Deprecated name =population_density
population_density_sq_mioptional
Deprecated name =population_density_mi2
population_metrooptional
population_density_metro_km2optional
population_density_metro_sq_mioptional
Deprecated name =population_density_metro_mi2
population_urban optional
population_density_urban_km2optional
population_density_urban_sq_mioptional
Deprecated name =population_density_urban_mi2
population_blank1_titleoptionalCan be used for estimates. Example: Windsor, Ontario
population_blank1optionalThe population value for blank1_title
population_density_blank1_km2optional
population_density_blank1_sq_mioptional
population_blank2_titleoptional
population_blank2optional
population_density_blank2_km2optional
population_density_blank2_sq_mioptional
population_noteoptionalA place for additional infomation such as the name of the source. See Windsor, Ontario for example.

Other infomation

Field NameUsageDescription
timezoneoptional
utc_offsetoptional
timezone_DSToptional
utc_offset_DSToptional
postal_code_typeoptional
postal_codeoptional
area_codeoptional
blank_nameoptionalCan be used for additional information such as car plates
blank_infooptionalThis is where the information for the blank_name would go. Example see: Warsaw.
blank1_nameoptional
blank1_infooptional
footnotesoptional
websiteoptional


Microformat

Bản mẫu này tạo ra đánh dấu HTML bao gồm một microformat hCard, làm cho máy tính có thể phân tích được tên địa điểm và vị trí, qua đó tự động phân loại bài viết trên Wikipedia, hoặc thông qua một công cụ trình duyệt được một ai đó điều hành để (chẳng hạn) thêm chủ thể vào sổ địa chỉ. Để biết thêm thông tin về việc sử dụng microformat trên Wikipedia, vui lòng xem dự án microformat.

hCard sử dụng các lớp HTML sau:

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

Vui lòng không đổi tên hoặc xóa các lớp này.vi:Tiêu bản:Tóm tắt về thành phố