Template:Infobox Italian comune/doc

{{Documentation subpage}}

{{High-use}}

{{Uses Infobox settlement}}

{{Uses Wikidata|P1082|P2046}}

{{Lua|Module:Infobox|Module:InfoboxImage|Module:Location map|Module:Coordinates|Module:Check for unknown parameters}}

{{tl|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 {{tl|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 {{tl|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.

style="background:transparent;"

|

{{Infobox Italian comune

| name =

| official_name =

| native_name =

| settlement_type =

| image_skyline =

| image_caption =

| image_size =

| image_alt =

| image_flag =

| flag_size =

| flag_alt =

| image_shield =

| shield_size =

| shield_alt =

| nickname =

| motto =

| map =

| map_caption =

| mapsize =

| map_alt =

| pushpin_map =

| pushpin_mapsize =

| pushpin_label_position =

| pushpin_map_alt =

| coordinates = {{coord

}

| coordinates_footnotes =

| 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 =

}}

| style="width:2em;" |

|

Aliases:

| imagesize =

| img_coa =

| img_coa_small =

| nicknames =

| mottoes =

| image_map =

| locator_position =

| population_demonyms = | gentilic =

| postalcode =

| telephone =

|}

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.

class="wikitable sortable" style="font-size:85%;"

! Name !! Description !! Example !! Order

name *For infobox title and map captionSorrento

| 1

official_nameTitle and name of city or comune, in ItalianDefaults to: Comune di {{{name}}}

| 2

native_nameEnter a value only if it is different from {{para|name}}.| 3
settlement_typeDefaults to Comune

| 4

image_skylineName of image (file). This need not be a sky-line image, but should be something characteristic of the communeMonteu Roero 01.jpg

| 5

image_captionOptional caption to display beneath imagePiazza Grande

| 6

image_size, imagesizeImage px sizeDefaults to 250px

| 7

image_alt| 8
image_flagFlag image name (file)| 9
flag_size| 10
flag_alt| 11
image_shieldName of the image of coat of arms (alias: {{para|img_coa}})Sorrento Stemma.png

| 12

shield_sizeDefaults to 140px, can be set smaller for low resolution images | 13
shield_alt| 14
nickname, nicknamesAny unofficial nicknames| 15
motto, mottoesThe comune's motto| 16
map, image_mapName of a map image. Can be used in addition to the locator map| 17
map_caption| 18
mapsize| 19
map_alt| 20
pushpin_mapSelect a map other than the political map of Italy, e.g. "Italy Sardinia"; see Template:Infobox settlement#Maps, coordinates for details| 21
pushpin_mapsize| 22
pushpin_label_positionDisplay native_name to right (default) or left of mark on map.| 23
pushpin_map_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.Naples (NA)

| 28

province **Name of province (if applicable), wikilinked and piped, plus the two-letter abbreviation. Mutually exclusive with metropolitan_city.Benevento (BN)

| 29

established_titleLabel for foundation dateDefaults to Founded

| 30

established_dateDate comune was founded| 31
frazioniFrazioni (a type subdivision of the comune).Casarlano, Sorrento Capo, Sorrento Marina Grande

| 32

mayorName of mayor.Marco Fiorentino (since April 5, 2005)

| 33

mayor_partyName 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_footnotesPlace to put any references using tags| 36
elevation_mElevation in meters (m)50.2 (Numbers only in RAW format only; no commas or spaces)

| 37

elevation_max_m50.8 (Numbers only in RAW format only; no commas or spaces)

| 38

elevation_min_m10.2 (Numbers only in RAW format only; no commas or spaces)

| 39

elevation_footnotesPlace to put any references using 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 populationDecember 31, 2004

| 42

population_footnotesAny references wrt population, use ... tags{{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

}}

| 43

population_demonymGentilic (name for inhabitants). Use masculine plural form with an initial capital.Sorrentini

| 44

postal_code, postalcode *Postal code(s)80060 and 80067

| 45

telephone, area_code *Dialing code081

| 46

istat *National Institute of Statistics (ISTAT) code of the comune, unlinked.048017

| 47

saintName of patron saintSt. Antoninus

| 48

dayDay of patron saintFebruary 14

| 49

websiteLink to city's web site.[http://www.comune.sorrento.na.it www.comune.sorrento.na.it]

| 50

footnotesAny additional footnotes| 51

=Alias parameters=

Parameter name synonyms:

class="sortable" style="font-size:90%"

!

{{para| population_demonyms}}

|data-sort-value="09"| equals

{{para| population_demonym}}
{{para| gentilic}}

|data-sort-value="10"| equals

{{para| population_demonym}}
{{para| image_map}}

|data-sort-value="06"| equals

{{para| map}}
{{para| imagesize}}

|data-sort-value="01"| equals

{{para| image_size}}
{{para| img_coa}}

|data-sort-value="02"| equals

{{para| image_shield}}
{{para| img_coa_small}}(?)

|data-sort-value="03"| equals

{{para| shield_size}}
{{para| locator_position}}

|data-sort-value="08"| equals

{{para| pushpin_label_position}}
{{para| mottoes}}

|data-sort-value="05"| equals

{{para| motto}}
{{para| nicknames}}

|data-sort-value="04"| equals

{{para| nickname}}
{{para| postalcode}}

|data-sort-value="11"| equals

{{para| postal_code}}
{{para| telephone}}

|data-sort-value="12"| equals

{{para| area_code}}

Example

Sample infobox for Sanremo:

{{Infobox Italian comune

| name = Sanremo

| official_name = Comune di Sanremo

| native_name =

| image_skyline = Sanremo-P1010166.JPG

| image_caption =

| image_size =

| image_alt =

| pushpin_map = Italy Liguria

| coordinates = {{Coord|43|49|N|7|47|E|region:IT|display = inline}}

| coordinates_footnotes =

| region = Liguria

| province = 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 = Saint Romolo

| day = October 13

| website = [http://www.comunedisanremo.it/ comunedisanremo.it]

| footnotes =

}}

{{Infobox Italian comune

| name = Sanremo

| official_name = Comune di Sanremo

| native_name =

| image_skyline = Sanremo-P1010166.JPG

| image_caption =

| image_size =

| image_alt =

| pushpin_map = Italy Liguria

| coordinates = {{Coord|43|49|N|7|47|E|region:IT|display = inline}}

| coordinates_footnotes =

| region = Liguria

| province = 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 = Saint Romolo

| day = October 13

| website = [http://www.comunedisanremo.it/ comunedisanremo.it]

| footnotes =

}}

Coordinates

{{UF-coord}}

Microformat

{{UF-hcard-geo}}

Tracking categories

  • {{clc|Pages using infobox Italian comune with unknown parameters}}
  • {{clc|Pages using Infobox Italian comune with administrative division issues}}

TemplateData

{{TemplateData header|noheader=1}}

{

"params": {

"name": {

"label": "Name",

"description": "Used for infobox title and map caption",

"type": "string",

"required": true

},

"official_name": {

"label": "Official name",

"description": "in English",

"type": "string"

},

"native_name": {

"label": "Native name",

"description": "in Italian",

"type": "string"

},

"region": {

"label": "Region",

"description": "Name of region, wikilinked",

"example": "Tuscany",

"type": "string",

"required": true

},

"settlement_type": {

"label": "Settlement type",

"type": "string"

},

"image_skyline": {

"label": "Image",

"description": "Preferably a characteristic picture (image) of the comune",

"example": "Altofonte2.JPG",

"type": "wiki-file-name"

},

"image_size": {

"aliases": [

"imagesize"

],

"label": "Image size",

"description": "Image size in px",

"example": "300px",

"type": "string",

"default": "250px"

},

"image_alt": {

"label": "Image alt text",

"description": "Alt text for image, see WP:ALT",

"example": "Altofonte seen from Moharda",

"type": "string"

},

"image_caption": {

"label": "Image caption",

"description": "Caption, shown below the image",

"type": "string"

},

"image_flag": {

"label": "Flag image",

"description": "Flag image",

"example": "Flag of Genoa.svg",

"type": "wiki-file-name"

},

"flag_size": {

"label": "Flag size",

"example": "75px",

"type": "string",

"default": "85px or 100px"

},

"flag_alt": {

"label": "Flag alt text",

"description": "Alt text (see WP:ALT)",

"type": "string"

},

"image_shield": {

"label": "Shield image",

"type": "wiki-file-name",

"aliases": [

"img_coa"

],

"description": "Shield, coat of arms"

},

"shield_size": {

"label": "Shield size",

"description": "size in px",

"type": "string",

"default": "85px or 100px",

"aliases": [

"img_coa_small"

]

},

"shield_alt": {

"label": "Shield alt text",

"description": "Alt text for shield (see WP:ALT)",

"type": "string"

},

"nickname": {

"aliases": [

"nicknames"

],

"label": "Nickname",

"description": "Any unofficial nickname(s)",

"example": "Città dei Mille (\"City of the Thousand\")",

"type": "string"

},

"motto": {

"aliases": [

"mottoes"

],

"label": "Motto",

"description": "Motto(es) of the comune",

"type": "string"

},

"mapsize": {

"label": "Map size",

"type": "string"

},

"map_alt": {

"label": "Map alt text",

"description": "Map image alt text",

"type": "string"

},

"map_caption": {

"label": "Map caption",

"description": "Caption, shows below the map",

"type": "string"

},

"area_total_km2": {

"label": "Area",

"description": "Area in km2. The number, do not add 'km2'",

"example": "450",

"type": "number",

"required": true

},

"pushpin_label_position": {

"label": "Pushpin label position",

"aliases": [

"locator_position"

],

"example": "left",

"type": "string",

"default": "right"

},

"pushpin_map_alt": {

"label": "Pushpin alt text",

"description": "Pushpin map alt text",

"type": "string"

},

"pushpin_mapsize": {

"label": "Pushpin map size",

"type": "string"

},

"pushpin_map": {

"label": "Pushpin map",

"type": "wiki-file-name"

},

"coordinates": {

"label": "Coordinates",

"description": "Use {{coord|...}}",

"example": "{{coord|38|3|N|13|18|E}}",

"type": "wiki-template-name"

},

"coordinates_footnotes": {

"label": "Coordinates footnotes",

"description": "Shows right after the coordinates",

"type": "string"

},

"metropolitan_city": {

"label": "Metropolitan city",

"type": "string"

},

"province": {

"label": "Province",

"type": "string"

},

"frazioni": {

"label": "Frazioni",

"description": "List of communities (parishes)",

"type": "string"

},

"established_date": {

"label": "Established date"

},

"established_title": {

"label": "Established Title",

"type": "string",

"default": "Founded"

},

"mayor_party": {

"label": "Mayor's party",

"type": "string"

},

"mayor": {

"label": "Mayor",

"type": "string"

},

"area_footnotes": {

"label": "Area footnotes",

"type": "string"

},

"population_footnotes": {

"label": "Population footnotes",

"type": "string"

},

"population_total": {

"aliases": [

"population"

],

"label": "Population",

"description": "Total population",

"type": "number",

"required": true

},

"population_as_of": {

"label": "Population as of",

"description": "Moment population was counted",

"type": "string",

"required": true

},

"population_demonym": {

"aliases": [

"population_demonyms",

"gentilic"

],

"label": "Demonym",

"description": "Name for inhabitants. Use masculine plural form with an initial capital",

"type": "string"

},

"elevation_footnotes": {

"label": "Elevation footnotes",

"type": "string"

},

"elevation_m": {

"label": "Elevation",

"description": "Average elevation in m",

"type": "number"

},

"elevation_min_m": {

"label": "Elevation, min",

"description": "Minimum elevation, in m",

"type": "number"

},

"elevation_max_m": {

"label": "Elevation, max",

"description": "Maximum elevation, in m",

"type": "number"

},

"istat": {

"label": "ISTAT",

"description": "National Institute of Statistics (ISTAT) code of the comune, unlinked",

"type": "string",

"example": "048017",

"required": true

},

"saint": {

"label": "Saint",

"description": "Name of patron saint",

"type": "string"

},

"day": {

"label": "Saint's day",

"description": "Day of patron saint",

"type": "string"

},

"postal_code": {

"aliases": [

"postalcode"

],

"label": "Postal code",

"type": "string",

"required": true

},

"area_code": {

"label": "Area code",

"type": "string",

"aliases": [

"telephone"

],

"required": true

},

"website": {

"label": "Website",

"description": "Official website",

"type": "url"

},

"footnotes": {},

"map": {

"aliases": [

"image_map"

],

"label": "Map",

"description": "Name of a map image. Can be used in addition to the locator map",

"type": "wiki-file-name"

},

"mapframe": {

"label": "Show mapframe map",

"description": "Specify yes or no to show or hide the map, overriding the default",

"example": "yes",

"type": "string",

"default": "no",

"suggested": true

},

"mapframe-caption": {

"label": "Mapframe caption",

"description": "Caption for the map. If mapframe-geomask is set, then the default is \"Location in <>\"",

"type": "string"

},

"mapframe-custom": {

"label": "Custom mapframe",

"description": "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, other mapframe parameters will be ignored.",

"type": "wiki-template-name"

},

"mapframe-id": {

"aliases": [

"id",

"qid"

],

"label": "Mapframe Wikidata item",

"description": "Id (Q-number) of Wikidata item to use.",

"type": "string",

"default": "(item for current page)"

},

"mapframe-coordinates": {

"aliases": [

"mapframe-coord",

"coordinates",

"coord"

],

"label": "Mapframe coordinates ",

"description": "Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.",

"example": "{{Coord|12.34|N|56.78|E}}",

"type": "wiki-template-name",

"default": "(coordinates from Wikidata)"

},

"mapframe-wikidata": {

"label": "Mapframe shapes from Wikidata",

"description": "et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter",

"example": "yes",

"type": "string"

},

"mapframe-shape": {

"label": "Mapframe shape feature",

"description": "Override display of mapframe shape feature. Turn off by setting to \"none\". Use an inverse shape (geomask) instead of a regular shape by setting to \"inverse\"",

"type": "string"

},

"mapframe-point": {

"label": "Mapframe point feature",

"description": "Override display of mapframe point feature. Turn off display of point feature by setting to \"none\". Force point marker to be displayed by setting to \"on\"",

"type": "string"

},

"mapframe-geomask": {

"label": "Mapframe geomask",

"description": "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, or P131 for located in the administrative territorial entity)",

"example": "Q100",

"type": "wiki-page-name"

},

"mapframe-switcher": {

"label": "Mapframe switcher",

"description": "Set to \"auto\" or \"geomasks\" or \"zooms\" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO 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. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO 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.",

"type": "string"

},

"mapframe-frame-width": {

"aliases": [

"mapframe-width"

],

"label": "Mapframe width",

"description": "Frame width in pixels",

"type": "number",

"default": "270"

},

"mapframe-frame-height": {

"aliases": [

"mapframe-height"

],

"label": "Mapframe height",

"description": "Frame height in pixels",

"type": "number",

"default": "200"

},

"mapframe-shape-fill": {

"label": "Mapframe shape fill",

"description": "Color used to fill shape features",

"type": "string",

"default": "#606060"

},

"mapframe-shape-fill-opacity": {

"label": "Mapframe shape fill opacity",

"description": "Opacity level of shape fill, a number between 0 and 1",

"type": "number",

"default": "0.5"

},

"mapframe-stroke-color": {

"aliases": [

"mapframe-stroke-colour"

],

"label": "Mapframe stroke color",

"description": "Color of line features, and outlines of shape features",

"type": "string",

"default": "#ff0000"

},

"mapframe-stroke-width": {

"label": "Mapframe stroke width",

"description": "Width of line features, and outlines of shape features",

"type": "number",

"default": "5"

},

"mapframe-marker": {

"label": "Mapframe marker",

"description": "Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options",

"example": "museum",

"type": "string"

},

"mapframe-marker-color": {

"aliases": [

"mapframe-marker-colour"

],

"label": "Mapframe marker color",

"description": "Background color for the marker",

"type": "string",

"default": "#5E74F3"

},

"mapframe-geomask-stroke-color": {

"aliases": [

"mapframe-geomask-stroke-colour"

],

"label": "Mapframe geomask stroke color",

"description": "Color of outline of geomask shape",

"type": "string",

"default": "#555555"

},

"mapframe-geomask-stroke-width": {

"label": "Mapframe geomask stroke width",

"description": "Width of outline of geomask shape",

"type": "number",

"default": "2"

},

"mapframe-geomask-fill": {

"label": "Mapframe geomask fill",

"description": "Color used to fill outside geomask features",

"type": "string",

"default": "#606060"

},

"mapframe-geomask-fill-opacity": {

"label": "Mapframe geomask fill opacity",

"description": "Opacity level of fill outside geomask features, a number between 0 and 1",

"type": "number",

"default": "0.5"

},

"mapframe-zoom": {

"label": "Mapframe zoom",

"description": "Set the zoom level, from \"1\" to \"18\", to used if the zoom level cannot be determined automatically from object length or area",

"example": "12",

"type": "number",

"default": "10"

},

"mapframe-length_km": {

"label": "Mapframe length (km)",

"description": "Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area",

"type": "number"

},

"mapframe-length_mi": {

"label": "Mapframe length (mi)",

"description": "Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area",

"type": "number"

},

"mapframe-area_km2": {

"label": "Mapframe area (km^2)",

"description": "Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area",

"type": "number"

},

"mapframe-area_mi2": {

"label": "Mapframe area (mi^2)",

"description": "Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area",

"type": "number"

},

"mapframe-frame-coordinates": {

"aliases": [

"mapframe-frame-coord"

],

"label": "Mapframe frame coordinates",

"description": "Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}",

"example": "{{Coord|12.35|N|56.71|E}}",

"type": "wiki-template-name"

},

"mapframe-line": {}

},

"description": "Template:Infobox Italian comune, uses {{Infobox settlement}}.",

"paramOrder": [

"name",

"official_name",

"native_name",

"settlement_type",

"image_skyline",

"image_caption",

"image_size",

"image_alt",

"image_flag",

"flag_size",

"flag_alt",

"image_shield",

"shield_size",

"shield_alt",

"nickname",

"motto",

"map",

"map_caption",

"mapsize",

"map_alt",

"pushpin_map",

"pushpin_mapsize",

"pushpin_label_position",

"pushpin_map_alt",

"mapframe",

"mapframe-caption",

"mapframe-custom",

"mapframe-id",

"mapframe-coordinates",

"mapframe-wikidata",

"mapframe-point",

"mapframe-shape",

"mapframe-frame-width",

"mapframe-frame-height",

"mapframe-shape-fill",

"mapframe-shape-fill-opacity",

"mapframe-stroke-color",

"mapframe-stroke-width",

"mapframe-marker",

"mapframe-marker-color",

"mapframe-geomask",

"mapframe-geomask-stroke-color",

"mapframe-geomask-stroke-width",

"mapframe-geomask-fill",

"mapframe-geomask-fill-opacity",

"mapframe-zoom",

"mapframe-length_km",

"mapframe-length_mi",

"mapframe-area_km2",

"mapframe-area_mi2",

"mapframe-frame-coordinates",

"mapframe-switcher",

"mapframe-line",

"coordinates",

"coordinates_footnotes",

"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"

]

}

See also