Template:Infobox Italian comune
| This template is used on approximately 8,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template is a customized wrapper for {{Infobox settlement}}. Any field from {{Infobox settlement}} can work so long as it is added to this template first. It will also emit the same hCard and Geo microformats as {{Infobox settlement}}. Questions? Just ask here or over at Template talk:Infobox settlement. |
population (P1082) (see uses)
area (P2046) (see uses)
| This template uses Lua: |
{{Infobox Italian comune}} can be used for adding at-a-glance information to articles about comuni in Italy. This template should be used instead of {{Infobox settlement}} in articles about Italian comuni. It should not be used for a subdivision of a comune, such as a frazione, quartiere, circoscrizione, località, terziere, sestiere, contrada, or historical location that was never a comune. These other divisions can use {{Frazione}} or the more general Infobox settlement.
- 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.
Blank template
This blank template includes all parameters, listed in the order they show in the infobox.
{{Infobox Italian comune
| name =
| official_name =
| native_name =
| settlement_type =
| image =
| caption =
| image_size =
| alt =
| image_flag =
| flag_size =
| flag_alt =
| image_shield =
| shield_size =
| shield_alt =
| nickname =
| motto =
| image_map =
| map_caption =
| map_size =
| map_alt =
| pushpin_map =
| pushpin_map_size =
| pushpin_alt =
| coordinates = {{coord|}}
| region =
| metropolitan_city =
| province =
| established_title =
| established_date =
| frazioni =
| mayor =
| mayor_party =
| area_total_km2 =
| area_footnotes =
| elevation_m =
| elevation_max_m =
| elevation_min_m =
| elevation_footnotes =
| population_total =
| population_as_of =
| population_footnotes =
| population_demonym =
| postal_code =
| area_code =
| istat =
| saint =
| day =
| website =
| footnotes =
}}
Parameters
Required parameters marked with an asterisk (*). Double asterisk (**) indicates that one of the two parameters is required, but not both; the exception to this is uses of the infobox on comuni in the Aosta Valley, which contains no provinces or metropolitan cities. Examples come mostly from Sorrento.
| Name | Description | Example | Order |
|---|---|---|---|
| name * | For infobox title and map caption | Sorrento | 1 |
| official_name | Title and name of city or comune, in Italian | Defaults to: Comune di {{{name}}} | 2 |
| native_name | Enter a value only if it is different from |name=. | 3 | |
| settlement_type | Defaults to Comune | 4 | |
| image | Name of image (file). This need not be a sky-line image, but should be something characteristic of the commune | Monteu Roero 01.jpg | 5 |
| caption | Optional caption to display beneath image | Piazza Grande | 6 |
| image_size | Image px size | Defaults to 250px | 7 |
| alt | 8 | ||
| image_flag | Flag image name (file) | 9 | |
| flag_size | 10 | ||
| flag_alt | 11 | ||
| image_shield | Name of the image of coat of arms | Sorrento Stemma.png | 12 |
| shield_size | Defaults to 140px, can be set smaller for low resolution images | 13 | |
| shield_alt | 14 | ||
| nickname, nicknames | Any unofficial nicknames | 15 | |
| motto, mottoes | The comune's motto | 16 | |
| image_map | Name of a map image. Can be used in addition to the locator map | 17 | |
| map_caption | 18 | ||
| map_size | 19 | ||
| map_alt | 20 | ||
| pushpin_map | Select a map other than the political map of Italy, e.g. "Italy Sardinia"; see Template:Infobox settlement#Maps, coordinates for details | 21 | |
| pushpin_map_size | 22 | ||
| pushpin_label_position | Display native_name to right (default) or left of mark on | 23 | |
| pushpin_alt | 24 | ||
| coordinates | 25 | ||
| coordinates_footnotes | 26 | ||
| region * | Name of region, wikilinked. | [[Campania]] | 27 |
| metropolitan_city ** | Name of metropolitan city (if applicable), wikilinked and piped, plus the two-letter abbreviation. Mutually exclusive with province. | [[Metropolitan City of Naples|Naples]] (NA) | 28 |
| province ** | Name of province (if applicable), wikilinked and piped, plus the two-letter abbreviation. Mutually exclusive with metropolitan_city. | [[Province of Benevento|Benevento]] (BN) | 29 |
| established_title | Label for foundation date | Defaults to Founded | 30 |
| established_date | Date comune was founded | 31 | |
| frazioni | Frazioni (a type subdivision of the comune). | Casarlano, Sorrento Capo, Sorrento Marina Grande | 32 |
| mayor | Name of mayor. | Gianluca Vurchio (since June 10, 2024) | 33 |
| mayor_party | Name of mayor's party. | 34 | |
| area_total_km2 * | Area in square kilometers (km2). | 9.1 (Numbers only in RAW format only; no commas or spaces) | 35 |
| area_footnotes | Place to put any references using <ref> </ref> tags | 36 | |
| elevation_m | Elevation in meters (m) | 50.2 (Numbers only in RAW format only; no commas or spaces) | 37 |
| elevation_max_m | 50.8 (Numbers only in RAW format only; no commas or spaces) | 38 | |
| elevation_min_m | 10.2 (Numbers only in RAW format only; no commas or spaces) | 39 | |
| elevation_footnotes | Place to put any references using <ref> </ref> tags | 40 | |
| population_total * | Population (number) | 16506 (Numbers only in RAW format only; not 16,506 or 16 506; no commas or spaces) | 41 |
| population_as_of * | Date for population | December 31, 2004 | 42 |
| population_footnotes | Any references wrt population, use <ref>...</ref> tags | <ref name=profilo>{{cite web | url = http://www.comune.casale-monferrato.al.it/IT/cityhall/profilo_citta.asp?pid=CH_PROFILO | title = Profilo della Città | publisher = Comune di Casale Monferrato | accessdate = 2007-10-03 }}</ref> | 43 |
| population_demonym | Demonym (name for inhabitants). Use masculine plural form with an initial capital. | Sorrentini | 44 |
| postal_code * | Postal code(s) | 80060 and 80067 | 45 |
| area_code * | Dialing code | 081 | 46 |
| istat * | National Institute of Statistics (ISTAT) code of the comune, unlinked. | 048017 | 47 |
| saint | Name of patron saint | [[Antoninus of Sorrento|St. Antoninus]] | 48 |
| day | Day of patron saint | February 14 | 49 |
| website | Link to city's web site. | www.comune.sorrento.na.it | 50 |
| footnotes | Any additional footnotes | 51 |
Pushpin map
Below are the parameters used by Module:Location map to produce the pushpin map in this Infobox. These parameters are available for editors to set in articles that use this infobox. For the maps available, please consult available maps.
| Parameter | Description | Default |
|---|---|---|
|pushpin_map= |
The map(s) to display. For example, specifying England will use the values for England in Module:Location map/data/England.Multiple maps can be shown by providing a list of map names separated by #. For multiple maps, the first is shown by default. A reader can select the others with radio buttons. |
Italy |
|pushpin_caption= |
The text of a caption to be displayed below the map. If not provided a default caption will be generated. Multiple captions can be shown when separated by ## (that's two). |
Location within Italy |
|pushpin_relief= |
0/false/off will cause the template to display the map defined as image (generally not a relief map). 1/true/on will cause the template to display the map defined as image1 (generally a relief map). Any non-zero numeric value such as 2 or 3 will display image2 or image3, if those images are defined. Any other non-empty value will cause display of image1. See the example at Location map+/relief. |
0 |
|pushpin_label= |
The text of the label to display next to the identifying mark; a wikilink can be used. You can enclose the label inside of {{nowrap}} if you want to make sure that it stays on a single line. | N/A |
|pushpin_label_size= |
The font size to use for the label, given as a percentage of the normal font size (<100=smaller, >100=larger); the default size is 90. Do not include %. For example, use |pushpin_label_size=80, not |pushpin_label_size=80%. If set to 0, the label is only displayed when the user hovers over the mark. |
90 |
|pushpin_label_position= |
The position of the label relative to the identifying mark; valid values are left, right, top, bottom and none. This defaults to either left or right, depending on the coordinates of the marker and its position relative to the right border of the map image. When |pushpin_label_position=none, any defined label will not be displayed with the mark, but it will be used to create the default caption. |
N/A |
|pushpin_mark= |
The name of an image file to display as the identifying mark; the default is Red pog.svg |
Red pog.svg |
|pushpin_mark_size= |
The size of the identifying mark in pixels. Do not include px | 8 |
|pushpin_alt= |
Alt text for map; used by screen readers. See WP:ALT. | N/A |
|pushpin_background= |
The background color to use for the label; see Web colors. The default is no background color, which shows the map image behind the label. | N/A |
|pushpin_map_size= |
Determines the width of the map in pixels, overriding any default values; do not include px. | N/A |
Mapframe
- Basic {{Infobox mapframe}} parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Internal onByDefault parameter: not specified
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=. Default: coordinates from Wikidata d:Property:P625{{Coord|12.34|N|56.78|E}} - mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}template, or another template that generates a mapframe map, or an image name. If used, most mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-wikidata – Set to yes to show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Customise which features are displayed:
- mapframe-point – Turn off display of point feature by setting to none. Force point marker to be displayed by setting to on. Default: not specified
- mapframe-shape – Turn off display of shape feature by setting to none. Force display of shape by setting to on. Use an inverse shape (geomask) instead of a regular shape by setting to inverse. Default: not specified
- mapframe-line – Turn off display of line feature by setting to none. Force display of line by setting to on. Default: not specified
- mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country (P17), P131 for located in the administrative territorial entity (P131)). Default: not specified
- mapframe-switcher – set to auto or geomasks or zooms to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
- auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.
- geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
- zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.1
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-line-stroke-color or mapframe-line-stroke-colour – Color of line features. Default: #ff0000
- mapframe-shape-stroke-color or mapframe-shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features. Default: 2
- mapframe-shape-stroke-width – Width of outlines of shape features. Default: 2
- mapframe-line-stroke-width – Width of line features. Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: not specified (i.e. blank)
- Can also be set to blank to override any default marker symbol
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 1
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.25
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified / not specified / not specified / not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
Example
Sample infobox for Sanremo:
Sanremo | |
|---|---|
| Comune di Sanremo | |
Location within Liguria | |
| Coordinates: 43°49′N 7°47′E / 43.817°N 7.783°E | |
| Country | Italy |
| Region | Liguria |
| Province | Imperia (IM) |
| Frazioni | San Romolo, Poggio, Bussana, Bussana Vecchia, Coldirodi, (etcetera) |
| Government | |
| • Mayor | Claudio Borea |
| Area | |
• Total | 54 km2 (21 sq mi) |
| Elevation | 15 m (49 ft) |
| Population (2008) | |
• Total | 56,592 |
| • Density | 1,000/km2 (2,700/sq mi) |
| Demonyms | Sanremesi or Sanremaschi |
| Time zone | UTC+1 (CET) |
| • Summer (DST) | UTC+2 (CEST) |
| Postal code | 18038 |
| Dialing code | 0184 |
| ISTAT code | 008055 |
| Patron saint | Saint Romolo |
| Saint day | October 13 |
| Website | comunedisanremo.it |
{{Infobox Italian comune
| name = Sanremo
| official_name = Comune di Sanremo
| native_name =
| image = Sanremo-P1010166.JPG
| caption =
| image_size =
| alt =
| pushpin_map = Italy Liguria
| coordinates = {{Coord|43|49|N|7|47|E|region:IT|display = inline}}
| coordinates_footnotes =
| region = [[Liguria]]
| province = [[Province of Imperia|Imperia]] (IM)
| frazioni = San Romolo, Poggio, Bussana, Bussana Vecchia, Coldirodi, (etcetera)
| mayor = Claudio Borea
| mayor_party =
| area_total_km2 = 54
| area_footnotes =
| elevation_m = 15
| elevation_footnotes =
| population_total = 56592
| population_as_of = 2008
| population_footnotes =
| population_demonyms = Sanremesi or Sanremaschi
| postal_code = 18038
| area_code = 0184
| istat = 008055
| saint = [[Romulus of Genoa|Saint Romolo]]
| day = October 13
| website = [http://www.comunedisanremo.it/ comunedisanremo.it]
| footnotes =
}}
Tracking categories
Template data
TemplateData documentation used by VisualEditor and other tools | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See a monthly parameter usage report for Template:Infobox Italian comune in articles based on its TemplateData.
TemplateData for Infobox Italian comune Template:Infobox Italian comune, uses {{Infobox settlement}}.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||