Templat:Infobox restaurant/doc

Daripada Wikipedia, ensiklopedia bebas.

Penggunaan[sunting sumber]

{{{name}}}
[[File:{{{logo}}}|{{{logo_width}}}|alt={{{logo_alt}}}]]
[[File:{{{image}}}|{{{image_width}}}|alt={{{image_alt}}}]]
{{{image_caption}}}
Map
{{{mapframe-caption}}}
Maklumat restoran
Slogan{{{slogan}}}
Ditubuhkan{{{established}}}
Tutup{{{closed}}}
Pemilik{{{current-owner}}}
Bekas pemilik{{{previous-owner}}}
Ketua tukang masak{{{head-chef}}}
Chef{{{chef}}}
Chef pastri{{{pastry-chef}}}
Jenis makanan{{{food-type}}}
Kod pakaian{{{dress-code}}}
Penarafan{{{rating}}}
Alamat jalan{{{street-address}}}
Bandar{{{city}}}
Daerah{{{county}}}
Negeri{{{state}}}
Postal/ZIP Code{{{zip}}}
Negara{{{country}}}
Koordinat0°00′00″N 79°23′42″W / 0.0001°N 79.3950°W / 0.0001; -79.3950
Kapasiti tempat duduk{{{seating-capacity}}}
Tempahan{{{reservations}}}
Lokasi lain{{{other-locations}}}
Maklumat lain{{{other-information}}}
Laman sesawang{{{website}}}
{{Infobox restaurant
| embed               = 
| name                = <!-- Leave blank if embed set to yes -->
| native_name         =
| native_name_lang    =
| title               = <!-- If embedding use this for secondary small font title -->
| logo                = 
| logo_width          = 
| logo_alt            = 
| image               = 
| image_width         = 
| image_alt           = 
| image_caption       = 
| mapframe            = <!-- Set to yes to show a mapframe map -->
| pushpin_map         = <!-- Requires {{para|coordinates}} -->
| map_size            = 
| map_alt             = 
| map_caption         = 
| slogan              = 
| established         = <!-- {{Start date|YYYY|MM|DD}} -->
| closed              = <!-- {{End date|YYYY|MM|DD}} -->
| current-owner       = 
| previous-owner      = 
| head-chef           = 
| chef                = 
| pastry-chef         = 
| food-type           = 
| dress-code          = 
| rating              = 
| street-address      = 
| city                = 
| county              = 
| state               = 
| postcode            = <!-- or | zip = -->
| country             = 
| coordinates         = <!-- {{coord}} -->
| seating-capacity    = 
| reservations        = 
| other_locations     =
| other-label         = <!-- replaces "Other information" label -->
| other-information   = 
| website             = <!-- {{URL|example.com}} -->
}}

Penjelasan[sunting sumber]

Bidang Penjelasan
name Nama restoran (diperlukan)
logo Logo restoran
logo_alt Alt text untuk logo
logo_width Saiz logo
image Imej restoran
image_width Saiz imej
image_alt Alt text untuk imej
image_caption Kapsyen
pushpin_map Nama peta lokasi (lihat #Map and coordinates). Memerlukan |koordinat= untuk memaparkan peta.
map_size Saiz pushpin_map
map_alt Alt text untuk pushpin_map
map_caption Kapsyen untuk pushpin_map
slogan Slogan restoran
established Bilakah restoran pertama kali dibuka? Gunakan {{Start date}}
closed Bilakah restoran ditutup? Gunakan {{End date}}
current-owner Siapakah pemilik semasa?
previous-owner Siapa pemilik sebelumnya?
head-chef Siapa ketua tukang masak?
chef (Alternatif untuk ketua tukang masak) Siapakah tukang masak pertubuhan itu?
pastry-chef Siapa tukang masak pastri?
food-type Jenis makanan restoran (Perancis, Itali, dll.)
dress-code Kod pakaian restoran (kasual, separa formal, formal)
rating Penilaian restoran (Panduan Michelin dan {{Michelin stars}}, Zagat's Survey, dll.)
street-address Alamat tempat restoran berada
city Bandar di mana restoran itu berada
county Daerah di mana restoran itu berada
state Negeri restoran terletak
country Negara restoran terletak
coordinates Koordinat Geografi menggunakan {{coord}} (lihat #Map and coordinates)
seating-capacity Kapasiti tempat duduk restoran
reservations Adakah tempahan diperlukan?
other-locations Adakah terdapat lokasi lain? Adakah restoran francais?
other-label Teks untuk menggantikan label untuk other-information bidang (lalai: Maklumat lain)
other-information penutup, pengubahsuaian, dll. Jangan sertakan nombor telefon per WP:NOTYELLOW.
website Laman sesawang restoran; menggunakan {{URL}}

Peta dan koordinat[sunting sumber]

Koordinat[sunting sumber]

Gunakan parameter |koordinat=, dengan {{Coord}}, untuk memaparkan koordinat. Ia juga membolehkan paparan peta interaktif {{Mapframe}}, atau {{Peta lokasi}} yang menunjukkan penunjuk arah untuk lokasi restoran.

Peta Mapframe[sunting sumber]

Templat:Infobox mapframe/doc/parameters

Peta lokasi[sunting sumber]

Parameter pushpin_map= boleh digunakan untuk menentukan {{peta lokasi}} tertentu. Memerlukan |koordinat=.

Microformat[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}}.


TemplateData
Berikut ialah pendokumenan TemplateData untuk templat ini yang digunakan oleh VisualEditor dan alatan-alatan lain; lihat laporan penggunaan parameter bulanan untuk templat ini.

TemplateData untuk Infobox restaurant

Tiada keterangan.

Parameter templat

ParameterKeteranganJenisStatus
embedembed

tiada keterangan

Tidak diketahuipilihan
titletitle

tiada keterangan

Tidak diketahuipilihan
namename

tiada keterangan

Tidak diketahuipilihan
logologo

tiada keterangan

Tidak diketahuipilihan
logo_widthlogo_width

tiada keterangan

Tidak diketahuipilihan
logo_altlogo_alt

tiada keterangan

Tidak diketahuipilihan
imageimage

tiada keterangan

Tidak diketahuipilihan
image_widthimage_width

tiada keterangan

Tidak diketahuipilihan
image_altimage_alt

tiada keterangan

Tidak diketahuipilihan
image_captionimage_caption

tiada keterangan

Tidak diketahuipilihan
pushpin_mappushpin_map

tiada keterangan

Tidak diketahuipilihan
coordinatescoordinates

tiada keterangan

Tidak diketahuipilihan
map_altmap_alt

tiada keterangan

Tidak diketahuipilihan
map_captionmap_caption

tiada keterangan

Tidak diketahuipilihan
map_sizemap_size

tiada keterangan

Tidak diketahuipilihan
sloganslogan

tiada keterangan

Tidak diketahuipilihan
establishedestablished

tiada keterangan

Tidak diketahuipilihan
closedclosed

tiada keterangan

Tidak diketahuipilihan
current-ownercurrent-owner

tiada keterangan

Tidak diketahuipilihan
previous-ownerprevious-owner

tiada keterangan

Tidak diketahuipilihan
head-chefhead-chef

tiada keterangan

Tidak diketahuipilihan
chefchef

tiada keterangan

Tidak diketahuipilihan
pastry-chefpastry-chef

tiada keterangan

Tidak diketahuipilihan
food-typefood-type

tiada keterangan

Tidak diketahuipilihan
dress-codedress-code

tiada keterangan

Tidak diketahuipilihan
ratingrating

tiada keterangan

Tidak diketahuipilihan
street-addressstreet-address

tiada keterangan

Tidak diketahuipilihan
citycity

tiada keterangan

Tidak diketahuipilihan
statestate

tiada keterangan

Tidak diketahuipilihan
countycounty

tiada keterangan

Tidak diketahuipilihan
postcodepostcode

tiada keterangan

Tidak diketahuipilihan
zipzip

tiada keterangan

Tidak diketahuipilihan
countrycountry

tiada keterangan

Tidak diketahuipilihan
seating-capacityseating-capacity

tiada keterangan

Tidak diketahuipilihan
reservationsreservations

tiada keterangan

Tidak diketahuipilihan
other-locationsother-locations

tiada keterangan

Tidak diketahuipilihan
other-informationother-information

tiada keterangan

Tidak diketahuipilihan
websitewebsite

tiada keterangan

Tidak diketahuipilihan
postcode-typepostcode-type

tiada keterangan

Tidak diketahuipilihan
other-labelother-label

tiada keterangan

Tidak diketahuipilihan
Show mapframe mapmapframe

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

Tersedia
no
Contoh
yes
Rentetandisarankan
Mapframe captionmapframe-caption

Caption for the map. If mapframe-geomask is set, then the default is "Location in <<geomask's label>>"

Rentetanpilihan
Custom mapframemapframe-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, other mapframe parameters will be ignored.

Templatpilihan
Mapframe Wikidata itemmapframe-id id qid

Id (Q-number) of Wikidata item to use.

Tersedia
(item for current page)
Rentetanpilihan
Mapframe shapes from Wikidatamapframe-wikidata

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

Contoh
yes
Rentetanpilihan
Mapframe point featuremapframe-point

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"

Rentetanpilihan
Mapframe shape featuremapframe-shape

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"

Rentetanpilihan
Mapframe widthmapframe-frame-width mapframe-width

Frame width in pixels

Tersedia
270
Angkapilihan
Mapframe heightmapframe-frame-height mapframe-height

Frame height in pixels

Tersedia
200
Angkapilihan
Mapframe shape fillmapframe-shape-fill

Color used to fill shape features

Tersedia
#606060
Rentetanpilihan
Mapframe shape fill opacitymapframe-shape-fill-opacity

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

Tersedia
0.5
Angkapilihan
Mapframe stroke colormapframe-stroke-color mapframe-stroke-colour

Color of line features, and outlines of shape features

Tersedia
#ff0000
Rentetanpilihan
Mapframe stroke widthmapframe-stroke-width

Width of line features, and outlines of shape features

Tersedia
5
Angkapilihan
Mapframe markermapframe-marker

Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options

Tersedia
restaurant
Contoh
museum
Rentetanpilihan
Mapframe marker colormapframe-marker-color mapframe-marker-colour

Background color for the marker

Tersedia
#5E74F3
Rentetanpilihan
Mapframe geomaskmapframe-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, or P131 for located in the administrative territorial entity)

Contoh
Q100
Nama lamanpilihan
Mapframe geomask stroke colormapframe-geomask-stroke-color mapframe-geomask-stroke-colour

Color of outline of geomask shape

Tersedia
#555555
Rentetanpilihan
Mapframe geomask stroke widthmapframe-geomask-stroke-width

Width of outline of geomask shape

Tersedia
2
Angkapilihan
Mapframe geomask fillmapframe-geomask-fill

Color used to fill outside geomask features

Tersedia
#606060
Rentetanpilihan
Mapframe geomask fill opacitymapframe-geomask-fill-opacity

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

Tersedia
0.5
Angkapilihan
Mapframe zoommapframe-zoom

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

Tersedia
10
Contoh
12
Angkapilihan
Mapframe length (km)mapframe-length_km

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

Angkapilihan
Mapframe length (mi)mapframe-length_mi

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

Angkapilihan
Mapframe area (km^2)mapframe-area_km2

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

Angkapilihan
Mapframe area (mi^2)mapframe-area_mi2

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

Angkapilihan
Mapframe frame coordinatesmapframe-frame-coordinates mapframe-frame-coord

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

Contoh
{{Coord|12.35|N|56.71|E}}
Templatpilihan
Mapframe switchermapframe-switcher

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.

Rentetanpilihan
Mapframe coordinates mapframe-coordinates mapframe-coord coordinates. coord

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

Tersedia
(coordinates from Wikidata)
Contoh
{{Coord|12.34|N|56.78|E}}
Templatpilihan

Kategori penjejakan[sunting sumber]