Templat:Infobox Bandaraya Sepanyol
{{{native_name}}}
| |||||
| |||||
Lokasi | |||||
---|---|---|---|---|---|
Koordinat : {{{lat_long}}} Zon masa : CET | |||||
Maklumat am | |||||
Nama tempatan | {{{native_name}}} ([[Bahasa {{{native_language}}}|{{{native_language}}}]]) | ||||
Nama Sepanyol | {{{spanish_name}}} | ||||
Pentadbiran | |||||
Negara | Sepanyol | ||||
Komuniti berautonomi | [[{{{community_link}}}|{{{community}}}]] | ||||
Wilayah | [[{{{province_link}}}|{{{province}}}]] | ||||
Geografi | |||||
Keluasan | {{{area}}} km² | ||||
Altitud | {{{altitude}}} m AMSL | ||||
Penduduk | |||||
Penduduk | {{{population}}} ({{{date-population}}}) | ||||
Ketumpatan | {{{density}}} hab./km² ({{{date-density}}}) |
Usage
sunting{{Infobox City Spain | image_skyline = | image_skyline_size = | image_skyline_caption = | native_name = | spanish_name = | nickname = | city_motto = | city_motto_means = | image_flag = | image_flag_size = | image_coat_of_arms = | image_coat_of_arms_size = | image_city_map = | image_city_map_size = | image_city_map_caption = | lat_long = | time_zone = | time_zone_summer = | founded = | native_language = | community = | community_link = | province = | province_link = | comarca = | comarca_link = | divisions = | neighborhoods = | mayor = | political_party = | political_party_link = | area = | altitude = | population = | date-population = | population-ranking = | density = | date-density = | website = | postal_code = | area_code = | }}
Parameters
suntingIf a parameter is not applicable to a city, just leave it blank.
Parameter | Explanation |
---|---|
image_skyline | A image of the city's skyline, if one. Another panoramic image if not. |
image_skyline_size | Size of the skyline image, usually 250px. |
image_skyline_caption | Caption for the skyline image. |
native_name | Native name of the city, in Catalan, Basque or Galician, if applicable. |
spanish_name | Spanish name of the city. |
nickname | Nickname(s) of the city, if one. |
city_motto | Motto of the city, if one, in the original language. |
city_motto_means | Translation of the motto to English. |
image_flag | Flag of the city. |
image_flag_size | Size of the flag image, usually 150px. |
image_coat_of_arms | Coat of arms. |
image_coat_of_arms_size | Size of the coat of arms image, usually 80px. |
image_city_map | Image of a city map or a city location map. |
image_city_map_size | Size of the city map image. |
image_city_map_caption | Caption for the city map image. |
lat_long | Latitude and longitude. Use {{coord}} with "display=inline,title" when possible. |
time_zone | Time zone. |
time_zone_summer | Summer time zone. |
founded | Date of city founding. |
native_language | Native language of the city (Spanish, Catalan, Basque or Galician). |
community | Autonomous community the city is located into. |
community_link | Link to the Wikipedia entry of the autonomous community. |
province | Province the city is located into. |
province_link | Link to the Wikipedia entry of the province, if one. |
comarca | Comarca the city is located into. |
comarca_link | Link to the Wikipedia entry of the comarca, if one. |
divisions | Number of administrative divisions of the city (often called districts). |
neighborhoods | Number of neighborhoods of the city. |
mayor | Name of the mayor, like it appears in their entry, if it exists. |
political_party | Short form of the political party the mayor belongs to: PSOE, PP, CiU, etc. |
political_party_link | Link to the Wikipedia entry of the political party. |
area | Land area of the city. Number only. "km²" is added by the template. |
altitude | The altitude the city is located. Number only. "m AMSL" is added by the template. |
population | Number of inhabitants of the city. |
date-population | Date of the above information. |
population-ranking | Ranking of the city in Spain, population wise. |
density | Population density. Number only. "hab./km²" is added by the template. |
date-density | Date of the above information. |
website | URL of the official website of the city. |
postal_code | Postal code or range of postal codes. |
area_code | Telephone area code. City code only, country code is added by the template. |
Microformat
suntingPenanda 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
suntingJika 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
suntinghCard 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
suntingApabila menggunakan koordinat, sila gunakan tahap ketepatan yang bersesuaian. Jangan gunakan parameter |name=
pada {{Koord}}.
Templat ini menggunakan ciri-ciri sintaks templat yang rumit.
Anda digalakkan untuk membiasakan diri dengan persediaan dan fungsi penghurai sebelum menyunting templat ini. Jika suntingan anda menyebabkan masalah yang tidak diduga, sila undurkannya dengan segera kerana templat ini mungkin digunakan di sebilangan besar halaman. Ingat bahawa anda boleh menjalankan uji kaji dan perlu menguji semua penambahbaikan, sama ada di kotak pasir umum atau laman pengguna anda sebelum melakukan sebarang perubahan. (lihat sejarah) |