Difference between revisions of "Template:Winery"

From Grapevine
Jump to: navigation, search
(Added Family Friendly and updated maps to Google)
m (Changed Boolean to String.)
 
(42 intermediate revisions by the same user not shown)
Line 22: Line 22:
 
|Entertainment=
 
|Entertainment=
 
|Weddings=
 
|Weddings=
|Address=
 
 
|Logo=
 
|Logo=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Wineries|Location=Coordinates|Phone=Text|Website=URL|Email=Email|Hours=String|Address=Text|Sustainable=Boolean|Pet_Friendly=Boolean|Food=Boolean|Picnic_Area=Boolean|Family_Friendly=Boolean|Group_Friendly=Boolean|Price_Point=String (allowed values=$,$$,$$$,$$$$,$$$$$)|Appointment_Only=Boolean|Tours=Boolean|Tasting_Fee=Text|Entertainment=Text|Weddings=Boolean|Address=Text|Logo=Page}}
+
{{#cargo_declare:_table=Wineries|Location=Coordinates|Phone=Text|Website=URL|Email=Email|Hours=Text|Address=Text|Sustainable=String|Pet_Friendly=String|Food=String|Picnic_Area=String|Family_Friendly=String|Group_Friendly=String|Price_Point=String (allowed values=$,$$,$$$,$$$$,$$$$$)|Appointment_Only=String|Tours=String|Tasting_Fee=Text|Entertainment=Text|Weddings=String|Logo=File}}
</noinclude><includeonly>{{#cargo_store:_table=Wineries|Location={{{Location|}}}|Phone={{{Phone|}}}|Website={{{Website|}}}|Email={{{Email|}}}|Hours={{{Hours|}}}|Address={{{Address|}}}|Sustainable={{{Sustainable|}}}|Pet_Friendly={{{Pet Friendly|}}}|Food={{{Food|}}}|Picnic_Area={{{Picnic Area|}}}|Family_Friendly={{{Family Friendly|}}}|Group_Friendly={{{Group Friendly|}}}|Price_Point={{{Price Point|}}}|Appointment_Only={{{Appointment Only|}}}|Tours={{{Tours|}}}|Tasting_Fee={{{Tasting Fee|}}}|Entertainment={{{Entertainment|}}}|Weddings={{{Weddings|}}}|Address={{{Address|}}}|Logo={{{Logo|}}} }}{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
</noinclude><includeonly>{{#cargo_store:_table=Wineries|Location={{{Location|}}}|Phone={{{Phone|}}}|Website={{{Website|}}}|Email={{{Email|}}}|Hours={{{Hours|}}}|Address={{{Address|}}}|Sustainable={{{Sustainable|}}}|Pet_Friendly={{{Pet Friendly|}}}|Food={{{Food|}}}|Picnic_Area={{{Picnic Area|}}}|Family_Friendly={{{Family Friendly|}}}|Group_Friendly={{{Group Friendly|}}}|Price_Point={{{Price Point|}}}|Appointment_Only={{{Appointment Only|}}}|Tours={{{Tours|}}}|Tasting_Fee={{{Tasting Fee|}}}|Entertainment={{{Entertainment|}}}|Weddings={{{Weddings|}}}|Logo={{{Logo|}}} }}
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
+
{| style="width: 30em; font-size: 90%; border: 1px solid #777777; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 +
| colspan="2" | {{ #if: {{{Logo|}}} | [[File:{{{Logo|}}}|center|450x100px|link=]] }}
 +
|-
 +
| colspan="2" style="text-align: center; background-color:#B546A6; border:1px solid #777777;" |<span style="font-size: 2em; font-weight: bold;">{{PAGENAME}}</span>
 
|-
 
|-
! Location
+
| colspan="2" | {{#cargo_compound_query:tables=Wineries;where=_pageName='{{PAGENAME}}';fields=Location;icon=GrapeMarker.png|width=450px|zoom=15|format=googlemaps}}
! colspan="2" | {{#cargo_display_map:point={{{Location|}}} |service=googlemaps |width=450px |zoom=15|icon=GrapevineLogo.png}}
 
 
|-
 
|-
! Phone
+
| colspan="2"  style="text-align:center; background-color:#B546A6; padding: 2px; border:1px solid #777777;" | <span style="font-size: 1.2em; font-weight: bold;">Contact Info</span>
| {{{Phone|}}}
 
 
|-
 
|-
! Website
+
| '''Address:''' || {{ #if: {{{Address|}}} | [https://www.google.com/maps/dir/Current+Location/{{#replace: {{{Address}}} | |+}} {{{Address}}} ] }}
| {{{Website|}}}
 
 
|-
 
|-
! Email
+
| '''Hours:''' || {{{Hours|}}}
| {{{Email|}}}
 
 
|-
 
|-
! Hours
+
| '''Website:''' || {{{Website|}}}
| {{{Hours|}}}
 
 
|-
 
|-
! Address
+
| '''Phone:''' || {{ #if: {{{Phone|}}} | [tel:+1-{{#replace: {{{Phone}}} | |-}} {{{Phone}}} ] }}
| {{{Address|}}}
 
 
|-
 
|-
! Sustainable
+
| '''Email:''' || {{ #if: {{{Email|}}} | [mailto:{{{Email|}}} {{{Email|}}}] }}
| {{{Sustainable|}}}
 
 
|-
 
|-
! Pet Friendly
+
| colspan="2"  style="text-align:center; background-color:#B546A6; padding: 2px; border:1px solid #777777;" | <span style="font-size: 1.2em; font-weight: bold;">Wine Details</span>
| {{{Pet Friendly|}}}
 
 
|-
 
|-
! Food
+
| '''Price Point:''' || {{{Price Point|}}}
| {{{Food|}}}
 
 
|-
 
|-
! Picnic Area
+
| '''Tasting Fee:''' || {{{Tasting Fee|}}}
| {{{Picnic Area|}}}
 
 
|-
 
|-
! Family Friendly
+
| colspan="2"  style="text-align:center; background-color:#B546A6; padding: 2px; border:1px solid #777777;" | <span style="font-size: 1.2em; font-weight: bold;">Amenities</span>
| {{{Family Friendly|}}}
 
 
|-
 
|-
! Group Friendly
+
| '''Sustainable:''' || {{{Sustainable|}}}
| {{{Group Friendly|}}}
 
 
|-
 
|-
! Price Point
+
| '''Pet Friendly:''' || {{{Pet Friendly|}}}
| {{{Price Point|}}}
 
 
|-
 
|-
! Appointment Only
+
| '''Food:''' || {{{Food|}}}
| {{{Appointment Only|}}}
 
 
|-
 
|-
! Tours
+
| '''Picnic Area:''' || {{{Picnic Area|}}}
| {{{Tours|}}}
 
 
|-
 
|-
! Tasting Fee
+
| '''Family Friendly:''' || {{{Family Friendly|}}}
| {{{Tasting Fee|}}}
 
 
|-
 
|-
! Entertainment
+
| '''Group Friendly:''' || {{{Group Friendly|}}}
| {{{Entertainment|}}}
 
 
|-
 
|-
! Weddings
+
| '''Appointment Only:''' || {{{Appointment Only|}}}
| {{{Weddings|}}}
 
 
|-
 
|-
! Address
+
| '''Tours:''' || {{{Tours|}}}
| {{{Address|}}}
+
|-
 +
| '''Entertainment:''' || {{{Entertainment|}}}
 +
|-
 +
| '''Weddings:''' || {{{Weddings|}}}
 
|-
 
|-
! Logo
 
| [[{{{Logo|}}}]]
 
 
|}
 
|}
  
 
[[Category:Wineries]]
 
[[Category:Wineries]]
 
</includeonly>
 
</includeonly>

Latest revision as of 09:53, 4 March 2019

This is the "Winery" template. It should be called in the following format:

{{Winery
|Location=
|Phone=
|Website=
|Email=
|Hours=
|Address=
|Sustainable=
|Pet Friendly=
|Food=
|Picnic Area=
|Family Friendly=
|Group Friendly=
|Price Point=
|Appointment Only=
|Tours=
|Tasting Fee=
|Entertainment=
|Weddings=
|Logo=
}}

Edit the page to see the template text. This template defines the table "Wineries". View table.