Templat:KotakInfo BandarItali/doc
- 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.
Templat kosong
[sunting sumber]This blank template includes all parameters, listed in the order they appear in the infobox.
{{Infobox CityIT | official_name = | image_skyline = | image_caption = | img_coa = | img_coa_small = | region = | province = | mayor = | mayor_party = | elevation_footnotes = | elevation_m = | area_footnotes = | area_total_km2 = | population_footnotes = | population_as_of = | population_total = | pop_density_footnotes = | coordinates = | gentilic = | telephone = | postalcode = | frazioni = | saint = | day = | mapx = | mapy = | locator_position = | native_name = | name = | map = | website = }} |
Parameter
[sunting sumber]Required parameters marked with an asterisk (*). Examples come mostly from infobox for Sorrento.
Name | Description | Example |
---|---|---|
official_name | Title and name of city or comune, in Italian. | Comune di Firenze Defaults to: Comune di {{{name}}} |
image_skyline | Name of image, displayed at width 240px. This need not be a sky-line image, but should be something characteristic of the commune | Monteu Roero 01.jpg |
image_caption | Optional caption to display beneath image | Piazza Grande |
img_coa | Name of image of coat of arms, displayed at 140x140px. | Sorrento Stemma.png If not specified (or does not exist) it will look for Image:{{{name}}}-Stemma.png. |
img_coa_small | Any value will display image at native resolution. | Small |
* region | Name of region, wikilinked. | [[Campania]] |
* province | Name of province,wikilinked and piped, plus the two-letter province code. | [[Province of Naples|Naples]] (NA) |
* mayor | Name of mayor. | Marco Fiorentino (since April 5, 2005) |
mayor_party | Name of mayor's party. | |
elevation_footnotes | Place to put any references using <ref> </ref> tags | |
elevation_m | Elevation in meters (m). | 50.2 (Numbers only in RAW format only; no commas or spaces) |
area_footnotes | Place to put any references using <ref> </ref> tags | |
* area_total_km2 | Area in square kilometers (km²). | 9.1 (Numbers only in RAW format only; no commas or spaces) |
population_footnotes | Place to put any references using <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> |
* population_as_of | Date for population. | December 31, 2004 |
* population_total | Population (number). | 16506 (Numbers only in RAW format only; not 16,506 or 16 506; no commas or spaces) |
pop_density_footnotes | Place to put any references using <ref> </ref> tags | |
* coordinates | Use coor or coord template. | {{coor at d|40.626|N|14.376|E|type:city}} |
* gentilic | Gentilic (name for inhabitants). Use masculine plural form with an initial capital. | Sorrentini |
* telephone | Dialing code. | 081 |
* postalcode | Postal code(s). | 80060 and 80067 |
frazioni | Frazioni (a type subdivision of the comune). | Casarlano, Sorrento Capo, Sorrento Marina Grande |
saint | Name of patron saint. | St. Antoninus |
day | Day of patron saint. | February 14 |
mapx | X coordinate to mark city's position on locator map. | 40.525 |
mapy | Y coordinate to mark city's location on locator map. | 14.37623 |
locator_position | Display native_name to right (default) or left of mark on map. (not implemented) | |
native_name | Name to display next to marker on locator map (not implemented) or alt text for image specified in map parameter (see below). | |
name | For map caption: "Location of {{{name}}} in Italy" | Sorrento |
map | Name of image, displayed at 211px. Used at alternative to locator map. Image "alt" text can be supplied via native_name parameter. | |
website | Link to city's web site. | www.comune.sorrento.na.it |
Koordinat
[sunting sumber]Untuk koordinat, gunakan {{coord}} dengan display=inline,title. Diminta agar jangan bubuhkan dengan terlalu terperinci.
Mikroformat
[sunting sumber]Penanda HTML yang dihasilkan oleh templat ini termasuklah mikroformat hCard, yang menjadikan nama tempat dan lokasi boleh dihuraikan oleh komputer, sama adan bertindak secara automatik untuk mengkatalogkan rencana merentasi Wikipedia atau melalui alat pelayar yang dikendalikan oleh orang, contohnya untuk menambah subjek pada buku alamat. Di dalam hCard terdapat mikroformat Geo, yang membolehkan koordinat (garis lintang dan bujur) dihuraikan, supaya ia boleh mencari peta atau memuat turun unit GPS.
Subtemplat
[sunting sumber]Jika suatu tempat itu mempunyai medan "diasaskan", "ditubuhkan", "dibuka atau yang serupa, gunakan templat {{Tarikh mula}}. Jika ia mempunyai URL, gunakan templat {{URL}}.
Harap tidak membuang contoh-contoh subtemplat ini.
Kelas
[sunting sumber]hCard menggunakan kelas-kelas HTML termasuklah:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- url
- vcard
Geo dihasilkan dengan memanggil {{Koord}}, dan menggunakan kelas-kelas HTML:
- geo
- latitude
- longitude
Jangan menamakan semula atau membuang kelas-kelas ini, atau meruntuhkan unsur-unsur bersarang yang menggunakannya.
Ketepatan
[sunting sumber]Apabila menggunakan koordinat, sila gunakan tahap ketepatan yang bersesuaian. Jangan gunakan parameter |name=
pada {{Koord}}.