Template:Infobox settlement/doc: Difference between revisions

No edit summary
No edit summary
Line 6: Line 6:
{{Uses TemplateStyles|Template:Infobox settlement/styles.css}}
{{Uses TemplateStyles|Template:Infobox settlement/styles.css}}
{{Uses Wikidata|P41|P94|P158|P625|P856}}
{{Uses Wikidata|P41|P94|P158|P625|P856}}
This template should be used to produce an 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 {{tl|Infobox country}} should be used.  Parameters are described in the table below. For questions, see the [[Template talk:Infobox settlement|talk page]]. For a US city guideline, see [[WP:USCITIES]].


The template is aliased or used as a sub-template for several infobox front-end templates.
The template is aliased or used as a sub-template for several infobox front-end templates.
Line 720: Line 718:
| '''pushpin_map''' || optional || The name of a location map as per [[Template:Location map]] (e.g. ''Indonesia'' or ''Russia''). The coordinate fields (from {{para|coordinates}}) position a pushpin coordinate marker and label on the map '''automatically'''. Example: [[Padang, Indonesia]]. To show multiple pushpin maps, provide a list of maps separated by #, e.g., ''California#USA''
| '''pushpin_map''' || optional || The name of a location map as per [[Template:Location map]] (e.g. ''Indonesia'' or ''Russia''). The coordinate fields (from {{para|coordinates}}) position a pushpin coordinate marker and label on the map '''automatically'''. Example: [[Padang, Indonesia]]. To show multiple pushpin maps, provide a list of maps separated by #, e.g., ''California#USA''
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''pushpin_mapsize''' || optional || Must be entered as only a number—'''do not use px'''. The default value is 250.<br/>''Equivalent to <code>width</code> parameter in [[Template:Location map]].''
| '''pushpin_mapsize''' || optional || Must be entered as only a number—'''do not use px'''. The default value is 250.
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''pushpin_map_alt''' || optional || Alt text for pushpin map; used by [[screen reader]]s, see [[WP:ALT]].<br/>''Equivalent to <code>alt</code> parameter in [[Template:Location map]].''
| '''pushpin_map_alt''' || optional || Alt text for pushpin map
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''pushpin_map_caption''' || optional || Fill out if a different caption from ''map_caption'' is desired.<br/>''Equivalent to <code>caption</code> parameter in [[Template:Location map]].''
| '''pushpin_map_caption''' || optional || Fill out if a different caption from ''map_caption'' is desired.
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''pushpin_map_caption_notsmall''' || optional || <!-- add documentation here -->
| '''pushpin_map_caption_notsmall''' || optional || <!-- add documentation here -->
Line 746: Line 744:
| '''coor_pinpoint''' || optional || 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: In the article [[Masovian Voivodeship]], <code>coor_pinpoint=Warsaw</code> specifies [[Warsaw]].
| '''coor_pinpoint''' || optional || 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: In the article [[Masovian Voivodeship]], <code>coor_pinpoint=Warsaw</code> specifies [[Warsaw]].
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''coordinates_footnotes''' || optional || Reference(s) for coordinates, placed within <code><nowiki><ref> </ref></nowiki></code> tags, possibly using the citing format at {{tl|Cite web}}
| '''coordinates_footnotes''' || optional || Reference(s) for coordinates,  
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''grid_name'''<br />'''grid_position''' || optional || Name of a regional grid system and position on the regional grid  
| '''grid_name'''<br />'''grid_position''' || optional || Name of a regional grid system and position on the regional grid  
|}
|}


====Mapframe maps====
 
{{para|image_map1}}
  | mapframe-frame-width = 250
  | mapframe-length_km = {{para|length_km}}
  | mapframe-length_mi = {{para|length_mi}}
  | mapframe-width_km = {{para|width_km}}
  | mapframe-width_mi = {{para|width_mi}}
  | mapframe-area_km2 = {{para|area_total_km2}}
  | mapframe-area_ha = {{para|area_total_ha}}
  | mapframe-area_acre = {{para|area_total_acre}}
  | mapframe-area_sq_mi = {{para|area_total_sq_mi}}
  | mapframe-type = city
  | mapframe-population = {{para|population_metro}} or {{para|population_total}}
  | mapframe-marker = town
  | mapframe-caption = Interactive map of {{para|name}} or {{para|official_name}} or {{tl|PAGENAMEBASE}}
}}


{| class="wikitable"
{| class="wikitable"
Line 785: Line 768:
| '''subdivision_type1'''<br />to<br />'''subdivision_type6''' || optional || Can be State/Province, region, county. These labels are for subdivisions ''above'' the level of the settlement described in the article. For subdivisions ''below'' or ''within'' the place described in the article, use {{para|parts_type}}.
| '''subdivision_type1'''<br />to<br />'''subdivision_type6''' || optional || Can be State/Province, region, county. These labels are for subdivisions ''above'' the level of the settlement described in the article. For subdivisions ''below'' or ''within'' the place described in the article, use {{para|parts_type}}.
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''subdivision_name1'''<br />to<br />'''subdivision_name6''' || optional || Use the name in text form, sample: <code>Florida</code> or <code><nowiki>[[Florida]]</nowiki></code>. Per [[MOS:INFOBOXFLAG]], settlements "may have flags of the country and first-level administrative subdivision in infoboxes". Flag icons or flag templates is permitted for subdivision_name1 (which is usually state or province); flag icons or flag templates should '''not''' be used in subdivision_name2-6.
| '''subdivision_name1'''<br />to<br />'''subdivision_name6''' || optional || Use the name in text form
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! colspan=3 style="color:black; background: #ddd;" | Established
! colspan=3 style="color:black; background: #ddd;" | Established
Line 793: Line 776:
| '''established_date''' || optional ||  Requires established_title=
| '''established_date''' || optional ||  Requires established_title=
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''established_title1''' || optional || Example: Incorporated (town) <br/>[Note that "established_title1" is distinct from "established_title"; you can think of "established_title" as behaving like "established_title0".]
| '''established_title1''' || optional || Example: Incorporated (town)  
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''established_date1''' || optional || [See note for "established_title1".] Requires established_title1=
| '''established_date1''' || optional || [See note for "established_title1".] Requires established_title1=
Line 847: Line 830:
! colspan=3 style="color:black; background: #ddd;" | Government type, leaders
! colspan=3 style="color:black; background: #ddd;" | Government type, leaders
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''government_footnotes''' || optional || Reference(s) for government, placed within <nowiki><ref> </ref></nowiki> tags, possibly using the citing format at {{tl|Cite web}}
| '''government_footnotes''' || optional || Reference(s) for government
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''government_type''' || optional || Examples: [[Mayor–council government]], [[Council–manager government]], [[City commission government]], ...
| '''government_type''' || optional || Examples: Mayor–council government, Council–manager government, City commission government, ...
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| '''governing_body''' || optional || Name of the place's governing body
| '''governing_body''' || optional || Name of the place's governing body
Line 3,760: Line 3,743:
</templatedata>
</templatedata>
{{collapse bottom}}
{{collapse bottom}}
==Calls and redirects ==
At least {{PAGESINCATEGORY:Templates calling Infobox settlement}} other [[:Category:Templates calling Infobox settlement|templates call this one]].
[{{fullurl:Special:WhatLinksHere/Template:Infobox_settlement|namespace=10&hidetrans=1&hidelinks=1}} Several templates redirect here].
== Tracking categories ==
# {{clc|Pages using infobox settlement with bad settlement type}}
# {{clc|Pages using infobox settlement with bad density arguments}}
# {{clc|Pages using infobox settlement with image map1 but not image map}}
# {{clc|Pages using infobox settlement with missing country}}
# {{clc|Pages using infobox settlement with no map}}
# {{clc|Pages using infobox settlement with no coordinates}}
# {{clc|Pages using infobox settlement with possible area code list}}
# {{clc|Pages using infobox settlement with possible demonym list}}
# {{clc|Pages using infobox settlement with possible motto list}}
# {{clc|Pages using infobox settlement with possible nickname list}}
# {{clc|Pages using infobox settlement with the wikidata parameter}}
# {{clc|Pages using infobox settlement with unknown parameters}}
# {{clc|Pages using infobox settlement with conflicting parameters}}
# {{clc|Templates calling Infobox settlement}}
==See also==
*[[Help:Coordinates]]
*[[Help:Elevation]]
*[[Help:GNIS data for U.S. infoboxes]]
*{{tl|Infobox too long}}
<includeonly>{{Sandbox other||
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Place infobox templates|Settlement]]
[[Category:Embeddable templates]]
[[Category:Infobox templates using Wikidata]]
[[Category:Templates that add a tracking category]]


}}</includeonly>
}}</includeonly>