Template:Infobox restaurant/doc
| This is a documentation subpage for Template:Infobox restaurant. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 4,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template adds an automatically generated short description. If the automatic short description is not desired, override it by adding {{Short description}} at the top of the article. |
| This template uses Lua: |
Usage
| {{{name}}} | |
|---|---|
| [[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}|class=logo-nobg]] | |
| [[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}]] {{{image_caption}}} | |
| <mapframe zoom="10" frameless="1" align="center" longitude="-79.395" latitude="0.0001" height="200" width="250">{"type":"Feature","geometry":{"coordinates":[-79.395,0.0001],"type":"Point"},"properties":{"marker-color":"#5E74F3","title":"Infobox restaurant/doc","marker-symbol":"restaurant"}}</mapframe> {{{mapframe-caption}}} | |
<maplink zoom="1" longitude="-79.395" class="no-icon" text=" {{{pushpin_caption}}} | |
| Restaurant information | |
| Established | {{{established}}} |
| Closed | {{{closed}}} |
| Owner | {{{current_owner}}} |
Previous owner | {{{previous_owner}}} |
| Manager | {{{manager}}} |
| Head chef | {{{head_chef}}} |
| Chef | {{{chef}}} |
| Pastry chef | {{{pastry_chef}}} |
| Food type | {{{food_type}}} |
| Dress code | {{{dress_code}}} |
| Rating | {{{rating}}} |
| Location | {{{street_address}}}, {{{city}}}, {{{county}}}, {{{state}}}, {{{province}}}, {{{postal_code}}}, {{{country}}} |
| Coordinates | 0°00′00″N 79°23′42″W / 0.0001°N 79.3950°W Fatal error: The format of the coordinate could not be determined. Parsing failed. |
Seating capacity | {{{seating_capacity}}} |
| Reservations | {{{reservations}}} |
Other locations | {{{other_locations}}} |
{{{other_label}}} | {{{other_information}}} |
| Website | {{{website}}} |
{{Infobox restaurant
| embed =
| name = <!-- Leave blank if embed set to yes -->
| title = <!-- If embedding use this for secondary small font title -->
| logo_class = <!-- 'logo-nobg skin-invert-image' for transparent svgs to support dark mode -->
| logo =
| logo_size =
| logo_alt =
| image =
| image_size =
| image_alt =
| image_caption =
| coordinates = <!-- {{coord|latitude|longitude|type:landmark|display=inline,title}} -->
| pushpin_map = <!-- Requires coordinates to be supplied -->
| established = <!-- {{Start date|YYYY|MM|DD}} -->
| closed = <!-- {{End date|YYYY|MM|DD}} -->
| current_owner =
| previous_owner =
| manager =
| head_chef =
| chef =
| pastry_chef =
| food_type =
| dress_code =
| rating =
| street_address =
| city =
| county =
| state =
| province =
| postal_code =
| country =
| seating_capacity =
| reservations =
| other_locations =
| other_information =
| website = <!-- {{URL|example.com}} -->
}}
Description
| Field | Description |
|---|---|
name
|
Name of restaurant (required) |
logo
|
Restaurant's logo |
logo_size
|
Size of logo |
logo_class
|
CSS class for logo |
logo_alt
|
Alt text for logo |
image
|
Restaurant image |
image_size
|
Size of image |
image_alt
|
Alt text for image |
image_caption
|
Caption |
pushpin_map
|
Name of a location map (see #Map and coordinates). Requires |coordinates= to display a map.
|
established
|
When was the restaurant first opened? Use {{Start date}} |
closed
|
When was the restaurant closed? Use {{End date}} |
current_owner
|
Who is the current owner(s)? |
previous_owner
|
Who were the previous owner(s)? |
manager
|
Who is the manager? |
head_chef
|
Who is the head chef? |
chef
|
(Alternative for head chef) Who is the establishment's chef? |
pastry_chef
|
Who is the pastry chef? |
food_type
|
Food type of restaurant (French, Italian, etc.) |
dress_code
|
Dress code of the restaurant (casual, semi-formal, formal) |
rating
|
Rating of the restaurant (Michelin Guide and {{Michelin stars}}, Zagat's Survey, etc.) |
street_address
|
Address on which the restaurant is located |
city
|
City in which the restaurant is located |
county
|
County in which the restaurant is located |
state
|
State in which the restaurant is located |
province
|
Province in which the restaurant is located |
postal_code
|
Postal code in which the restaurant is located |
country
|
Country the restaurant is located in |
coordinates
|
The Geographic coordinates using {{coord}} (see #Map and coordinates) |
seating_capacity
|
The seating capacity of the restaurant |
reservations
|
Are reservations required? |
other_locations
|
Are there other locations? Is the restaurant franchised? |
other_information
|
Or |other-label= for closings, renovations, etc. Do not include phone numbers per WP:NOTYELLOW.
|
website
|
Restaurant's website; use {{URL}} |
Map and coordinates
Coordinates
Use the |coordinates= parameter, with {{Coord}}, to display the coordinates. It will also allows the display of either an interactive {{Mapframe}} map, or {{Location map}} showing a pushpin for the location of the restaurant.
Mapframe maps
- Basic {{Infobox mapframe}} parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Internal onByDefault parameter: not specified
- 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 d:Property:P625{{Coord|12.34|N|56.78|E}} - 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, most 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-wikidata – Set to yes to show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Customise which features are displayed:
- mapframe-point – Turn off display of point feature by setting to none. Force point marker to be displayed by setting to on. Default: not specified
- mapframe-shape – Turn off display of shape feature by setting to none. Force display of shape by setting to on. Use an inverse shape (geomask) instead of a regular shape by setting to inverse. Default: not specified
- mapframe-line – Turn off display of line feature by setting to none. Force display of line by setting to on. 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 (P17), P131 for (P131)). Default: not specified
- mapframe-switcher – set to auto or geomasks or zooms to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
- auto – switch geomasks found in (P276) and (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 parameter
- 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
- 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.1
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-line-stroke-color or mapframe-line-stroke-colour – Color of line features. Default: #ff0000
- mapframe-shape-stroke-color or mapframe-shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features. Default: 2
- mapframe-shape-stroke-width – Width of outlines of shape features. Default: 2
- mapframe-line-stroke-width – Width of line features. 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
- 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: 1
- 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.25
- 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 / not specified / not specified / 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
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
Pushpin map
Below are the parameters used by Module:Location map to produce the pushpin map in this Infobox. These parameters are available for editors to set in articles that use this infobox. For the maps available, please consult available maps.
| Parameter | Description | Default |
|---|---|---|
|pushpin_map=
|
The map(s) to display. For example, specifying England will use the values for England in Module:Location map/data/England.Multiple maps can be shown by providing a list of map names separated by #. For multiple maps, the first is shown by default. A reader can select the others with radio buttons.
|
N/A |
|pushpin_caption=
|
The text of a caption to be displayed below the map. If not provided a default caption will be generated. Multiple captions can be shown when separated by ## (that's two).
|
Location within MAPNAME |
|pushpin_relief=
|
0/false/off will cause the template to display the map defined as image (generally not a relief map). 1/true/on will cause the template to display the map defined as image1 (generally a relief map). Any non-zero numeric value such as 2 or 3 will display image2 or image3, if those images are defined. Any other non-empty value will cause display of image1. See the example at Location map+/relief.
|
0 |
|pushpin_label=
|
The text of the label to display next to the identifying mark; a wikilink can be used. You can enclose the label inside of {{nowrap}} if you want to make sure that it stays on a single line. | N/A |
|pushpin_label_size=
|
The font size to use for the label, given as a percentage of the normal font size (<100=smaller, >100=larger); the default size is 90. Do not include %. For example, use |pushpin_label_size=80, not |pushpin_label_size=80%. If set to 0, the label is only displayed when the user hovers over the mark.
|
90 |
|pushpin_label_position=
|
The position of the label relative to the identifying mark; valid values are left, right, top, bottom and none. This defaults to either left or right, depending on the coordinates of the marker and its position relative to the right border of the map image. When |pushpin_label_position=none, any defined label will not be displayed with the mark, but it will be used to create the default caption.
|
N/A |
|pushpin_mark=
|
The name of an image file to display as the identifying mark; the default is Red pog.svg |
Red pog.svg |
|pushpin_mark_size=
|
The size of the identifying mark in pixels. Do not include px | 8 |
|pushpin_alt=
|
Alt text for map; used by screen readers. See WP:ALT. | N/A |
|pushpin_background=
|
The background color to use for the label; see Web colors. The default is no background color, which shows the map image behind the label. | N/A |
|pushpin_map_size=
|
Determines the width of the map in pixels, overriding any default values; do not include px. | N/A |
TemplateData
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox restaurant in articles based on its TemplateData.
TemplateData for Infobox restaurant Infobox for a restaurant.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tracking category
See also
- {{Infobox chef}}