Template:Restaurant: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
(fix?)
(added categorization into <noinclude>)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| style="border:1px solid #acf; background:#fff; margin:2px 0 2em 2em; float:right; clear:right; width:250px; font-size:.9em; color:#235;" cellpadding="0" cellspacing="5"
{| style="border:1px solid #acf; background:#fff; margin:2px 0 2em 2em; padding:4px; float:right; clear:right; width:300px; font-size:.9em; color:#235; text-align:left;" cellpadding="0" cellspacing="2"
! colspan="2" style="padding:4px; background:#acf; font-size:large; font-weight:bold; text-align:center;" | {{PAGENAME}}
! colspan="2" style="padding-top:5px; background:#acf; font-size:large; font-weight:bold; text-align:center;" | {{PAGENAME}}
|-
|-
! colspan="2" | [[{{{image}}}|240px]]
! colspan="2" | {{#if:{{{image|}}}|[[File:{{{image}}}|{{{size|290px}}}]]}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| address
! style="background:#eee; padding:2px 5px;" | address
| {{{address}}}
! style="padding:2px 5px;"| {{#if:{{{address|}}}|{{{address}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| type
! style="background:#eee; padding:2px 5px;" | neighborhood
| {{{type of food}}}
! style="padding:2px 5px;"| {{#if:{{{neighborhood|}}}|{{{neighborhood}}}}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| wifi?
! style="background:#eee; padding:2px 5px;" | {{#ifeq: {{{cross streets}}} | yes | cross streets | }}
| {{{wifi}}}
! style="padding:2px 5px;"| {{#ifeq: {{{cross streets}}} | yes | {{{cross streets}}} | }}
|-
|- style="vertical-align:top;"
| wifi network
! style="background:#eee; padding:2px 5px;" | food type
| {{#ifeq: {{{wifi}}} | yes | {{{wifi network}}} | {{{wifi network|}}} }}
! style="padding:2px 5px;" | {{#if:{{{type of food|}}}|{{{type of food}}}}}
|-
|- style="vertical-align:top;"
| wifi password
! style="background:#eee; padding:2px 5px;" | hours
| {{#ifeq: {{{wifi}}} | yes | {{{wifi password}}} | {{{wifi password|}}} }}
! style="padding:2px 5px;"| {{#if:{{{hours|}}}|{{{hours}}}}}
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | wireless internet?
! style="padding:2px 5px;"| {{#if:{{{wifi|}}}|{{{wifi}}}}}
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | {{#ifeq: {{{wifi}}} | yes | wifi network | }}
! style="padding:2px 5px;"| {{#ifeq: {{{wifi}}} | yes | {{{wifi network}}} | }}
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | {{#ifeq: {{{wifi}}} | yes | wifi password | }}
! style="padding:2px 5px;"| {{#ifeq: {{{wifi}}} | yes | {{{wifi password}}} | }}
|- style="vertical-align:top;"
! style="background:#eee; padding:2px 5px;" | website
! style="padding:2px 5px;"| {{#if:{{{website|}}}|<span class="plainlinks">{{{website}}}</span>}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| website
! style="background:#eee; padding:2px 5px;" | phone
| {{{website}}}
! 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;">
Line 31: Line 43:
<code>
<code>
{{Restaurant<br />
{{Restaurant<br />
| address = <br />
| address =&nbsp;<br />
| type of food = <br />
| neighborhood =&nbsp;<br />
| wifi = <br />
| cross streets =&nbsp;<br />
| wifi network = <br />
| type of food =&nbsp;<br />
| wifi password = <br />
| hours =&nbsp;<br />
| website = <br />
| wifi =&nbsp;<br />
| wifi network =&nbsp;<br />
| wifi password =&nbsp;<br />
| website =&nbsp;<br />
| phone =&nbsp;<br />
}}
}}
</code>
</code>
Line 44: Line 60:
=== Notes ===
=== Notes ===
'''wifi'''
'''wifi'''
* Is there wifi at this location? Possible values are '''yes''' or '''no'''.
* Is there wireless internet at this location? Possible values are '''yes''', '''no''', or blank (if unknown).


'''website'''
'''website'''
Line 50: Line 66:


</div>
</div>
[[Category:Infobox]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 16:01, 8 November 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 wireless internet at this location? Possible values are yes, no, or blank (if unknown).

website

  • include http://