Templat:Infobox hotel

Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]
{{{hotel_name}}}
{{{image}}}
{{{caption}}}
Maklumat umum
Lokasi{{{location}}}
Koordinat{{{coordinates}}}
Dibuka pada{{{opening_date}}}
Ditutup pada{{{closing_date}}}
Pemilik{{{owner}}}
Pengurusan{{{operator}}}
Perincian teknikal
Bilangan tingkat{{{floors}}}
Luas tingkat{{{floor_area}}}
Reka bentuk dan pembinaan
Arkitek{{{architect}}}
Pemaju{{{developer}}}
Maklumat lain
Bilangan bilik{{{number_of_rooms}}}
Bilangan restoran{{{number_of_restaurants}}}
Kawasan letak kereta{{{parking}}}
Laman web
{{{website}}}
{{{footnotes}}}
{{Infobox hotel
  | hotel_name =
  | image              =
  | image_width        =
  | caption            =
  | location           =
  | coordinates        =
  | opening_date       =
  | stars              =
  | diamonds           = 
  | closing_date       =
  | developer          =
  | architect          =
  | operator           =
  | owner              =
  | number_of_restaurants =
  | number_of_rooms    =
  | number_of_suites   =
  | floor_area         =
  | floors             =
  | parking            =
  | website            =
  | footnotes          =
}}

Template fields sunting

Field Name Required Description Values
hotel_name yes Name of hotel wikitext (can contain links)
image no Image of the hotel filename
image_width no Width of image as a numerical value (without px on the end)
caption no Caption for image wikitext (can contain links)
location no Location of the hotel wikitext (can contain links) Eg;[[Joondalup, Western Australia]], [[Australia]]
coordinates no Geographic coordinates of location Use {{coord}} with display=inline,title.
opening_date no Date of opening Eg; [[25 January]] [[2007]]
stars no Number of stars as a numerical value
diamonds no Number of AAA Diamonds as a numerical value
closing_date no Date hotel closed Eg; [[25 January]] [[2007]]
developer no Name of original hotel developer wikitext (can contain links)
architect no Name of original architect wikitext (can contain links)
operator no Name of current hotel operator wikitext (can contain links)
owner no Name(s) of current owner(s) wikitext (can contain links)
number_of_rooms no Number of guest rooms (including suites) expressed as a numerical value
number_of_restaurants no Number of restaurants expressed as a numerical value
floor_area no Gross floor area of the hotel, expressed as a numerical value For best practice, use {{convert}} in this field.
floors no Number of floors expressed as a numerical value
parking no Number of parking bays expressed as a numerical value
website no URL [http://www.url.com.au url.com.au]
footnotes no Footnotes and citations for information within infobox wikitext (can contain links)


Microformat sunting

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

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

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

Apabila menggunakan koordinat, sila gunakan tahap ketepatan yang bersesuaian. Jangan gunakan parameter |name= pada {{Koord}}.