Templat:Infobox restaurant
![]() | Templat ini menggunakan Lua: |
Penggunaan
sunting{{{name}}} | |
---|---|
[[File:{{{logo}}}|{{{logo_width}}}|alt={{{logo_alt}}}]] | |
[[File:{{{image}}}|{{{image_width}}}|alt={{{image_alt}}}]] {{{image_caption}}} | |
![]() {{{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}}} |
Koordinat | 0°00′00″N 79°23′42″W / 0.0001°N 79.3950°W |
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
suntingBidang | 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
suntingKoordinat
suntingGunakan 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- Basic parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=
is set, "Location in geomask's label") - mapframe-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, the subsequent mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=
. Default: coordinates from Wikidata{{Coord|12.34|N|56.78|E}}
- mapframe-wikidata – Set to
yes
to show shape/line features from the wikidata item, if any, when|coord=
is set. Default: not specified
- Customise which features are displayed:
- mapframe-shape – Turn off display of shape feature by setting to
none
. Use an inverse shape (geomask) instead of a regular shape by setting toinverse
. Default: not specified - mapframe-point – Turn off display of point feature by setting to
none
. Force point marker to be displayed by setting toon
. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none
. Default: not specified - mapframe-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 negara (P17),P131
for terletak di entiti wilayah pentadbiran (P131)). Default: not specified - mapframe-switcher – set to
auto
orgeomasks
orzooms
to enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto
– switch geomasks found in lokasi (P276) and terletak di entiti wilayah pentadbiran (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.geomasks
– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms
– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3
), "zoomed out" is1
, and "zoomed midway" is the average
- mapframe-shape – Turn off display of shape feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.5
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: restaurant
- Can also be set to
blank
to override any default marker symbol
- Can also be set to
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 2
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.5
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
Peta lokasi
suntingParameter pushpin_map=
boleh digunakan untuk menentukan {{peta lokasi}} tertentu. Memerlukan |koordinat=
.
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}}.
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ini ialah TemplateData untuk templat ini yang digunakan oleh TemplateWizard, VisualEditor dan alatan-alatan lain.
TemplateData untuk Infobox restaurant Tiada keterangan.
|