Template:Infobox Restaurant: Difference between revisions
Appearance
Automated upload via Philadelphia.Wiki content pipeline |
Automated upload via Philadelphia.Wiki content pipeline |
||
| Line 2: | Line 2: | ||
{{documentation}} | {{documentation}} | ||
== Infobox Restaurant == | == Infobox Restaurant == | ||
A standardized infobox for restaurant articles on Philadelphia.Wiki. | A standardized infobox for restaurant articles on Philadelphia.Wiki. Includes schema.org Restaurant structured data. | ||
=== Usage === | === Usage === | ||
| Line 17: | Line 17: | ||
| cuisine = Italian, American | | cuisine = Italian, American | ||
| price_range = $$ | | price_range = $$ | ||
| rating = 4.5 | |||
| reviews = 1250 | |||
| established = 1985 | | established = 1985 | ||
| owner = Owner Name | | owner = Owner Name | ||
| Line 49: | Line 51: | ||
|- | |- | ||
| price_range || No || $ to $$$$ scale | | price_range || No || $ to $$$$ scale | ||
|- | |||
| rating || No || Google rating (e.g., 4.2) | |||
|- | |||
| reviews || No || Number of Google reviews | |||
|- | |- | ||
| established || No || Year opened | | established || No || Year opened | ||
| Line 62: | Line 68: | ||
| awards || No || Notable awards or recognition | | awards || No || Notable awards or recognition | ||
|} | |} | ||
=== Schema.org === | |||
This template automatically generates [https://schema.org/Restaurant Restaurant] structured data (JSON-LD) for SEO. The schema follows the hierarchy: Restaurant → FoodEstablishment → LocalBusiness → Organization/Place. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude><includeonly><div style="float: right; clear: right; margin: 0 0 1em 1em; width: 300px; background-color: #f8f9fa; border: 1px solid #a2a9b1; padding: 0; font-size: 88%;"><div style="background-color: #ccc; padding: 0.5em; margin: 0; text-align: center; font-weight: bold; font-size: 110%;">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|<div style="text-align: center; padding: 0.5em; margin: 0;">[[File:{{{image}}}|280px]]{{#if:{{{image_caption|}}}|<div style="font-size: 90%;">{{{image_caption}}}</div>}}</div>}}<table style="width: 100%; border-collapse: collapse; margin: 0; padding: 0; border-spacing: 0;">{{#if:{{{address|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee; width: 35%;">Address</th><td style="padding: 0.3em 0.5em;">{{{address}}}</td></tr><tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Map</th><td style="padding: 0.3em 0.5em;">[https://www.google.com/maps/search/?api=1&query={{urlencode:{{{address}}}, Philadelphia, PA}} View on Google Maps]</td></tr>}}{{#if:{{{neighborhood|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Neighborhood</th><td style="padding: 0.3em 0.5em;">[[{{{neighborhood}}}]]</td></tr>}}{{#if:{{{phone|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Phone</th><td style="padding: 0.3em 0.5em;">{{{phone}}}</td></tr>}}{{#if:{{{website|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Website</th><td style="padding: 0.3em 0.5em;">[{{{website}}} Official site]</td></tr>}}{{#if:{{{cuisine|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Cuisine</th><td style="padding: 0.3em 0.5em;">{{{cuisine}}}</td></tr>}}{{#if:{{{price_range|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Price range</th><td style="padding: 0.3em 0.5em;">{{{price_range}}}</td></tr>}}{{#if:{{{rating|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Rating</th><td style="padding: 0.3em 0.5em;">{{{rating}}} | </noinclude><includeonly><div style="float: right; clear: right; margin: 0 0 1em 1em; width: 300px; background-color: #f8f9fa; border: 1px solid #a2a9b1; padding: 0; font-size: 88%;"><div style="background-color: #ccc; padding: 0.5em; margin: 0; text-align: center; font-weight: bold; font-size: 110%;">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|<div style="text-align: center; padding: 0.5em; margin: 0;">[[File:{{{image}}}|280px]]{{#if:{{{image_caption|}}}|<div style="font-size: 90%;">{{{image_caption}}}</div>}}</div>}}<table style="width: 100%; border-collapse: collapse; margin: 0; padding: 0; border-spacing: 0;">{{#if:{{{address|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee; width: 35%;">Address</th><td style="padding: 0.3em 0.5em;">{{{address}}}</td></tr><tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Map</th><td style="padding: 0.3em 0.5em;">[https://www.google.com/maps/search/?api=1&query={{urlencode:{{{address}}}, Philadelphia, PA}} View on Google Maps]</td></tr>}}{{#if:{{{neighborhood|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Neighborhood</th><td style="padding: 0.3em 0.5em;">[[{{{neighborhood}}}]]</td></tr>}}{{#if:{{{phone|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Phone</th><td style="padding: 0.3em 0.5em;">{{{phone}}}</td></tr>}}{{#if:{{{website|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Website</th><td style="padding: 0.3em 0.5em;">[{{{website}}} Official site]</td></tr>}}{{#if:{{{cuisine|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Cuisine</th><td style="padding: 0.3em 0.5em;">{{{cuisine}}}</td></tr>}}{{#if:{{{price_range|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Price range</th><td style="padding: 0.3em 0.5em;">{{{price_range}}}</td></tr>}}{{#if:{{{rating|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Rating</th><td style="padding: 0.3em 0.5em;">{{{rating}}} / 5 stars</td></tr>}}{{#if:{{{reviews|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Reviews</th><td style="padding: 0.3em 0.5em;">{{{reviews}}} on Google</td></tr>}}{{#if:{{{established|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Established</th><td style="padding: 0.3em 0.5em;">{{{established}}}</td></tr>}}{{#if:{{{owner|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Owner</th><td style="padding: 0.3em 0.5em;">{{{owner}}}</td></tr>}}{{#if:{{{chef|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Chef</th><td style="padding: 0.3em 0.5em;">{{{chef}}}</td></tr>}}{{#if:{{{hours|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Hours</th><td style="padding: 0.3em 0.5em;">{{{hours}}}</td></tr>}}{{#if:{{{seating|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Seating</th><td style="padding: 0.3em 0.5em;">{{{seating}}}</td></tr>}}{{#if:{{{awards|}}}|<tr><th style="text-align: left; padding: 0.3em 0.5em; background-color: #eee;">Awards</th><td style="padding: 0.3em 0.5em;">{{{awards}}}</td></tr>}}</table></div><div itemscope itemtype="https://schema.org/Restaurant" style="display:none;"><span itemprop="name">{{{name|{{PAGENAME}}}}}</span><span itemprop="servesCuisine">{{{cuisine|}}}</span><span itemprop="priceRange">{{{price_range|}}}</span><span itemprop="telephone">{{{phone|}}}</span><span itemprop="url">{{{website|}}}</span><span itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"><span itemprop="streetAddress">{{{address|}}}</span><span itemprop="addressLocality">Philadelphia</span><span itemprop="addressRegion">PA</span><span itemprop="addressCountry">US</span></span>{{#if:{{{rating|}}}|<span itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"><span itemprop="ratingValue">{{{rating|}}}</span><span itemprop="bestRating">5</span>{{#if:{{{reviews|}}}|<span itemprop="reviewCount">{{{reviews|}}}</span>}}</span>}}</div></includeonly> | ||
Latest revision as of 18:34, 23 December 2025
Infobox Restaurant
[edit source]A standardized infobox for restaurant articles on Philadelphia.Wiki. Includes schema.org Restaurant structured data.
Usage
[edit source]{{Infobox Restaurant
| name = Restaurant Name
| image = filename.jpg
| image_caption = Optional caption
| address = 123 Main Street
| neighborhood = Center City
| coordinates = 39.9526,-75.1652
| phone = (215) 555-1234
| website = https://example.com
| cuisine = Italian, American
| price_range = $$
| rating = 4.5
| reviews = 1250
| established = 1985
| owner = Owner Name
| chef = Chef Name
| hours = Mon-Sun 11am-10pm
| seating = 75
| awards = James Beard nominee
}}
Parameters
[edit source]| Parameter | Required | Description |
|---|---|---|
| name | Yes | Restaurant name |
| image | No | Image filename (without File: prefix) |
| image_caption | No | Caption for the image |
| address | Yes | Street address |
| neighborhood | Yes | Philadelphia neighborhood |
| coordinates | No | Lat,long for mapping |
| phone | No | Phone number in (215) 555-1234 format |
| website | No | Official website URL |
| cuisine | Yes | Type(s) of cuisine served |
| price_range | No | $ to $$$$ scale |
| rating | No | Google rating (e.g., 4.2) |
| reviews | No | Number of Google reviews |
| established | No | Year opened |
| owner | No | Current owner(s) |
| chef | No | Head chef or executive chef |
| hours | No | Operating hours |
| seating | No | Seating capacity |
| awards | No | Notable awards or recognition |
Schema.org
[edit source]This template automatically generates Restaurant structured data (JSON-LD) for SEO. The schema follows the hierarchy: Restaurant → FoodEstablishment → LocalBusiness → Organization/Place.