热门问题
时间线
聊天
视角

模板:Infobox settlement/sandbox/doc

来自维基百科,自由的百科全书

Remove ads

This template is aliased or used as a sub-template for several infobox front-end templates. It should be used to produce an Infobox for human settlements (cities, towns, villages, communities) as well as other administrative districts, counties, provinces, et cetera—in fact, any subdivision below the level of a country, for which {{Infobox country}} should be used. Parameters are described in the table below. For questions, see the talk page. For a U.S. city guideline, see WP:USCITIES.

Remove ads

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.
  • An expression error may also occur when any coordinate parameter has a value, but one or more coordinate parameters are blank or invalid.

Basic blank template, ready to cut and paste. See the next section for a copy of the template with all parameters and comments. See the table below that for a full description of each parameter.

Remove ads

Using metric units

{{Infobox settlement
| name                    = 
| native_name             = 
| native_name_lang        = <!-- ISO 639-2 code e.g. "fr" for French. If more than one, use {{lang}} instead -->
| settlement_type         = 
| image_skyline           = 
| image_alt               = 
| image_caption           = 
| image_flag              = 
| flag_alt                = 
| image_seal              = 
| seal_alt                = 
| image_shield            = 
| shield_alt              = 
| etymology               = 
| nickname                = 
| motto                   = 
| image_map               = 
| map_alt                 = 
| map_caption             = 
| pushpin_map             = 
| pushpin_label_position  = 
| pushpin_map_alt         = 
| pushpin_map_caption     = 
| coordinates             = <!-- {{Coord}} -->
| coor_pinpoint           = 
| coordinates_type        = 
| coordinates_footnotes   = 
| coordinates_region      = 
| subdivision_type        = Country
| subdivision_name        = 
| subdivision_type1       = 
| subdivision_name1       = 
| subdivision_type2       = 
| subdivision_name2       = 
| subdivision_type3       = 
| subdivision_name3       = 
| established_title       = 
| established_date        = 
| founder                 = 
| seat_type               = 
| seat                    = 
| government_footnotes    = 
| leader_party            = 
| leader_title            = 
| leader_name             = 
| unit_pref               = Metric
<!-- ALL fields with measurements have automatic unit conversion -->
<!-- for references: use <ref> tags -->
| area_footnotes          = 
| area_urban_footnotes    = <!-- <ref> </ref> -->
| area_rural_footnotes    = <!-- <ref> </ref> -->
| area_metro_footnotes    = <!-- <ref> </ref> -->
| area_magnitude          = <!-- <ref> </ref> -->
| area_note               = 
| area_water_percent      = 
| area_rank               = 
| area_blank1_title       = 
| area_blank2_title       = 
<!-- square kilometers -->
| area_total_km2          = 
| area_land_km2           = 
| area_water_km2          = 
| area_urban_km2          = 
| area_rural_km2          = 
| area_metro_km2          = 
| area_blank1_km2         = 
| area_blank2_km2         = 
<!-- hectares -->
| area_total_ha           = 
| area_land_ha            = 
| area_water_ha           = 
| area_urban_ha           = 
| area_rural_ha           = 
| area_metro_ha           = 
| area_blank1_ha          = 
| area_blank2_ha          = 
| length_km               = 
| width_km                = 
| dimensions_footnotes    = 
| elevation_footnotes     = 
| elevation_m             = 
| population_as_of        = 
| population_footnotes    = 
| population_total        = 
| population_density_km2  = auto
| population_note         = 
| population_demonym      = 
| timezone1               = 
| utc_offset1             = 
| timezone1_DST           = 
| utc_offset1_DST         = 
| postal_code_type        = 
| postal_code             = 
| area_code_type          = 
| area_code               = 
| iso_code                = 
| website                 = <!-- {{URL|example.com}} -->
| footnotes               = 
}}
Remove ads

Using non-metric units

{{Infobox settlement
| name                    = 
| native_name             = 
| native_name_lang        = <!-- ISO 639-2 code e.g. "fr" for French. If more than one, use {{lang}} instead -->
| settlement_type         = 
| image_skyline           = 
| image_alt               = 
| image_caption           = 
| image_flag              = 
| flag_alt                = 
| image_seal              = 
| seal_alt                = 
| image_shield            = 
| shield_alt              = 
| etymology               = 
| nickname                = 
| motto                   = 
| image_map               = 
| map_alt                 = 
| map_caption             = 
| pushpin_map             = 
| pushpin_label_position  = 
| pushpin_map_alt         = 
| pushpin_map_caption     = 
| coordinates             = <!-- {{Coord}} -->
| coor_pinpoint           = 
| coordinates_type        = 
| coordinates_footnotes   = 
| coordinates_region      = 
| subdivision_type        = Country
| subdivision_name        = 
| subdivision_type1       = 
| subdivision_name1       = 
| subdivision_type2       = 
| subdivision_name2       = 
| subdivision_type3       = 
| subdivision_name3       = 
| established_title       = 
| established_date        = 
| founder                 = 
| seat_type               = 
| seat                    = 
| government_footnotes    = 
| leader_party            = 
| leader_title            = 
| leader_name             = 
| unit_pref               = US<!-- or UK -->
<!-- ALL fields with measurements have automatic unit conversion -->
<!-- for references: use <ref> tags -->
| area_footnotes          = 
| area_urban_footnotes    = <!-- <ref> </ref> -->
| area_rural_footnotes    = <!-- <ref> </ref> -->
| area_metro_footnotes    = <!-- <ref> </ref> -->
| area_magnitude          = <!-- use only to set a special wikilink -->
| area_note               = 
| area_water_percent      = 
| area_rank               = 
| area_blank1_title       = 
| area_blank2_title       = 
<!-- square miles --> 
| area_total_sq_mi        = 
| area_land_sq_mi         = 
| area_water_sq_mi        = 
| area_urban_sq_mi        = 
| area_rural_sq_mi        = 
| area_metro_sq_mi        = 
| area_blank1_sq_mi       = 
| area_blank2_sq_mi       = 
<!-- acres -->
| area_total_acre         = 
| area_land_acre          = 
| area_water_acre         = 
| area_urban_acre         = 
| area_rural_acre         = 
| area_metro_acre         = 
| area_blank1_acre        = 
| area_blank2_acre        = 
| length_mi               = 
| width_mi                = 
| dimensions_footnotes    = 
| elevation_footnotes     = 
| elevation_ft            = 
| population_as_of        = 
| population_footnotes    = 
| population_total        = 
| population_density_sq_mi= auto
| population_note         = 
| population_demonym      = 
| timezone1               = 
| utc_offset1             = 
| timezone1_DST           = 
| utc_offset1_DST         = 
| postal_code_type        = 
| postal_code             = 
| area_code_type          = 
| area_code               = 
| iso_code                = 
| website                 = <!-- {{URL|example.com}} -->
| footnotes               = 
}}
Remove ads

Short version

{{Infobox settlement
| name                    = 
| native_name             = 
| native_name_lang        = <!-- ISO 639-2 code e.g. "fr" for French. If more than one, use {{lang}} instead -->
| settlement_type         = 
| image_skyline           = 
| image_alt               = 
| image_caption           = 
| etymology               = 
| nickname                = 
| coordinates             = <!-- {{Coord}} -->
| coordinates_type        = 
| coordinates_region      = 
| subdivision_type        = Country
| subdivision_name        = 
| subdivision_type1       = 
| subdivision_name1       = 
| subdivision_type2       = 
| subdivision_name2       = 
| website                 = <!-- {{URL|example.com}} -->
}}
Remove ads

Complete empty syntax, with comments

This copy of the template lists all parameters except for some of the repeating numbered parameters which are noted in the comments. Comments here should be brief; see the table below for full descriptions of each parameter.

{{Infobox settlement
| name                    = <!-- at least one of the first two fields must be filled in -->
| official_name           =
| native_name             = <!-- if different from the English name -->
| native_name_lang        = <!-- ISO 639-2 code e.g. "fr" for French. If more than one, use {{lang}} instead -->
| other_name              =
| settlement_type         = <!-- such as Town, Village, City, Borough etc. -->
<!-- transliteration(s) -->
| translit_lang1          =
| translit_lang1_type     =
| translit_lang1_info     =
| translit_lang1_type1    =
| translit_lang1_info1    =
| translit_lang1_type2    =
| translit_lang1_info2    = <!-- etc., up to translit_lang1_type6 / translit_lang1_info6 -->
| translit_lang2          =
| translit_lang2_type     =
| translit_lang2_info     =
| translit_lang2_type1    =
| translit_lang2_info1    =
| translit_lang2_type2    =
| translit_lang2_info2    = <!-- etc., up to translit_lang2_type6 / translit_lang2_info6 -->
<!-- images, nickname, motto -->
| image_skyline           =
| imagesize               =
| image_alt               =
| image_caption           =
| image_flag              =
| flag_size               =
| flag_alt                =
| flag_border             =
| flag_link               =
| image_seal              =
| seal_size               =
| seal_alt                =
| seal_link               =
| seal_type               =
| image_shield            =
| shield_size             =
| shield_alt              =
| shield_link             =
| image_blank_emblem      =
| blank_emblem_type       = <!-- defaults to Logo -->
| blank_emblem_size       =
| blank_emblem_alt        =
| blank_emblem_link       =
| etymology               = 
| nickname                =
| motto                   =
| anthem                  =
<!-- maps and coordinates -->
| image_map               =
| mapsize                 =
| map_alt                 =
| map_caption             =
| image_map1              =
| mapsize1                =
| map_alt1                =
| map_caption1            =
| pushpin_map             = <!-- name of a location map as per Template:Location_map -->
| pushpin_label_position  = <!-- position of the pushpin label: left, right, top, bottom, none -->
| pushpin_label           = <!-- only necessary if "name" or "official_name" are too long -->
| pushpin_map_alt         =
| pushpin_mapsize         =
| pushpin_relief          =
| pushpin_map_caption     =
| coordinates             = <!-- {{Coord}} -->
| coor_pinpoint           = <!-- to specify exact location of coordinates (was coor_type) -->
| coordinates_region      = <!-- ISO 3166-1 alpha-2 or ISO 3166-2 code for country/region containing the coordinates -->
| coordinates_type        = <!-- parameter list passed to Coord template, overrides coordinates_region -->
| coordinates_wikidata    = yes
| coordinates_footnotes   = <!-- for references: use <ref> tags -->
| grid_name               = <!-- name of a regional grid system -->
| grid_position           = <!-- position on the regional grid system -->
<!-- location -->
| subdivision_type        = Country
| subdivision_name        = <!-- the name of the country -->
| subdivision_type1       =
| subdivision_name1       =
| subdivision_type2       =
| subdivision_name2       = <!-- etc., subdivision_type6 / subdivision_name6 -->
<!-- established -->
| established_title       = <!-- Founded -->
| established_date        =
| established_title1      = <!-- Incorporated (town) -->
| established_date1       =
| established_title2      = <!-- Incorporated (city) -->
| established_date2       =
| established_title3      =
| established_date3       =
| established_title4      =
| established_date4       =
| established_title5      =
| established_date5       =
| established_title6      =
| established_date6       =
| established_title7      =
| established_date7       =
| extinct_title           =
| extinct_date            =
| founder                 =
| named_for               =
<!-- seat, smaller parts -->
| seat_type               = <!-- defaults to: Seat -->
| seat                    =
| seat1_type              = <!-- defaults to: Former seat -->
| seat1                   =
| parts_type              = <!-- defaults to: Boroughs -->
| parts_style             = <!-- list, coll (collapsed list), para (paragraph format) -->
| parts                   = <!-- parts text, or header for parts list -->
| p1                      =
| p2                      = <!-- etc., up to p50: for separate parts to be listed-->
<!-- government type, leaders -->
| government_footnotes    = <!-- for references: use <ref> tags -->
| government_type         =
| governing_body          =
| leader_party            =
| leader_title            =
| leader_name             = <!-- add &nbsp; (no-break space) to disable automatic links -->
| leader_title1           =
| leader_name1            = <!-- etc., up to leader_title4 / leader_name4 -->
<!-- display settings -->
| total_type              = <!-- to set a non-standard label for total area and population rows -->
| unit_pref               = <!-- enter: Imperial, to display imperial before metric -->
<!-- area -->
| area_footnotes          = <!-- for references: use <ref> tags -->
| area_magnitude          = <!-- use only to set a special wikilink -->
| dunam_link              = <!-- If dunams are used, this specifies which dunam to link. -->
| area_total_km2          = <!-- ALL fields with measurements have automatic unit conversion -->
| area_total_sq_mi        = <!-- see table @ Template:Infobox settlement for details -->
| area_total_ha           =
| area_total_acre         =
| area_total_dunam        = <!-- used in Middle East articles only -->
| area_land_km2           =
| area_land_sq_mi         =
| area_land_ha            =
| area_land_acre          =
| area_land_dunam         = <!-- used in Middle East articles only -->
| area_water_km2          =
| area_water_sq_mi        =
| area_water_ha           =
| area_water_acre         =
| area_water_dunam        = <!-- used in Middle East articles only -->
| area_water_percent      =
| area_urban_footnotes    = <!-- for references: use <ref> tags -->
| area_urban_km2          =
| area_urban_sq_mi        =
| area_urban_ha           =
| area_urban_acre         =
| area_urban_dunam        = <!-- used in Middle East articles only -->
| area_rural_footnotes    = <!-- for references: use <ref> tags -->
| area_rural_km2          =
| area_rural_sq_mi        =
| area_rural_ha           =
| area_rural_acre         =
| area_rural_dunam        = <!-- used in Middle East articles only -->
| area_metro_footnotes    = <!-- for references: use <ref> tags -->
| area_metro_km2          =
| area_metro_sq_mi        =
| area_metro_ha           =
| area_metro_acre         =
| area_metro_dunam        = <!-- used in Middle East articles only -->
| area_rank               =
| area_blank1_title       =
| area_blank1_km2         =
| area_blank1_sq_mi       =
| area_blank1_ha          =
| area_blank1_acre        =
| area_blank1_dunam       = <!-- used in Middle East articles only -->
| area_blank2_title       =
| area_blank2_km2         =
| area_blank2_sq_mi       =
| area_blank2_ha          =
| area_blank2_acre        =
| area_blank2_dunam       = <!-- used in Middle East articles only -->
| area_note               =
<!-- dimensions -->
| dimensions_footnotes    = <!-- for references: use <ref> tags -->
| length_km               =
| length_mi               =
| width_km                =
| width_mi                =
<!-- elevation -->
| elevation_footnotes     = <!-- for references: use <ref> tags -->
| elevation_m             =
| elevation_ft            =
| elevation_point         = <!-- for denoting the measurement point -->
| elevation_max_footnotes = <!-- for references: use <ref> tags -->
| elevation_max_m         =
| elevation_max_ft        =
| elevation_max_point     = <!-- for denoting the measurement point -->
| elevation_max_rank      =
| elevation_min_footnotes = <!-- for references: use <ref> tags -->
| elevation_min_m         =
| elevation_min_ft        =
| elevation_min_point     = <!-- for denoting the measurement point -->
| elevation_min_rank      =
<!-- population -->
| population_as_of        =
| population_footnotes    = <!-- for references: use <ref> tags -->
| population_total        =
| pop_est_as_of           =
| pop_est_footnotes       =
| population_est          =
| population_rank         =
| population_density_km2  = <!-- for automatic calculation of any density field, use: auto -->
| population_density_sq_mi=
| population_urban_footnotes     =
| population_urban               =
| population_density_urban_km2   =
| population_density_urban_sq_mi =
| population_rural_footnotes     =
| population_rural               =
| population_density_rural_km2   =
| population_density_rural_sq_mi =
| population_metro_footnotes     =
| population_metro               =
| population_density_metro_km2   =
| population_density_metro_sq_mi =
| population_density             =
| population_density_rank        =
| population_blank1_title        =
| population_blank1              =
| 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      = <!-- demonym, e.g. Liverpudlian for someone from Liverpool -->
| population_note         =
<!-- demographics (section 1) -->
| demographics_type1      =
| demographics1_footnotes = <!-- for references: use <ref> tags -->
| demographics1_title1    =
| demographics1_info1     = <!-- etc., up to demographics1_title5 / demographics1_info5 -->
<!-- demographics (section 2) -->
| demographics_type2      =
| demographics2_footnotes = <!-- for references: use <ref> tags -->
| demographics2_title1    =
| demographics2_info1     = <!-- etc., up to demographics2_title5 / demographics2_info5 -->
<!-- time zone(s) -->
| timezone1               =
| utc_offset1             =
| timezone1_DST           =
| utc_offset1_DST         =
| timezone2               =
| utc_offset2             =
| timezone2_DST           =
| utc_offset2_DST         =
<!-- postal codes, area code -->
| postal_code_type        = <!-- enter ZIP code, Postcode, Post code, Postal code... -->
| postal_code             =
| postal2_code_type       = <!-- enter ZIP code, Postcode, Post code, Postal code... -->
| postal2_code            =
| area_code_type          = <!-- defaults to: Area code(s) -->
| area_code               =
| geocode                 =
| iso_code                =
| registration_plate_type =
| registration_plate      =
<!-- blank fields (section 1) -->
| blank_name_sec1         =
| blank_info_sec1         =
| blank1_name_sec1        =
| blank1_info_sec1        =
| blank2_name_sec1        =
| blank2_info_sec1        = <!-- etc., up to blank7_name_sec1 / blank7_info_sec1 -->
<!-- blank fields (section 2) -->
| blank_name_sec2         =
| blank_info_sec2         =
| blank1_name_sec2        =
| blank1_info_sec2        =
| blank2_name_sec2        =
| blank2_info_sec2        = <!-- etc., up to blank7_name_sec2 / blank7_info_sec2 -->
<!-- website, footnotes -->
| website                 = <!-- {{URL|example.com}} -->
| footnotes               =
}}
Remove ads

Parameter names and descriptions

更多信息 Parameter name, Usage ...
Remove ads

Examples

Redirects and calls

Supporting templates

Microformat

TemplateData

Tracking categories

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads