Template:Restaurant: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
m (→‎Instructions: "hours" was duplicated)
(hiding code when fields are blank, changed "wifi?" label to "wireless internet?")
Line 5: Line 5:
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | address
! style="background:#eee; padding:2px 5px;" | address
! style="padding:2px 5px;"| {{{address}}}
! style="padding:2px 5px;"| {{#if:{{{address|}}}|{{{address}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | neighborhood
! style="background:#eee; padding:2px 5px;" | neighborhood
! style="padding:2px 5px;"| {{{neighborhood}}}
! style="padding:2px 5px;"| {{#if:{{{neighborhood|}}}|{{{neighborhood}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | {{#ifeq: {{{cross streets}}} | yes | cross streets | }}
! style="background:#eee; padding:2px 5px;" | {{#ifeq: {{{cross streets}}} | yes | cross streets | }}
Line 14: Line 14:
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | food type
! style="background:#eee; padding:2px 5px;" | food type
! style="padding:2px 5px;" | {{{type of food}}}
! style="padding:2px 5px;" | {{#if:{{{type of food|}}}|{{{type of food}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | hours
! style="background:#eee; padding:2px 5px;" | hours
! style="padding:2px 5px;"| {{{hours}}}
! style="padding:2px 5px;"| {{#if:{{{hours|}}}|{{{hours}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | wifi?
! style="background:#eee; padding:2px 5px;" | wireless internet?
! style="padding:2px 5px;"| {{{wifi}}}
! style="padding:2px 5px;"| {{#if:{{{wifi|}}}|{{{wifi}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | {{#ifeq: {{{wifi}}} | yes | wifi network | }}
! style="background:#eee; padding:2px 5px;" | {{#ifeq: {{{wifi}}} | yes | wifi network | }}
Line 29: Line 29:
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | website
! style="background:#eee; padding:2px 5px;" | website
! style="padding:2px 5px;"| {{{website}}}
! style="padding:2px 5px;"| {{#if:{{{website|}}}|{{{website}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | phone
! style="background:#eee; padding:2px 5px;" | phone
! style="padding:2px 5px;"| {{{phone}}}
! style="padding:2px 5px;"| {{#if:{{{phone|}}}|{{{phone}}}}}
|}
|}
<noinclude><div style="width:600px;background:#efefe0;border:1px solid #ddc;padding:5px 15px 10px;margin:20px 30px 0px;">
<noinclude><div style="width:600px;background:#efefe0;border:1px solid #ddc;padding:5px 15px 10px;margin:20px 30px 0px;">

Revision as of 19:11, 14 January 2011

Restaurant
address
neighborhood
food type
hours
wireless internet?
website
phone

Template notes

This template is placed at the top of restaurant articles. It provides basic, at-a-glance facts about the restaurant.

Instructions

The entire code as follows should be used:

{{Restaurant
| address = 
| neighborhood = 
| cross streets = 
| type of food = 
| hours = 
| wifi = 
| wifi network = 
| wifi password = 
| website = 
| phone = 
}}

Information you don't know should be left blank.

Notes

wifi

  • Is there wifi at this location? Possible values are yes or no.

website

  • include http://