Difference between revisions of "Template:Winery"

From Grapevine
Jump to: navigation, search
(Fixed phone link and added colons to fields.)
(Changed address to linked directions.)
Line 38: Line 38:
 
| 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>
 
| 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>
 
|-
 
|-
| '''Address:''' || {{{Address|}}}
+
| '''Address:''' || {{ #if: {{{Address|}}} | [https://www.google.com/maps/dir/Current+Location/{{#replace: {{{Address}}} | |+}} {{{Address}}} ] }}
 
|-
 
|-
 
| '''Hours:''' || {{{Hours|}}}
 
| '''Hours:''' || {{{Hours|}}}

Revision as of 12:58, 12 September 2018

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=
|Address=
|Logo=
}}

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